tortoisehg / stable (http://tortoisehg.bitbucket.org/)

TortoiseHg repository. Main line of development in "default" branch. Releases, bugfixes, and documentation improvements in "stable" branch.

Clone this repository (size: 80.5 MB): HTTPS / SSH
$ hg clone http://bitbucket.org/tortoisehg/stable
follow

#891 Launching Web Server Error

Reported by Anonymous, created 8 months ago, last edited unknown.

When I right click and choose Web Server I get the error listed below. I'm running Windows 7 64-bit.

** Please report this bug to http://bitbucket.org/tortoisehg/stable/issues or tortoisehg-discuss@lists.sourceforge.net
** Mercurial version (1.4.2).  TortoiseHg version (0.9.2)
** Command: --nofork serve
** CWD: C:\Users\someuser\Documents\myproject
** Extensions loaded: extdiff
Traceback (most recent call last):
  File "tortoisehg\hgtk\hgtk.pyo", line 57, in dispatch
  File "tortoisehg\hgtk\hgtk.pyo", line 184, in _runcatch
  File "tortoisehg\hgtk\hgtk.pyo", line 252, in runcommand
  File "tortoisehg\hgtk\hgtk.pyo", line 398, in serve
  File "tortoisehg\hgtk\hgtk.pyo", line 268, in gtkrun
  File "tortoisehg\hgtk\serve.pyo", line 369, in run
  File "tortoisehg\hgtk\serve.pyo", line 51, in __init__
  File "tortoisehg\hgtk\serve.pyo", line 115, in _get_config
  File "mercurial\hg.pyo", line 63, in repository
  File "mercurial\localrepo.pyo", line 2151, in instance
  File "mercurial\localrepo.pyo", line 37, in __init__
  File "mercurial\extensions.pyo", line 87, in loadall
  File "mercurial\ui.pyo", line 313, in warn
  File "mercurial\ui.pyo", line 234, in write_err
AttributeError: 'ServeDialog' object has no attribute 'closed'
Status: resolved Responsible: tortoisehg Type: bug
Milestone: none Component: serve Version: 0.9.2

Attachments

No attachments added for this issue yet.

Comments and changes

#1

Steve Borho / sborho

→ Changed responsible from nobody to tortoisehg.

→ Changed status from new to open.

Do you get warnings if you run "hg status" on the command line in that repository? Something like:

*** failed to import extension foo

If you fix this problem, the web server should start working again. There was a fix for this just recently posted to the mercurial-devel BTS: http://mercurial.selenic.com/bts/issue1966


#2

Chris C / chris_c

I did get an error when I ran "hg status". I have some extensions setup in the hgrc file that where incorrect (I just rebuilt my machine). Once I fixed the extensions I could launch the Web Server as normal. Thank you for your help.

P.S. - Maybe a nicer error message?


#3

Steve Borho / sborho

(Reply via st...@borho.org):

If the Mercurial folks push their bug fix, the crash will go away in the next stable release (scheduled for Feb 1).


#4

Steve Borho / sborho

→ Changed status from open to resolved.

serve: set a closed attribute to prevent traceback

It would be better if Mercurial didn't depend on this attribute, but it's simple for us to work around this problem.

Closes #891

r5623:d6881c0e32d2


Add comment / attachment

Show/hide preview

Verification: Please write the text from the image in the box (letters only)

captcha

Is that you, Humanoid? Is this me?