Fix excessive complaining from hg log -b
authorMatt Mackall <mpm@selenic.com>
Wed, 25 Oct 2006 17:45:35 -0500
changeset 3518 467d923e4e3d
parent 3517 b0dc459cd06c
child 3519 fb031f47890f
Fix excessive complaining from hg log -b
mercurial/commands.py
--- a/mercurial/commands.py	Wed Oct 25 17:40:03 2006 -0500
+++ b/mercurial/commands.py	Wed Oct 25 17:45:35 2006 -0500
@@ -1857,6 +1857,10 @@
 
     changeiter, getchange, matchfn = walkchangerevs(ui, repo, pats, opts)
 
+    if opts['branches']:
+        ui.warn(_("the --branches option is deprecated, "
+                  "please use 'hg branches' instead\n"))
+
     if opts['limit']:
         try:
             limit = int(opts['limit'])
@@ -1933,8 +1937,6 @@
 
             br = None
             if opts['branches']:
-                ui.warn(_("the --branches option is deprecated, "
-                          "please use 'hg branches' instead\n"))
                 br = repo.branchlookup([repo.changelog.node(rev)])
 
             copies = []