log: ignore --removed if no files specified (issue1166)
authorMatt Mackall <mpm@selenic.com>
Mon, 16 Feb 2009 17:37:23 -0600
changeset 7779 e899ead7b8ae
parent 7778 82f7145b304c
child 7780 9892c4d94fb7
log: ignore --removed if no files specified (issue1166) Otherwise we filter out merge changesets with no changed files
mercurial/cmdutil.py
--- a/mercurial/cmdutil.py	Mon Feb 16 17:37:23 2009 -0600
+++ b/mercurial/cmdutil.py	Mon Feb 16 17:37:23 2009 -0600
@@ -990,7 +990,7 @@
         defrange = '-1:0'
     revs = revrange(repo, opts['rev'] or [defrange])
     wanted = {}
-    slowpath = m.anypats() or opts.get('removed')
+    slowpath = m.anypats() or (m.files() and opts.get('removed'))
     fncache = {}
 
     if not slowpath and not m.files():