# HG changeset patch # User Matt Mackall # Date 1332454059 18000 # Node ID 900eee0778d164292dd0045401e14243464cdf29 # Parent 1c2aaf05f7d7bc02648031ff7c4c55d56ba89914 strip: ignore -n (issue3326) (BC) -n could be confused for --dry-run by foolhardy users, resulting in permanent data loss. As leaving a backup when none was requested is significantly less disastrous, the short option is silently ignored. Old scripts continue to work, users only get lightly burned. diff -r 1c2aaf05f7d7 -r 900eee0778d1 hgext/mq.py --- a/hgext/mq.py Thu Mar 22 17:07:39 2012 -0500 +++ b/hgext/mq.py Thu Mar 22 17:07:39 2012 -0500 @@ -2762,8 +2762,9 @@ ('b', 'backup', None, _('bundle only changesets with local revision' ' number greater than REV which are not' ' descendants of REV (DEPRECATED)')), - ('n', 'no-backup', None, _('no backups')), + ('', 'no-backup', None, _('no backups')), ('', 'nobackup', None, _('no backups (DEPRECATED)')), + ('n', '', None, _('ignored (DEPRECATED)')), ('k', 'keep', None, _("do not modify working copy during strip"))], _('hg strip [-k] [-f] [-n] REV...')) def strip(ui, repo, *revs, **opts):