Show More
@@ -3005,14 +3005,14 b' def strip(ui, repo, *revs, **opts):' | |||||
3005 | finally: |
|
3005 | finally: | |
3006 | wlock.release() |
|
3006 | wlock.release() | |
3007 |
|
3007 | |||
3008 | repo.mq.strip(repo, revs, backup=backup, update=update, |
|
|||
3009 | force=opts.get('force')) |
|
|||
3010 |
|
||||
3011 | if opts.get('bookmark'): |
|
3008 | if opts.get('bookmark'): | |
3012 | del marks[mark] |
|
3009 | del marks[mark] | |
3013 | repo._writebookmarks(marks) |
|
3010 | repo._writebookmarks(marks) | |
3014 | ui.write(_("bookmark '%s' deleted\n") % mark) |
|
3011 | ui.write(_("bookmark '%s' deleted\n") % mark) | |
3015 |
|
3012 | |||
|
3013 | repo.mq.strip(repo, revs, backup=backup, update=update, | |||
|
3014 | force=opts.get('force')) | |||
|
3015 | ||||
3016 | return 0 |
|
3016 | return 0 | |
3017 |
|
3017 | |||
3018 | @command("qselect", |
|
3018 | @command("qselect", |
@@ -447,9 +447,9 b' test hg strip -B bookmark' | |||||
447 | abort: empty revision set |
|
447 | abort: empty revision set | |
448 | [255] |
|
448 | [255] | |
449 | $ hg strip -B todelete |
|
449 | $ hg strip -B todelete | |
|
450 | bookmark 'todelete' deleted | |||
450 | 0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
451 | 0 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
451 | saved backup bundle to $TESTTMP/bookmarks/.hg/strip-backup/*-backup.hg (glob) |
|
452 | saved backup bundle to $TESTTMP/bookmarks/.hg/strip-backup/*-backup.hg (glob) | |
452 | bookmark 'todelete' deleted |
|
|||
453 | $ hg id -ir dcbb326fdec2 |
|
453 | $ hg id -ir dcbb326fdec2 | |
454 | abort: unknown revision 'dcbb326fdec2'! |
|
454 | abort: unknown revision 'dcbb326fdec2'! | |
455 | [255] |
|
455 | [255] | |
@@ -459,8 +459,8 b' test hg strip -B bookmark' | |||||
459 | B 9:ff43616e5d0f |
|
459 | B 9:ff43616e5d0f | |
460 | delete 6:2702dd0c91e7 |
|
460 | delete 6:2702dd0c91e7 | |
461 | $ hg strip -B delete |
|
461 | $ hg strip -B delete | |
|
462 | bookmark 'delete' deleted | |||
462 | saved backup bundle to $TESTTMP/bookmarks/.hg/strip-backup/*-backup.hg (glob) |
|
463 | saved backup bundle to $TESTTMP/bookmarks/.hg/strip-backup/*-backup.hg (glob) | |
463 | bookmark 'delete' deleted |
|
|||
464 | $ hg id -ir 6:2702dd0c91e7 |
|
464 | $ hg id -ir 6:2702dd0c91e7 | |
465 | abort: unknown revision '2702dd0c91e7'! |
|
465 | abort: unknown revision '2702dd0c91e7'! | |
466 | [255] |
|
466 | [255] |
General Comments 0
You need to be logged in to leave comments.
Login now