##// END OF EJS Templates
mq: rename strip --nobackup option to --no-backup (issue2377)...
Christian Ebert -
r12282:9e457c3f default
parent child Browse files
Show More
@@ -2435,13 +2435,13 b' def strip(ui, repo, *revs, **opts):'
2435 the local revision numbers will in general be different after the
2435 the local revision numbers will in general be different after the
2436 restore.
2436 restore.
2437
2437
2438 Use the --nobackup option to discard the backup bundle once the
2438 Use the --no-backup option to discard the backup bundle once the
2439 operation completes.
2439 operation completes.
2440 """
2440 """
2441 backup = 'all'
2441 backup = 'all'
2442 if opts.get('backup'):
2442 if opts.get('backup'):
2443 backup = 'strip'
2443 backup = 'strip'
2444 elif opts.get('nobackup'):
2444 elif opts.get('no-backup') or opts.get('nobackup'):
2445 backup = 'none'
2445 backup = 'none'
2446
2446
2447 cl = repo.changelog
2447 cl = repo.changelog
@@ -3087,7 +3087,8 b' cmdtable = {'
3087 ('b', 'backup', None, _('bundle only changesets with local revision'
3087 ('b', 'backup', None, _('bundle only changesets with local revision'
3088 ' number greater than REV which are not'
3088 ' number greater than REV which are not'
3089 ' descendants of REV (DEPRECATED)')),
3089 ' descendants of REV (DEPRECATED)')),
3090 ('n', 'nobackup', None, _('no backups'))],
3090 ('n', 'no-backup', None, _('no backups')),
3091 ('', 'nobackup', None, _('no backups (DEPRECATED)'))],
3091 _('hg strip [-f] [-n] REV...')),
3092 _('hg strip [-f] [-n] REV...')),
3092 "qtop": (top, [] + seriesopts, _('hg qtop [-s]')),
3093 "qtop": (top, [] + seriesopts, _('hg qtop [-s]')),
3093 "qunapplied":
3094 "qunapplied":
General Comments 0
You need to be logged in to leave comments. Login now