Mercurial > evolve
annotate tests/test-evolve-phase.t @ 3846:f9dad99a90d5
evolve: create a new commit instead of amending one of the divergents
This patch changes the behavior of evolve command while resolving
content-divergence to create a new commit instead of amending one of the
divergent ones.
In past, I have made this change, backed out this change and now today again I
am doing this change, so let's dive in some history.
Using cmdrewrite.amend() was never a good option as that requires hack to delete
the evolvestate and also gives us less control over things. We can't make the
commit on top of different parents as that of content-divergent ones. Due to all
these, I first made this change to create a new commit instead of amending one.
But, after few days, there was flakiness observed in the tests and turned out
that we need to do some dirstate dance as repo.dirstate.setparents() does not
always fix the dirstate. That flakiness was a blocker for progress at that time
and we decided to switch to amend back so that we can have things working with
some hacks and we can later fix the implementation part.
Now, yesterday while tackling resolving content-divergence of a stack which is
as follows:
C1 C2
| |
B1 B2
| |
A1 A2
\/
base
where, A1-A2, B1-B2, C1-C2 are content-divergent with each other. Now we can
resolve A1-A2 very well because they have the same parent and let's say that
resolution leads to A3.
Now, we want to resolve B1-B2 and make the new resolution commit on top of A3 so
that we can end up something like:
C3
|
B3
|
A3
|
base
however, amending one of the divergent changesets, it's not possible to create a
commit on a different parent like A3 here without some relocation. We should
prevent relocation as that may leads to some conflicts and should change the
parent before committing.
So, looking ahead, we can't move with using amend as still using that we will
need some relocation hacks making code ugly and prone to bad behaviors, bugs.
Let's change back to creating a new commit so that we can move forward in a good
way.
About repo.dirstate.setparents() not setting the dirstate, I have researched
yesterday night about how we can do that and found out that we can use
cmdrewrite._uncommitdirstate() here. Expect upcoming patches to improve the
documentation of that function.
There are lot of test changes because of change in hash but there is no behavior
change. The only behavior change is in test-evolve-abort-contentdiv.t which is
nice because creating a new commit helps us in stripping that while aborting.
We have a lot of testing of content-divergence and no behavior change gives
enough confidence for making this change.
I reviewed the patch carefully to make sure there is no behavior change and I
suggest reviewer to do the same.
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Wed, 13 Jun 2018 17:15:10 +0530 |
parents | f0096db2a7b1 |
children | 629558d09898 |
rev | line source |
---|---|
3387
b3be4797d3c6
tests: add a test demonstarting lose of phase in `hg evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
1 Testing the handling of phases for `hg evolve` command |
b3be4797d3c6
tests: add a test demonstarting lose of phase in `hg evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
2 |
b3be4797d3c6
tests: add a test demonstarting lose of phase in `hg evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
3 $ cat >> $HGRCPATH <<EOF |
b3be4797d3c6
tests: add a test demonstarting lose of phase in `hg evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
4 > [phases] |
b3be4797d3c6
tests: add a test demonstarting lose of phase in `hg evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
5 > publish = False |
b3be4797d3c6
tests: add a test demonstarting lose of phase in `hg evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
6 > [alias] |
b3be4797d3c6
tests: add a test demonstarting lose of phase in `hg evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
7 > glog = log -G --template='{rev} - {node|short} {desc} ({phase})\n' |
b3be4797d3c6
tests: add a test demonstarting lose of phase in `hg evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
8 > [extensions] |
b3be4797d3c6
tests: add a test demonstarting lose of phase in `hg evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
9 > EOF |
b3be4797d3c6
tests: add a test demonstarting lose of phase in `hg evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
10 $ echo "evolve=$(echo $(dirname $TESTDIR))/hgext3rd/evolve/" >> $HGRCPATH |
b3be4797d3c6
tests: add a test demonstarting lose of phase in `hg evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
11 |
b3be4797d3c6
tests: add a test demonstarting lose of phase in `hg evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
12 Testing when there are no conflicts during evolve |
b3be4797d3c6
tests: add a test demonstarting lose of phase in `hg evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
13 |
b3be4797d3c6
tests: add a test demonstarting lose of phase in `hg evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
14 $ hg init noconflict |
b3be4797d3c6
tests: add a test demonstarting lose of phase in `hg evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
15 $ cd noconflict |
b3be4797d3c6
tests: add a test demonstarting lose of phase in `hg evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
16 $ echo a>a |
b3be4797d3c6
tests: add a test demonstarting lose of phase in `hg evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
17 $ hg ci -Aqm a |
b3be4797d3c6
tests: add a test demonstarting lose of phase in `hg evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
18 $ echo b>b |
b3be4797d3c6
tests: add a test demonstarting lose of phase in `hg evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
19 $ hg ci -Aqm b |
b3be4797d3c6
tests: add a test demonstarting lose of phase in `hg evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
20 $ echo c>c |
b3be4797d3c6
tests: add a test demonstarting lose of phase in `hg evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
21 $ hg ci -Aqsm c |
b3be4797d3c6
tests: add a test demonstarting lose of phase in `hg evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
22 $ hg glog |
b3be4797d3c6
tests: add a test demonstarting lose of phase in `hg evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
23 @ 2 - 177f92b77385 c (secret) |
b3be4797d3c6
tests: add a test demonstarting lose of phase in `hg evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
24 | |
b3be4797d3c6
tests: add a test demonstarting lose of phase in `hg evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
25 o 1 - d2ae7f538514 b (draft) |
b3be4797d3c6
tests: add a test demonstarting lose of phase in `hg evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
26 | |
b3be4797d3c6
tests: add a test demonstarting lose of phase in `hg evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
27 o 0 - cb9a9f314b8b a (draft) |
b3be4797d3c6
tests: add a test demonstarting lose of phase in `hg evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
28 |
b3be4797d3c6
tests: add a test demonstarting lose of phase in `hg evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
29 |
b3be4797d3c6
tests: add a test demonstarting lose of phase in `hg evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
30 $ hg prev |
b3be4797d3c6
tests: add a test demonstarting lose of phase in `hg evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
31 0 files updated, 0 files merged, 1 files removed, 0 files unresolved |
b3be4797d3c6
tests: add a test demonstarting lose of phase in `hg evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
32 [1] b |
b3be4797d3c6
tests: add a test demonstarting lose of phase in `hg evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
33 $ echo b2>b |
b3be4797d3c6
tests: add a test demonstarting lose of phase in `hg evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
34 $ hg amend |
b3be4797d3c6
tests: add a test demonstarting lose of phase in `hg evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
35 1 new orphan changesets |
b3be4797d3c6
tests: add a test demonstarting lose of phase in `hg evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
36 $ hg evolve |
b3be4797d3c6
tests: add a test demonstarting lose of phase in `hg evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
37 move:[2] c |
b3be4797d3c6
tests: add a test demonstarting lose of phase in `hg evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
38 atop:[3] b |
b3be4797d3c6
tests: add a test demonstarting lose of phase in `hg evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
39 working directory is now at 813dde83a7f3 |
b3be4797d3c6
tests: add a test demonstarting lose of phase in `hg evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
40 $ hg glog |
b3be4797d3c6
tests: add a test demonstarting lose of phase in `hg evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
41 @ 4 - 813dde83a7f3 c (secret) |
b3be4797d3c6
tests: add a test demonstarting lose of phase in `hg evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
42 | |
b3be4797d3c6
tests: add a test demonstarting lose of phase in `hg evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
43 o 3 - fd89d0f19529 b (draft) |
b3be4797d3c6
tests: add a test demonstarting lose of phase in `hg evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
44 | |
b3be4797d3c6
tests: add a test demonstarting lose of phase in `hg evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
45 o 0 - cb9a9f314b8b a (draft) |
b3be4797d3c6
tests: add a test demonstarting lose of phase in `hg evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
46 |
b3be4797d3c6
tests: add a test demonstarting lose of phase in `hg evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
47 $ cd .. |
b3be4797d3c6
tests: add a test demonstarting lose of phase in `hg evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
48 |
b3be4797d3c6
tests: add a test demonstarting lose of phase in `hg evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
49 Testing case when there are conflicts (bug 5720) |
b3be4797d3c6
tests: add a test demonstarting lose of phase in `hg evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
50 |
b3be4797d3c6
tests: add a test demonstarting lose of phase in `hg evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
51 $ hg init conflicts |
b3be4797d3c6
tests: add a test demonstarting lose of phase in `hg evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
52 $ cd conflicts |
b3be4797d3c6
tests: add a test demonstarting lose of phase in `hg evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
53 $ echo a > a |
b3be4797d3c6
tests: add a test demonstarting lose of phase in `hg evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
54 $ hg ci -Am a |
b3be4797d3c6
tests: add a test demonstarting lose of phase in `hg evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
55 adding a |
b3be4797d3c6
tests: add a test demonstarting lose of phase in `hg evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
56 $ echo b > a |
b3be4797d3c6
tests: add a test demonstarting lose of phase in `hg evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
57 $ hg ci -m b |
b3be4797d3c6
tests: add a test demonstarting lose of phase in `hg evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
58 $ echo c > a |
b3be4797d3c6
tests: add a test demonstarting lose of phase in `hg evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
59 $ hg ci -sm c |
b3be4797d3c6
tests: add a test demonstarting lose of phase in `hg evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
60 $ hg glog |
b3be4797d3c6
tests: add a test demonstarting lose of phase in `hg evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
61 @ 2 - 13833940840c c (secret) |
b3be4797d3c6
tests: add a test demonstarting lose of phase in `hg evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
62 | |
b3be4797d3c6
tests: add a test demonstarting lose of phase in `hg evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
63 o 1 - 1e6c11564562 b (draft) |
b3be4797d3c6
tests: add a test demonstarting lose of phase in `hg evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
64 | |
b3be4797d3c6
tests: add a test demonstarting lose of phase in `hg evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
65 o 0 - cb9a9f314b8b a (draft) |
b3be4797d3c6
tests: add a test demonstarting lose of phase in `hg evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
66 |
b3be4797d3c6
tests: add a test demonstarting lose of phase in `hg evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
67 |
b3be4797d3c6
tests: add a test demonstarting lose of phase in `hg evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
68 $ hg prev |
b3be4797d3c6
tests: add a test demonstarting lose of phase in `hg evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
69 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
b3be4797d3c6
tests: add a test demonstarting lose of phase in `hg evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
70 [1] b |
b3be4797d3c6
tests: add a test demonstarting lose of phase in `hg evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
71 $ echo b2 > a |
b3be4797d3c6
tests: add a test demonstarting lose of phase in `hg evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
72 $ hg amend |
b3be4797d3c6
tests: add a test demonstarting lose of phase in `hg evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
73 1 new orphan changesets |
b3be4797d3c6
tests: add a test demonstarting lose of phase in `hg evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
74 |
b3be4797d3c6
tests: add a test demonstarting lose of phase in `hg evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
75 $ hg glog |
b3be4797d3c6
tests: add a test demonstarting lose of phase in `hg evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
76 @ 3 - 87495ea7c9ec b (draft) |
b3be4797d3c6
tests: add a test demonstarting lose of phase in `hg evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
77 | |
3417
d3a17c67f85c
branching: merge stable back into default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3411
diff
changeset
|
78 | * 2 - 13833940840c c (secret) |
3387
b3be4797d3c6
tests: add a test demonstarting lose of phase in `hg evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
79 | | |
b3be4797d3c6
tests: add a test demonstarting lose of phase in `hg evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
80 | x 1 - 1e6c11564562 b (draft) |
b3be4797d3c6
tests: add a test demonstarting lose of phase in `hg evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
81 |/ |
b3be4797d3c6
tests: add a test demonstarting lose of phase in `hg evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
82 o 0 - cb9a9f314b8b a (draft) |
b3be4797d3c6
tests: add a test demonstarting lose of phase in `hg evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
83 |
b3be4797d3c6
tests: add a test demonstarting lose of phase in `hg evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
84 $ hg evolve |
b3be4797d3c6
tests: add a test demonstarting lose of phase in `hg evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
85 move:[2] c |
b3be4797d3c6
tests: add a test demonstarting lose of phase in `hg evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
86 atop:[3] b |
b3be4797d3c6
tests: add a test demonstarting lose of phase in `hg evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
87 merging a |
b3be4797d3c6
tests: add a test demonstarting lose of phase in `hg evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
88 warning: conflicts while merging a! (edit, then use 'hg resolve --mark') |
3843
f0096db2a7b1
evolve: improve error messages when conflicts occur
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3821
diff
changeset
|
89 abort: fix conflicts and see `hg help evolve.interrupted` |
3387
b3be4797d3c6
tests: add a test demonstarting lose of phase in `hg evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
90 [255] |
b3be4797d3c6
tests: add a test demonstarting lose of phase in `hg evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
91 |
3394
d1486760fb8d
tests: add a test demonstrating we still use graft in conflict markers
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3388
diff
changeset
|
92 $ hg diff |
d1486760fb8d
tests: add a test demonstrating we still use graft in conflict markers
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3388
diff
changeset
|
93 diff -r 87495ea7c9ec a |
d1486760fb8d
tests: add a test demonstrating we still use graft in conflict markers
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3388
diff
changeset
|
94 --- a/a Thu Jan 01 00:00:00 1970 +0000 |
d1486760fb8d
tests: add a test demonstrating we still use graft in conflict markers
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3388
diff
changeset
|
95 +++ b/a Thu Jan 01 00:00:00 1970 +0000 |
d1486760fb8d
tests: add a test demonstrating we still use graft in conflict markers
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3388
diff
changeset
|
96 @@ -1,1 +1,5 @@ |
3395
02192ac8ef98
evolve: use better words in conflict markers of `hg evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3394
diff
changeset
|
97 +<<<<<<< destination: 87495ea7c9ec - test: b |
3394
d1486760fb8d
tests: add a test demonstrating we still use graft in conflict markers
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3388
diff
changeset
|
98 b2 |
d1486760fb8d
tests: add a test demonstrating we still use graft in conflict markers
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3388
diff
changeset
|
99 +======= |
d1486760fb8d
tests: add a test demonstrating we still use graft in conflict markers
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3388
diff
changeset
|
100 +c |
3395
02192ac8ef98
evolve: use better words in conflict markers of `hg evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3394
diff
changeset
|
101 +>>>>>>> evolving: 13833940840c - test: c |
3394
d1486760fb8d
tests: add a test demonstrating we still use graft in conflict markers
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3388
diff
changeset
|
102 |
3387
b3be4797d3c6
tests: add a test demonstarting lose of phase in `hg evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
103 $ hg glog |
b3be4797d3c6
tests: add a test demonstarting lose of phase in `hg evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
104 @ 3 - 87495ea7c9ec b (draft) |
b3be4797d3c6
tests: add a test demonstarting lose of phase in `hg evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
105 | |
3417
d3a17c67f85c
branching: merge stable back into default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3411
diff
changeset
|
106 | * 2 - 13833940840c c (secret) |
3387
b3be4797d3c6
tests: add a test demonstarting lose of phase in `hg evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
107 | | |
b3be4797d3c6
tests: add a test demonstarting lose of phase in `hg evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
108 | x 1 - 1e6c11564562 b (draft) |
b3be4797d3c6
tests: add a test demonstarting lose of phase in `hg evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
109 |/ |
b3be4797d3c6
tests: add a test demonstarting lose of phase in `hg evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
110 o 0 - cb9a9f314b8b a (draft) |
b3be4797d3c6
tests: add a test demonstarting lose of phase in `hg evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
111 |
b3be4797d3c6
tests: add a test demonstarting lose of phase in `hg evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
112 |
b3be4797d3c6
tests: add a test demonstarting lose of phase in `hg evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
113 $ echo c2 > a |
b3be4797d3c6
tests: add a test demonstarting lose of phase in `hg evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
114 $ hg resolve -m |
b3be4797d3c6
tests: add a test demonstarting lose of phase in `hg evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
115 (no more unresolved files) |
3472
05bd493d496d
evolve: add evolve info to cmdutil.afterresolvedstates
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3417
diff
changeset
|
116 continue: hg evolve --continue |
3387
b3be4797d3c6
tests: add a test demonstarting lose of phase in `hg evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
117 $ hg evolve -c |
b3be4797d3c6
tests: add a test demonstarting lose of phase in `hg evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
118 evolving 2:13833940840c "c" |
3494
14cd04ff968e
evolve: show the updated working directory after `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3472
diff
changeset
|
119 working directory is now at 3d2080c198e5 |
3387
b3be4797d3c6
tests: add a test demonstarting lose of phase in `hg evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
120 |
b3be4797d3c6
tests: add a test demonstarting lose of phase in `hg evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
121 $ hg glog |
3388
be41e4740a25
evolve: use phases.new-commit config to retain phase information (issue5720)
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3387
diff
changeset
|
122 @ 4 - 3d2080c198e5 c (secret) |
3387
b3be4797d3c6
tests: add a test demonstarting lose of phase in `hg evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
123 | |
b3be4797d3c6
tests: add a test demonstarting lose of phase in `hg evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
124 o 3 - 87495ea7c9ec b (draft) |
b3be4797d3c6
tests: add a test demonstarting lose of phase in `hg evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
125 | |
b3be4797d3c6
tests: add a test demonstarting lose of phase in `hg evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
126 o 0 - cb9a9f314b8b a (draft) |
b3be4797d3c6
tests: add a test demonstarting lose of phase in `hg evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
127 |