Mercurial > hg-stable
diff tests/test-rebase-obsolete.t @ 19925:9c78ed396075
rebase: preserve working directory parent (BC)
Prior to this changeset, rebase always left the working directory as a parent of
the last rebased changeset. The is dubious when, before the rebase, the working
directory was not a parent of the tip most rebased changeset.
With this changeset, we move the working directory back to its original parent.
If the original parent was rebased, we use it's successors.
This is a step toward solving issue3813 (rebase loses active bookmark if it's
not on a head)
author | Pierre-Yves David <pierre-yves.david@ens-lyon.org> |
---|---|
date | Mon, 14 Oct 2013 16:12:29 +0200 |
parents | c23c62209cc4 |
children | 908c76e84ec5 |
line wrap: on
line diff
--- a/tests/test-rebase-obsolete.t Mon Oct 14 16:49:54 2013 +0200 +++ b/tests/test-rebase-obsolete.t Mon Oct 14 16:12:29 2013 +0200 @@ -126,9 +126,9 @@ grafting revision 3 $ hg rebase -s 42ccdea3bb16 -d . $ hg log -G - @ 10:5ae4c968c6ac C + o 10:5ae4c968c6ac C | - o 9:08483444fef9 D + @ 9:08483444fef9 D | o 8:8877864f1edb B | @@ -143,9 +143,9 @@ o 0:cd010b8cd998 A $ hg log --hidden -G - @ 10:5ae4c968c6ac C + o 10:5ae4c968c6ac C | - o 9:08483444fef9 D + @ 9:08483444fef9 D | o 8:8877864f1edb B | @@ -209,11 +209,11 @@ 5ae4c968c6aca831df823664e706c9d4aa34473d 98f6af4ee9539e14da4465128f894c274900b6e5 0 {'date': '* *', 'user': 'test'} (glob) $ hg log --rev 'divergent()' $ hg log -G - @ 13:98f6af4ee953 C + o 13:98f6af4ee953 C | o 12:462a34d07e59 B | - o 11:4596109a6a43 D + @ 11:4596109a6a43 D | o 7:02de42196ebe H | @@ -252,9 +252,9 @@ $ cd collapse $ hg rebase -s 42ccdea3bb16 -d eea13746799a --collapse $ hg log -G - @ 8:4dc2197e807b Collapsed revision + o 8:4dc2197e807b Collapsed revision | - | o 7:02de42196ebe H + | @ 7:02de42196ebe H | | o | 6:eea13746799a G |\| @@ -265,9 +265,9 @@ o 0:cd010b8cd998 A $ hg log --hidden -G - @ 8:4dc2197e807b Collapsed revision + o 8:4dc2197e807b Collapsed revision | - | o 7:02de42196ebe H + | @ 7:02de42196ebe H | | o | 6:eea13746799a G |\| @@ -305,13 +305,13 @@ $ hg rebase -s 5fddd98957c8 -d eea13746799a $ hg rebase -s 42ccdea3bb16 -d 02de42196ebe $ hg log -G - @ 10:7c6027df6a99 B + o 10:7c6027df6a99 B | | o 9:cf44d2f5a9f4 D | | | o 8:e273c5e7d2d2 C | | - o | 7:02de42196ebe H + @ | 7:02de42196ebe H | | | o 6:eea13746799a G |/| @@ -322,13 +322,13 @@ o 0:cd010b8cd998 A $ hg log --hidden -G - @ 10:7c6027df6a99 B + o 10:7c6027df6a99 B | | o 9:cf44d2f5a9f4 D | | | o 8:e273c5e7d2d2 C | | - o | 7:02de42196ebe H + @ | 7:02de42196ebe H | | | o 6:eea13746799a G |/| @@ -356,7 +356,7 @@ 9:cf44d2f5a9f4 D (no-eol) $ hg rebase -r 8 $ hg log -G - @ 11:0d8f238b634c C + o 11:0d8f238b634c C | o 10:7c6027df6a99 B | @@ -364,7 +364,7 @@ | | | x 8:e273c5e7d2d2 C | | - o | 7:02de42196ebe H + @ | 7:02de42196ebe H | | | o 6:eea13746799a G |/| @@ -381,11 +381,11 @@ $ hg rebase --dest 4 --rev '7+11+9' $ hg log -G - @ 14:1e8370e38cca C + o 14:1e8370e38cca C | | o 13:102b4c1d889b D | | - o | 12:bfe264faf697 H + @ | 12:bfe264faf697 H |/ | o 10:7c6027df6a99 B | |