changeset 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 82f7145b304c
children 9892c4d94fb7
files mercurial/cmdutil.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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():