Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.9.3, 1.0, and 1.0.1

stable 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

Changeset d6881c0e32d2

Parent cd85564ce3c9

by Steve Borho

Changes to one file · Browse files at d6881c0e32d2 Showing diff from parent cd85564ce3c9 Diff from another changeset...

 
41
42
43
 
 
 
44
45
46
 
41
42
43
44
45
46
47
48
49
@@ -41,6 +41,9 @@
  sys.stdout = self   sys.stderr = self   + # Set a closed attribute to better mimic stderr (issue #891) + self.closed = True +   # Override mercurial.commands.serve() with our own version   # that supports being stopped   commands.table.update(thg_serve_cmd)