Show More
@@ -2677,7 +2677,11 b' def save(ui, repo, **opts):' | |||||
2677 | return 0 |
|
2677 | return 0 | |
2678 |
|
2678 | |||
2679 | @command("strip", |
|
2679 | @command("strip", | |
2680 | [('f', 'force', None, _('force removal of changesets, discard ' |
|
2680 | [ | |
|
2681 | ('r', 'rev', [], _('strip specified revision (optional, ' | |||
|
2682 | 'can specify revisions without this ' | |||
|
2683 | 'option)'), _('REV')), | |||
|
2684 | ('f', 'force', None, _('force removal of changesets, discard ' | |||
2681 | 'uncommitted changes (no backup)')), |
|
2685 | 'uncommitted changes (no backup)')), | |
2682 | ('b', 'backup', None, _('bundle only changesets with local revision' |
|
2686 | ('b', 'backup', None, _('bundle only changesets with local revision' | |
2683 | ' number greater than REV which are not' |
|
2687 | ' number greater than REV which are not' | |
@@ -2718,6 +2722,7 b' def strip(ui, repo, *revs, **opts):' | |||||
2718 | backup = 'none' |
|
2722 | backup = 'none' | |
2719 |
|
2723 | |||
2720 | cl = repo.changelog |
|
2724 | cl = repo.changelog | |
|
2725 | revs = list(revs) + opts.get('rev') | |||
2721 | revs = set(scmutil.revrange(repo, revs)) |
|
2726 | revs = set(scmutil.revrange(repo, revs)) | |
2722 | if not revs: |
|
2727 | if not revs: | |
2723 | raise util.Abort(_('empty revision set')) |
|
2728 | raise util.Abort(_('empty revision set')) |
General Comments 0
You need to be logged in to leave comments.
Login now