[PATCH RFC] strip: add -C as alternative to --no-backup
David Demelier
demelier.david at gmail.com
Wed Feb 24 08:04:38 UTC 2016
# HG changeset patch
# User David Demelier <demelier.david at gmail.com>
# Date 1456300657 -3600
# Wed Feb 24 08:57:37 2016 +0100
# Node ID 0d235ba100ff229bdd012d15a6141599fae14835
# Parent 91a827e760df9d9b3d86692c5aa195a3d6ba2208
strip: add -C as alternative to --no-backup
Various commands have -C as synonym of "clean" or "no-backup", add this to
strip.
Examples:
hg revert -C
hg update -C
diff -r 91a827e760df -r 0d235ba100ff hgext/strip.py
--- a/hgext/strip.py Sun Feb 14 01:33:55 2016 +0900
+++ b/hgext/strip.py Wed Feb 24 08:57:37 2016 +0100
@@ -83,7 +83,7 @@
'option)'), _('REV')),
('f', 'force', None, _('force removal of changesets, discard '
'uncommitted changes (no backup)')),
- ('', 'no-backup', None, _('no backups')),
+ ('C', 'no-backup', None, _('no backups')),
('', 'nobackup', None, _('no backups (DEPRECATED)')),
('n', '', None, _('ignored (DEPRECATED)')),
('k', 'keep', None, _("do not modify working directory during "
More information about the Mercurial-devel
mailing list