Patchwork [V4] commands: 'listening at' line when port specified (issue3976)

login
register
mail settings
Submitter Chinmay Joshi
Date April 10, 2014, 4:25 p.m.
Message ID <0db44660bb49728722ac.1397147149@ubuntu>
Download mbox | patch
Permalink /patch/4277/
State Superseded
Headers show

Comments

Chinmay Joshi - April 10, 2014, 4:25 p.m.
# HG changeset patch
# User Chinmay Joshi <c@chinmayjoshi.com>
# Date 1397146573 -19800
#      Thu Apr 10 21:46:13 2014 +0530
# Node ID 0db44660bb49728722aca4bde5cb693f4050f6a6
# Parent  596960a4ad0d342506cf2a601e9736c446a04699
commands: 'listening at' line when port specified (issue3976)

Now 'listening at ...' line is printed in hg serve when port is specified. Stays silent for daemon. Changed commnads.py. No test files changed. Test suite covers to check this output by using --verbose for daemon.

Patch

diff --git a/mercurial/commands.py b/mercurial/commands.py
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -5250,7 +5250,7 @@ 
         util.setsignalhandler()
         self.httpd = hgweb_server.create_server(self.ui, self.app)
 
-        if self.opts['port'] and not self.ui.verbose:
+        if self.opts['port'] and self.opts["daemon"] and not self.ui.verbose:
             return
 
         if self.httpd.prefix: