diff mercurial/cmdutil.py @ 7779:e899ead7b8ae

log: ignore --removed if no files specified (issue1166) Otherwise we filter out merge changesets with no changed files
author Matt Mackall <mpm@selenic.com>
date Mon, 16 Feb 2009 17:37:23 -0600
parents fece056bf240
children bd8f44638847
line wrap: on
line diff
--- 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():