changeset 4505:0ca5ef554987

Fix bug in "hg serve -v"
author Joel Rosdahl <joel@rosdahl.net>
date Mon, 04 Jun 2007 21:49:01 +0200
parents c68e6486f295
children 9f952dd4413b
files mercurial/commands.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -2411,11 +2411,11 @@ def serve(ui, repo, **opts):
 
             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()