Mercurial > evolve
annotate tests/test-evolve-wdir.t @ 6919:6859ed744625 mercurial-5.1
test-compat: merge mercurial-5.2 into mercurial-5.1
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Fri, 25 Oct 2024 17:55:54 +0400 |
parents | e5bd76f95145 |
children | 716912541759 |
rev | line source |
---|---|
5439
272094174185
test-obsolete: move a divergence related test from the main test
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
1 =============================================== |
272094174185
test-obsolete: move a divergence related test from the main test
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
2 Testing evolution of obsolete working directory |
272094174185
test-obsolete: move a divergence related test from the main test
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
3 =============================================== |
272094174185
test-obsolete: move a divergence related test from the main test
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
4 |
272094174185
test-obsolete: move a divergence related test from the main test
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
5 Pulling changes from other repos can make your working directory parent (wdir) |
272094174185
test-obsolete: move a divergence related test from the main test
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
6 obsolete, most probably because now it has a new successor. But there are |
272094174185
test-obsolete: move a divergence related test from the main test
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
7 other cases as well where it might be pruned with no successors or split |
272094174185
test-obsolete: move a divergence related test from the main test
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
8 in multiple changesets etc. |
272094174185
test-obsolete: move a divergence related test from the main test
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
9 |
272094174185
test-obsolete: move a divergence related test from the main test
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
10 This test file deals with all the possible cases for the evolution from an |
272094174185
test-obsolete: move a divergence related test from the main test
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
11 obsolete working directory parent. |
272094174185
test-obsolete: move a divergence related test from the main test
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
12 |
272094174185
test-obsolete: move a divergence related test from the main test
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
13 .. Case A: obsolete wdp with single successor |
272094174185
test-obsolete: move a divergence related test from the main test
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
14 .. Resolution : simply update to the successor |
272094174185
test-obsolete: move a divergence related test from the main test
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
15 .. |
272094174185
test-obsolete: move a divergence related test from the main test
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
16 .. Case B: obsolete wdp with no successor (simply pruned) |
272094174185
test-obsolete: move a divergence related test from the main test
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
17 .. Resolution : update to a not-dead ancestor |
272094174185
test-obsolete: move a divergence related test from the main test
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
18 .. |
272094174185
test-obsolete: move a divergence related test from the main test
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
19 .. Case C: obsolete wdp with multiple successor (divergence rewriting) |
6181
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
20 .. Resolution : suggest to check out one of the divergent cset and |
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
21 .. run `hg evolve --content-divergent` |
5439
272094174185
test-obsolete: move a divergence related test from the main test
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
22 .. |
272094174185
test-obsolete: move a divergence related test from the main test
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
23 .. Case D: obsolete wdp with multiple successor (split rewriting) |
6181
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
24 .. Resolution : if split over a single topological branch, update to |
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
25 .. tipmost, otherwise ask user to choose one |
5439
272094174185
test-obsolete: move a divergence related test from the main test
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
26 |
272094174185
test-obsolete: move a divergence related test from the main test
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
27 A. Obsolete wdp with single successor |
272094174185
test-obsolete: move a divergence related test from the main test
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
28 ------------------------------------- |
272094174185
test-obsolete: move a divergence related test from the main test
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
29 |
272094174185
test-obsolete: move a divergence related test from the main test
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
30 Setup |
272094174185
test-obsolete: move a divergence related test from the main test
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
31 $ . $TESTDIR/testlib/common.sh |
272094174185
test-obsolete: move a divergence related test from the main test
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
32 $ cat >> $HGRCPATH <<EOF |
272094174185
test-obsolete: move a divergence related test from the main test
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
33 > [extensions] |
272094174185
test-obsolete: move a divergence related test from the main test
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
34 > evolve= |
272094174185
test-obsolete: move a divergence related test from the main test
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
35 > rebase= |
272094174185
test-obsolete: move a divergence related test from the main test
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
36 > [alias] |
272094174185
test-obsolete: move a divergence related test from the main test
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
37 > glog = log --graph --template "{rev}:{node|short} ({phase}): {desc|firstline} {if(troubles, '[{troubles}]')}\n" |
272094174185
test-obsolete: move a divergence related test from the main test
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
38 > EOF |
272094174185
test-obsolete: move a divergence related test from the main test
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
39 |
272094174185
test-obsolete: move a divergence related test from the main test
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
40 $ hg init repo |
272094174185
test-obsolete: move a divergence related test from the main test
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
41 $ cd repo |
272094174185
test-obsolete: move a divergence related test from the main test
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
42 $ mkcommit c_A |
272094174185
test-obsolete: move a divergence related test from the main test
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
43 $ mkcommit c_B |
272094174185
test-obsolete: move a divergence related test from the main test
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
44 $ hg amend -m "u_B" |
272094174185
test-obsolete: move a divergence related test from the main test
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
45 $ hg up -r 'desc(c_B)' --hidden |
272094174185
test-obsolete: move a divergence related test from the main test
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
46 0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
272094174185
test-obsolete: move a divergence related test from the main test
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
47 updated to hidden changeset 707ee88b2870 |
272094174185
test-obsolete: move a divergence related test from the main test
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
48 (hidden revision '707ee88b2870' was rewritten as: 9bf151312dec) |
272094174185
test-obsolete: move a divergence related test from the main test
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
49 working directory parent is obsolete! (707ee88b2870) |
272094174185
test-obsolete: move a divergence related test from the main test
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
50 (use 'hg evolve' to update to its successor: 9bf151312dec) |
272094174185
test-obsolete: move a divergence related test from the main test
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
51 |
272094174185
test-obsolete: move a divergence related test from the main test
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
52 $ hg evolve |
272094174185
test-obsolete: move a divergence related test from the main test
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
53 update:[2] u_B |
272094174185
test-obsolete: move a divergence related test from the main test
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
54 0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
272094174185
test-obsolete: move a divergence related test from the main test
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
55 working directory is now at 9bf151312dec |
272094174185
test-obsolete: move a divergence related test from the main test
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
56 $ hg glog |
272094174185
test-obsolete: move a divergence related test from the main test
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
57 @ 2:9bf151312dec (draft): u_B |
272094174185
test-obsolete: move a divergence related test from the main test
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
58 | |
272094174185
test-obsolete: move a divergence related test from the main test
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
59 o 0:9f0188af4c58 (draft): c_A |
272094174185
test-obsolete: move a divergence related test from the main test
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
60 |
272094174185
test-obsolete: move a divergence related test from the main test
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
61 |
272094174185
test-obsolete: move a divergence related test from the main test
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
62 B. Obsolete wdp with no successor |
272094174185
test-obsolete: move a divergence related test from the main test
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
63 --------------------------------- |
272094174185
test-obsolete: move a divergence related test from the main test
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
64 |
272094174185
test-obsolete: move a divergence related test from the main test
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
65 $ hg prune . |
272094174185
test-obsolete: move a divergence related test from the main test
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
66 0 files updated, 0 files merged, 1 files removed, 0 files unresolved |
272094174185
test-obsolete: move a divergence related test from the main test
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
67 working directory is now at 9f0188af4c58 |
272094174185
test-obsolete: move a divergence related test from the main test
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
68 1 changesets pruned |
272094174185
test-obsolete: move a divergence related test from the main test
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
69 $ hg up -r 'desc(c_B)' --hidden |
272094174185
test-obsolete: move a divergence related test from the main test
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
70 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
272094174185
test-obsolete: move a divergence related test from the main test
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
71 updated to hidden changeset 707ee88b2870 |
272094174185
test-obsolete: move a divergence related test from the main test
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
72 (hidden revision '707ee88b2870' is pruned) |
272094174185
test-obsolete: move a divergence related test from the main test
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
73 working directory parent is obsolete! (707ee88b2870) |
272094174185
test-obsolete: move a divergence related test from the main test
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
74 (use 'hg evolve' to update to its parent successor) |
272094174185
test-obsolete: move a divergence related test from the main test
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
75 |
272094174185
test-obsolete: move a divergence related test from the main test
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
76 $ hg evolve |
272094174185
test-obsolete: move a divergence related test from the main test
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
77 update:[0] c_A |
272094174185
test-obsolete: move a divergence related test from the main test
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
78 0 files updated, 0 files merged, 1 files removed, 0 files unresolved |
272094174185
test-obsolete: move a divergence related test from the main test
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
79 working directory is now at 9f0188af4c58 |
272094174185
test-obsolete: move a divergence related test from the main test
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
80 $ hg glog |
272094174185
test-obsolete: move a divergence related test from the main test
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
81 @ 0:9f0188af4c58 (draft): c_A |
272094174185
test-obsolete: move a divergence related test from the main test
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
82 |
272094174185
test-obsolete: move a divergence related test from the main test
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
83 |
272094174185
test-obsolete: move a divergence related test from the main test
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
84 C. Obsolete wdp with multiple successor (divergence rewriting) |
272094174185
test-obsolete: move a divergence related test from the main test
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
85 --------------------------------------------------------------- |
272094174185
test-obsolete: move a divergence related test from the main test
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
86 |
272094174185
test-obsolete: move a divergence related test from the main test
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
87 $ hg metaedit -r 'desc(u_B)' -d '0 1' --hidden |
272094174185
test-obsolete: move a divergence related test from the main test
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
88 $ hg metaedit -r 'desc(c_B)' -d '0 1' --hidden |
272094174185
test-obsolete: move a divergence related test from the main test
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
89 2 new content-divergent changesets |
272094174185
test-obsolete: move a divergence related test from the main test
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
90 $ hg up -r 'min(desc(c_B))' --hidden |
272094174185
test-obsolete: move a divergence related test from the main test
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
91 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
272094174185
test-obsolete: move a divergence related test from the main test
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
92 updated to hidden changeset 707ee88b2870 |
272094174185
test-obsolete: move a divergence related test from the main test
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
93 (hidden revision '707ee88b2870' has diverged) |
272094174185
test-obsolete: move a divergence related test from the main test
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
94 working directory parent is obsolete! (707ee88b2870) |
272094174185
test-obsolete: move a divergence related test from the main test
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
95 (707ee88b2870 has diverged, use 'hg evolve --list --content-divergent' to resolve the issue) |
272094174185
test-obsolete: move a divergence related test from the main test
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
96 |
272094174185
test-obsolete: move a divergence related test from the main test
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
97 $ hg evolve |
6181
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
98 parent is obsolete with multiple content-divergent successors: |
5439
272094174185
test-obsolete: move a divergence related test from the main test
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
99 [3] u_B |
272094174185
test-obsolete: move a divergence related test from the main test
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
100 [4] c_B |
272094174185
test-obsolete: move a divergence related test from the main test
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
101 [2] |
272094174185
test-obsolete: move a divergence related test from the main test
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
102 |
6181
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
103 test that given hint works |
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
104 $ hg up -r 'desc(u_B)' |
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
105 0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
106 $ hg evolve --content-div |
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
107 merge:[3] u_B |
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
108 with: [4] c_B |
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
109 base: [1] c_B |
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
110 0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
111 working directory is now at 767c654afe84 |
5439
272094174185
test-obsolete: move a divergence related test from the main test
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
112 $ hg glog |
6181
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
113 @ 5:767c654afe84 (draft): u_B |
5439
272094174185
test-obsolete: move a divergence related test from the main test
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
114 | |
6181
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
115 o 0:9f0188af4c58 (draft): c_A |
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
116 |
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
117 |
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
118 D. Obsolete wdp with multiple successors (split rewriting) |
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
119 ---------------------------------------------------------- |
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
120 |
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
121 when split csets are on a single topological branch |
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
122 $ hg up -r 'desc(c_A)' |
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
123 0 files updated, 0 files merged, 1 files removed, 0 files unresolved |
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
124 $ echo X > X; echo Y > Y; echo Z > Z; |
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
125 $ hg ci -Am 'c_XYZ' |
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
126 adding X |
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
127 adding Y |
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
128 adding Z |
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
129 created new head |
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
130 $ hg split -r "desc(c_XYZ)" -d "0 0" --config ui.interactive=True << EOF |
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
131 > f |
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
132 > d |
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
133 > y |
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
134 > f |
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
135 > d |
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
136 > c |
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
137 > EOF |
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
138 0 files updated, 0 files merged, 3 files removed, 0 files unresolved |
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
139 adding X |
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
140 adding Y |
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
141 adding Z |
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
142 diff --git a/X b/X |
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
143 new file mode 100644 |
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
144 examine changes to 'X'? |
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
145 (enter ? for help) [Ynesfdaq?] f |
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
146 |
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
147 diff --git a/Y b/Y |
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
148 new file mode 100644 |
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
149 examine changes to 'Y'? |
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
150 (enter ? for help) [Ynesfdaq?] d |
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
151 |
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
152 created new head |
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
153 continue splitting? [Ycdq?] y |
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
154 diff --git a/Y b/Y |
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
155 new file mode 100644 |
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
156 examine changes to 'Y'? |
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
157 (enter ? for help) [Ynesfdaq?] f |
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
158 |
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
159 diff --git a/Z b/Z |
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
160 new file mode 100644 |
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
161 examine changes to 'Z'? |
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
162 (enter ? for help) [Ynesfdaq?] d |
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
163 |
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
164 continue splitting? [Ycdq?] c |
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
165 |
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
166 $ hg up -r 'min(desc(c_XYZ))' --hidden |
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
167 0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
168 updated to hidden changeset c8b6cf6ce628 |
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
169 (hidden revision 'c8b6cf6ce628' was split as: 1eb7dbbcecbd, b99a391251cc and 1 more) |
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
170 working directory parent is obsolete! (c8b6cf6ce628) |
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
171 (use 'hg evolve' to update to its tipmost successor: 1eb7dbbcecbd, b99a391251cc and 1 more) |
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
172 |
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
173 $ hg glog -l 3 |
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
174 o 9:b7ec9e61ccbf (draft): c_XYZ |
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
175 | |
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
176 o 8:b99a391251cc (draft): c_XYZ |
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
177 | |
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
178 o 7:1eb7dbbcecbd (draft): c_XYZ |
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
179 | |
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
180 ~ |
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
181 test that given hint works |
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
182 $ hg evolve |
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
183 update:[9] c_XYZ |
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
184 0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
185 working directory is now at b7ec9e61ccbf |
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
186 |
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
187 when split csets are on multiple topological branches |
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
188 $ hg rebase -r 'max(desc(c_XYZ))' -d 'desc(u_B)' |
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
189 rebasing 9:b7ec9e61ccbf "c_XYZ" (tip) |
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
190 $ hg glog |
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
191 @ 10:cadaa9246c55 (draft): c_XYZ |
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
192 | |
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
193 | o 8:b99a391251cc (draft): c_XYZ |
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
194 | | |
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
195 | o 7:1eb7dbbcecbd (draft): c_XYZ |
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
196 | | |
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
197 o | 5:767c654afe84 (draft): u_B |
5439
272094174185
test-obsolete: move a divergence related test from the main test
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
198 |/ |
272094174185
test-obsolete: move a divergence related test from the main test
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
199 o 0:9f0188af4c58 (draft): c_A |
272094174185
test-obsolete: move a divergence related test from the main test
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
200 |
6181
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
201 $ hg up -r 'min(desc(c_XYZ))' --hidden |
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
202 2 files updated, 0 files merged, 1 files removed, 0 files unresolved |
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
203 updated to hidden changeset c8b6cf6ce628 |
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
204 (hidden revision 'c8b6cf6ce628' was split as: 1eb7dbbcecbd, b99a391251cc and 1 more) |
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
205 working directory parent is obsolete! (c8b6cf6ce628) |
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
206 (use 'hg evolve' to update to its tipmost successor: 1eb7dbbcecbd, b99a391251cc and 1 more) |
5439
272094174185
test-obsolete: move a divergence related test from the main test
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
207 |
6181
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
208 $ hg evolve --config ui.interactive=True << EOF |
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
209 > q |
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
210 > EOF |
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
211 changeset c8b6cf6ce628 split over multiple topological branches, choose an evolve destination: |
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
212 1: [b99a391251cc] c_XYZ |
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
213 2: [cadaa9246c55] c_XYZ |
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
214 q: quit the prompt |
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
215 enter the index of the revision you want to select: q |
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
216 abort: user quit |
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
217 [255] |
5439
272094174185
test-obsolete: move a divergence related test from the main test
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
218 |
6181
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
219 $ hg evolve --config ui.interactive=True << EOF |
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
220 > 1 |
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
221 > EOF |
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
222 changeset c8b6cf6ce628 split over multiple topological branches, choose an evolve destination: |
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
223 1: [b99a391251cc] c_XYZ |
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
224 2: [cadaa9246c55] c_XYZ |
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
225 q: quit the prompt |
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
226 enter the index of the revision you want to select: 1 |
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
227 update:[8] c_XYZ |
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
228 0 files updated, 0 files merged, 1 files removed, 0 files unresolved |
e6ae5af97683
test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5777
diff
changeset
|
229 working directory is now at b99a391251cc |