[PATCH] importeret rettelse missing-alias
Martin Geisler
mg at daimi.au.dk
Thu Apr 9 13:20:03 CDT 2009
# HG changeset patch
# User Martin Geisler <mg at lazybytes.net>
# Date 1239301200 -7200
# Node ID 9e4fe7a59488c52104ec546801f61b0f1d1d6650
# Parent 545fb915fe1672834bb569e54651d596258ad05b
importeret rettelse missing-alias
diff --git a/mercurial/commands.py b/mercurial/commands.py
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -2754,6 +2754,8 @@
= the previous added file was copied from here
"""
+ # make --missing an alias for --deleted
+ opts['deleted'] = opts.get('deleted') or opts.get('missing')
node1, node2 = cmdutil.revpair(repo, opts.get('rev'))
cwd = (pats and repo.getcwd()) or ''
end = opts.get('print0') and '\0' or '\n'
@@ -3416,6 +3418,7 @@
('a', 'added', None, _('show only added files')),
('r', 'removed', None, _('show only removed files')),
('d', 'deleted', None, _('show only deleted (but tracked) files')),
+ ('', 'missing', None, _('alias for --deleted')),
('c', 'clean', None, _('show only files without changes')),
('u', 'unknown', None, _('show only unknown (not tracked) files')),
('i', 'ignored', None, _('show only ignored files')),
diff --git a/tests/test-help.out b/tests/test-help.out
--- a/tests/test-help.out
+++ b/tests/test-help.out
@@ -281,6 +281,7 @@
-a --added show only added files
-r --removed show only removed files
-d --deleted show only deleted (but tracked) files
+ --missing alias for --deleted
-c --clean show only files without changes
-u --unknown show only unknown (not tracked) files
-i --ignored show only ignored files
More information about the Mercurial-devel
mailing list