# HG changeset patch # User Matt Mackall # Date 1163627518 21600 # Node ID 4d988b7412f275bd9e8adbf04353954296358aff # Parent 194e2bcf338e6ed39c13b0ed09b7e4fd51c179c0 add log --removed diff --git a/mercurial/cmdutil.py b/mercurial/cmdutil.py --- a/mercurial/cmdutil.py +++ b/mercurial/cmdutil.py @@ -643,7 +643,7 @@ def walkchangerevs(ui, repo, pats, chang 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: diff --git a/mercurial/commands.py b/mercurial/commands.py --- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -2582,6 +2582,7 @@ table = { ('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')),