Mercurial > hg > mercurial-crew-with-dirclash
comparison mercurial/commands.py @ 4505:0ca5ef554987
Fix bug in "hg serve -v"
author | Joel Rosdahl <joel@rosdahl.net> |
---|---|
date | Mon, 04 Jun 2007 21:49:01 +0200 |
parents | 649dd2492ae5 |
children | 96d8a56d4ef9 |
comparison
equal
deleted
inserted
replaced
4504:c68e6486f295 | 4505:0ca5ef554987 |
---|---|
2409 except socket.error, inst: | 2409 except socket.error, inst: |
2410 raise util.Abort(_('cannot start server: ') + inst.args[1]) | 2410 raise util.Abort(_('cannot start server: ') + inst.args[1]) |
2411 | 2411 |
2412 if not ui.verbose: return | 2412 if not ui.verbose: return |
2413 | 2413 |
2414 if httpd.port != 80: | 2414 if self.httpd.port != 80: |
2415 ui.status(_('listening at http://%s:%d/\n') % | 2415 ui.status(_('listening at http://%s:%d/\n') % |
2416 (httpd.addr, httpd.port)) | 2416 (self.httpd.addr, self.httpd.port)) |
2417 else: | 2417 else: |
2418 ui.status(_('listening at http://%s/\n') % httpd.addr) | 2418 ui.status(_('listening at http://%s/\n') % self.httpd.addr) |
2419 | 2419 |
2420 def run(self): | 2420 def run(self): |
2421 self.httpd.serve_forever() | 2421 self.httpd.serve_forever() |
2422 | 2422 |
2423 service = service() | 2423 service = service() |