add log --removed
authorMatt Mackall <mpm@selenic.com>
Wed, 15 Nov 2006 15:51:58 -0600
changeset 3657 4d988b7412f2
parent 3656 194e2bcf338e
child 3658 d12c8668b102
add log --removed
mercurial/cmdutil.py
mercurial/commands.py
--- a/mercurial/cmdutil.py	Wed Nov 15 15:51:58 2006 -0600
+++ b/mercurial/cmdutil.py	Wed Nov 15 15:51:58 2006 -0600
@@ -643,7 +643,7 @@
         defrange = 'tip:0'
     revs = revrange(ui, repo, opts['rev'] or [defrange])
     wanted = {}
-    slowpath = anypats
+    slowpath = anypats or opts.get('removed')
     fncache = {}
 
     if not slowpath and not files:
--- a/mercurial/commands.py	Wed Nov 15 15:51:58 2006 -0600
+++ b/mercurial/commands.py	Wed Nov 15 15:51:58 2006 -0600
@@ -2582,6 +2582,7 @@
           ('k', 'keyword', [], _('search for a keyword')),
           ('l', 'limit', '', _('limit number of changes displayed')),
           ('r', 'rev', [], _('show the specified revision or range')),
+          ('', 'removed', None, _('include revs where files were removed')),
           ('M', 'no-merges', None, _('do not show merges')),
           ('', 'style', '', _('display using template map file')),
           ('m', 'only-merges', None, _('show only merges')),