Fix bug in "hg serve -v"
authorJoel Rosdahl <joel@rosdahl.net>
Mon, 04 Jun 2007 21:49:01 +0200
changeset 4505 0ca5ef554987
parent 4504 c68e6486f295
child 4506 9f952dd4413b
Fix bug in "hg serve -v"
mercurial/commands.py
--- a/mercurial/commands.py	Mon Jun 04 21:48:59 2007 +0200
+++ b/mercurial/commands.py	Mon Jun 04 21:49:01 2007 +0200
@@ -2411,11 +2411,11 @@
 
             if not ui.verbose: return
 
-            if httpd.port != 80:
+            if self.httpd.port != 80:
                 ui.status(_('listening at http://%s:%d/\n') %
-                          (httpd.addr, httpd.port))
+                          (self.httpd.addr, self.httpd.port))
             else:
-                ui.status(_('listening at http://%s/\n') % httpd.addr)
+                ui.status(_('listening at http://%s/\n') % self.httpd.addr)
 
         def run(self):
             self.httpd.serve_forever()