Mercurial > public > mercurial-scm > hg
diff tests/test-bookmarks-rebase.t @ 24758:d7451adc72f6
rebase: restore bookmark state on abort
The bookmark state was already being preserved, but it wasn't being
properly restored.
author | Tony Tung <tonytung@fb.com> |
---|---|
date | Mon, 13 Apr 2015 14:54:02 -0400 |
parents | aa4a1672583e |
children | 91c2278c68a3 |
line wrap: on
line diff
--- a/tests/test-bookmarks-rebase.t Sat Apr 04 02:37:43 2015 -0700 +++ b/tests/test-bookmarks-rebase.t Mon Apr 13 14:54:02 2015 -0400 @@ -66,3 +66,27 @@ date: Thu Jan 01 00:00:00 1970 +0000 summary: 0 +aborted rebase should restore active bookmark. + + $ hg up 1 + 0 files updated, 0 files merged, 1 files removed, 0 files unresolved + (leaving bookmark two) + $ echo 'e' > d + $ hg ci -A -m "4" + adding d + created new head + $ hg bookmark three + $ hg rebase -s three -d two + rebasing 4:dd7c838e8362 "4" (tip three) + merging d + warning: conflicts during merge. + merging d incomplete! (edit conflicts, then use 'hg resolve --mark') + unresolved conflicts (see hg resolve, then hg rebase --continue) + [1] + $ hg rebase --abort + rebase aborted + $ hg bookmark + one 1:925d80f479bb + * three 4:dd7c838e8362 + two 3:42e5ed2cdcf4 +