annotate tests/test-evolve-continue.t @ 6903:de8156fbbdcc mercurial-6.3

test-compat: merge mercurial-6.4 into mercurial-6.3
author Anton Shestakov <av6@dwimlabs.net>
date Thu, 24 Oct 2024 17:57:18 +0400
parents 53d63b608230
children 1328195f76a9
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3489
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
1 Testing the continue functionality of `hg evolve`
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
2
6040
29bc269bcc96 tests: source common.sh in more tests
Anton Shestakov <av6@dwimlabs.net>
parents: 5962
diff changeset
3 $ . $TESTDIR/testlib/common.sh
29bc269bcc96 tests: source common.sh in more tests
Anton Shestakov <av6@dwimlabs.net>
parents: 5962
diff changeset
4
3489
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
5 $ cat >> $HGRCPATH <<EOF
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
6 > [ui]
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
7 > interactive = True
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
8 > [extensions]
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
9 > rebase =
6040
29bc269bcc96 tests: source common.sh in more tests
Anton Shestakov <av6@dwimlabs.net>
parents: 5962
diff changeset
10 > evolve =
3489
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
11 > EOF
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
12
5777
c5dfbbe4363d evolve: when relocating, optionally first try to do it using in-memory merge
Martin von Zweigbergk <martinvonz@google.com>
parents: 5722
diff changeset
13 #testcases inmemory ondisk
c5dfbbe4363d evolve: when relocating, optionally first try to do it using in-memory merge
Martin von Zweigbergk <martinvonz@google.com>
parents: 5722
diff changeset
14 #if inmemory
c5dfbbe4363d evolve: when relocating, optionally first try to do it using in-memory merge
Martin von Zweigbergk <martinvonz@google.com>
parents: 5722
diff changeset
15 $ cat >> $HGRCPATH <<EOF
c5dfbbe4363d evolve: when relocating, optionally first try to do it using in-memory merge
Martin von Zweigbergk <martinvonz@google.com>
parents: 5722
diff changeset
16 > [experimental]
c5dfbbe4363d evolve: when relocating, optionally first try to do it using in-memory merge
Martin von Zweigbergk <martinvonz@google.com>
parents: 5722
diff changeset
17 > evolution.in-memory = yes
c5dfbbe4363d evolve: when relocating, optionally first try to do it using in-memory merge
Martin von Zweigbergk <martinvonz@google.com>
parents: 5722
diff changeset
18 > EOF
c5dfbbe4363d evolve: when relocating, optionally first try to do it using in-memory merge
Martin von Zweigbergk <martinvonz@google.com>
parents: 5722
diff changeset
19 #endif
c5dfbbe4363d evolve: when relocating, optionally first try to do it using in-memory merge
Martin von Zweigbergk <martinvonz@google.com>
parents: 5722
diff changeset
20
3489
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
21 Setting up the repo
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
22
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
23 $ hg init repo
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
24 $ cd repo
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
25 $ echo ".*\.orig" > .hgignore
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
26 $ hg add .hgignore
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
27 $ hg ci -m "added hgignore"
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
28 $ for ch in a b c d; do echo foo>$ch; hg add $ch; hg ci -qm "added "$ch; done
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
29
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
30 $ hg glog
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
31 @ 4:c41c793e0ef1 added d
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
32 | () draft
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
33 o 3:ca1b80f7960a added c
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
34 | () draft
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
35 o 2:b1661037fa25 added b
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
36 | () draft
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
37 o 1:c7586e2a9264 added a
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
38 | () draft
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
39 o 0:8fa14d15e168 added hgignore
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
40 () draft
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
41
4577
bcd52ce0916d evolve: don't update after instability resolution by default (BC)
Anton Shestakov <av6@dwimlabs.net>
parents: 4576
diff changeset
42 Simple case of evolve --continue
3489
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
43
6197
f1d4c9eddcc1 tests: use desc() revset instead of node hashes in test-evolve-continue.t
Luke Granger-Brown <hg@lukegb.com>
parents: 6042
diff changeset
44 $ hg up 'desc("added c")'
3489
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
45 0 files updated, 0 files merged, 1 files removed, 0 files unresolved
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
46 $ echo bar > d
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
47 $ hg add d
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
48 $ hg amend
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
49 1 new orphan changesets
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
50 $ hg glog
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
51 @ 5:cb6a2ab625bb added c
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
52 | () draft
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
53 | * 4:c41c793e0ef1 added d
6042
1cbafebe874b tests: add {instabilities} to the common glog alias
Anton Shestakov <av6@dwimlabs.net>
parents: 6041
diff changeset
54 | | () draft orphan
3489
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
55 | x 3:ca1b80f7960a added c
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
56 |/ () draft
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
57 o 2:b1661037fa25 added b
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
58 | () draft
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
59 o 1:c7586e2a9264 added a
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
60 | () draft
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
61 o 0:8fa14d15e168 added hgignore
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
62 () draft
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
63
4577
bcd52ce0916d evolve: don't update after instability resolution by default (BC)
Anton Shestakov <av6@dwimlabs.net>
parents: 4576
diff changeset
64 $ hg evolve --all
3489
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
65 move:[4] added d
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
66 atop:[5] added c
5777
c5dfbbe4363d evolve: when relocating, optionally first try to do it using in-memory merge
Martin von Zweigbergk <martinvonz@google.com>
parents: 5722
diff changeset
67 merging d (inmemory !)
c5dfbbe4363d evolve: when relocating, optionally first try to do it using in-memory merge
Martin von Zweigbergk <martinvonz@google.com>
parents: 5722
diff changeset
68 hit merge conflicts; retrying merge in working copy (inmemory !)
3489
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
69 merging d
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
70 warning: conflicts while merging d! (edit, then use 'hg resolve --mark')
4676
b6c819facbe8 evolvecmd: the proper way to deal with conflicts is to resolve them
Anton Shestakov <av6@dwimlabs.net>
parents: 4577
diff changeset
71 unresolved merge conflicts
b6c819facbe8 evolvecmd: the proper way to deal with conflicts is to resolve them
Anton Shestakov <av6@dwimlabs.net>
parents: 4577
diff changeset
72 (see 'hg help evolve.interrupted')
5714
b3d9e6c805d6 tests: update with more detailed exit codes
Martin von Zweigbergk <martinvonz@google.com>
parents: 5691
diff changeset
73 [240]
3489
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
74
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
75 $ echo foo > d
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
76 $ hg resolve -m
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
77 (no more unresolved files)
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
78 continue: hg evolve --continue
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
79
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
80 $ hg evolve --continue
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
81 evolving 4:c41c793e0ef1 "added d"
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
82
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
83 $ hg glog
6316
b1d1f4ade142 evolve: don't embed graft data when completing interrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents: 6198
diff changeset
84 o 6:250d8c3c5ad9 added d
3489
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
85 | () draft
4505
cc2bbe2701a3 evolve: store --update flag state in evolvestate file
Anton Shestakov <av6@dwimlabs.net>
parents: 4501
diff changeset
86 @ 5:cb6a2ab625bb added c
3489
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
87 | () draft
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
88 o 2:b1661037fa25 added b
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
89 | () draft
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
90 o 1:c7586e2a9264 added a
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
91 | () draft
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
92 o 0:8fa14d15e168 added hgignore
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
93 () draft
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
94
4505
cc2bbe2701a3 evolve: store --update flag state in evolvestate file
Anton Shestakov <av6@dwimlabs.net>
parents: 4501
diff changeset
95 $ hg up
cc2bbe2701a3 evolve: store --update flag state in evolvestate file
Anton Shestakov <av6@dwimlabs.net>
parents: 4501
diff changeset
96 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
cc2bbe2701a3 evolve: store --update flag state in evolvestate file
Anton Shestakov <av6@dwimlabs.net>
parents: 4501
diff changeset
97
6198
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
98 Testing hg continue for evolve
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
99
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
100 $ hg up 'desc("added b")'
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
101 0 files updated, 0 files merged, 2 files removed, 0 files unresolved
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
102 $ echo bar > c
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
103 $ hg add c
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
104 $ hg amend
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
105 2 new orphan changesets
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
106 $ hg glog
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
107 @ 7:8591ebad2ee8 added b
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
108 | () draft
6316
b1d1f4ade142 evolve: don't embed graft data when completing interrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents: 6198
diff changeset
109 | * 6:250d8c3c5ad9 added d
6198
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
110 | | () draft orphan
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
111 | * 5:cb6a2ab625bb added c
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
112 | | () draft orphan
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
113 | x 2:b1661037fa25 added b
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
114 |/ () draft
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
115 o 1:c7586e2a9264 added a
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
116 | () draft
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
117 o 0:8fa14d15e168 added hgignore
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
118 () draft
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
119
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
120 $ hg evolve --all
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
121 move:[5] added c
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
122 atop:[7] added b
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
123 merging c (inmemory !)
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
124 hit merge conflicts; retrying merge in working copy (inmemory !)
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
125 merging c
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
126 warning: conflicts while merging c! (edit, then use 'hg resolve --mark')
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
127 unresolved merge conflicts
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
128 (see 'hg help evolve.interrupted')
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
129 [240]
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
130
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
131 $ echo foo > c
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
132 $ hg resolve -m
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
133 (no more unresolved files)
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
134 continue: hg evolve --continue
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
135
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
136 $ hg continue
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
137 evolving 5:cb6a2ab625bb "added c"
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
138 move:[6] added d
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
139 atop:[8] added c
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
140
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
141 $ hg glog
6316
b1d1f4ade142 evolve: don't embed graft data when completing interrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents: 6198
diff changeset
142 o 9:628919fc6772 added d
6198
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
143 | () draft
6316
b1d1f4ade142 evolve: don't embed graft data when completing interrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents: 6198
diff changeset
144 o 8:f8d5006085c0 added c
6198
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
145 | () draft
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
146 @ 7:8591ebad2ee8 added b
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
147 | () draft
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
148 o 1:c7586e2a9264 added a
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
149 | () draft
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
150 o 0:8fa14d15e168 added hgignore
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
151 () draft
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
152
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
153 $ hg up
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
154 2 files updated, 0 files merged, 0 files removed, 0 files unresolved
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
155
3489
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
156 Case when conflicts resolution lead to empty wdir in evolve --continue
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
157
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
158 $ echo foo > e
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
159 $ hg ci -Aqm "added e"
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
160 $ hg prev
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
161 0 files updated, 0 files merged, 1 files removed, 0 files unresolved
6198
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
162 [9] added d
3489
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
163 $ echo bar > e
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
164 $ hg add e
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
165 $ hg amend
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
166 1 new orphan changesets
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
167
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
168 $ hg glog
6316
b1d1f4ade142 evolve: don't embed graft data when completing interrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents: 6198
diff changeset
169 @ 11:7898e026e390 added d
3489
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
170 | () draft
6316
b1d1f4ade142 evolve: don't embed graft data when completing interrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents: 6198
diff changeset
171 | * 10:5610cf0a9e66 added e
6042
1cbafebe874b tests: add {instabilities} to the common glog alias
Anton Shestakov <av6@dwimlabs.net>
parents: 6041
diff changeset
172 | | () draft orphan
6316
b1d1f4ade142 evolve: don't embed graft data when completing interrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents: 6198
diff changeset
173 | x 9:628919fc6772 added d
3489
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
174 |/ () draft
6316
b1d1f4ade142 evolve: don't embed graft data when completing interrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents: 6198
diff changeset
175 o 8:f8d5006085c0 added c
3489
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
176 | () draft
6198
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
177 o 7:8591ebad2ee8 added b
3489
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
178 | () draft
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
179 o 1:c7586e2a9264 added a
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
180 | () draft
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
181 o 0:8fa14d15e168 added hgignore
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
182 () draft
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
183
4576
96ce1030d2fb tests: add --update to hg evolve to reduce test changes for the next patch
Anton Shestakov <av6@dwimlabs.net>
parents: 4505
diff changeset
184 $ hg evolve --update
6198
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
185 move:[10] added e
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
186 atop:[11] added d
5777
c5dfbbe4363d evolve: when relocating, optionally first try to do it using in-memory merge
Martin von Zweigbergk <martinvonz@google.com>
parents: 5722
diff changeset
187 merging e (inmemory !)
c5dfbbe4363d evolve: when relocating, optionally first try to do it using in-memory merge
Martin von Zweigbergk <martinvonz@google.com>
parents: 5722
diff changeset
188 hit merge conflicts; retrying merge in working copy (inmemory !)
3489
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
189 merging e
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
190 warning: conflicts while merging e! (edit, then use 'hg resolve --mark')
4676
b6c819facbe8 evolvecmd: the proper way to deal with conflicts is to resolve them
Anton Shestakov <av6@dwimlabs.net>
parents: 4577
diff changeset
191 unresolved merge conflicts
b6c819facbe8 evolvecmd: the proper way to deal with conflicts is to resolve them
Anton Shestakov <av6@dwimlabs.net>
parents: 4577
diff changeset
192 (see 'hg help evolve.interrupted')
5714
b3d9e6c805d6 tests: update with more detailed exit codes
Martin von Zweigbergk <martinvonz@google.com>
parents: 5691
diff changeset
193 [240]
3489
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
194
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
195 $ echo bar > e
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
196 $ hg resolve -m
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
197 (no more unresolved files)
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
198 continue: hg evolve --continue
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
199 $ hg diff
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
200
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
201 $ hg evolve --continue
6316
b1d1f4ade142 evolve: don't embed graft data when completing interrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents: 6198
diff changeset
202 evolving 10:5610cf0a9e66 "added e"
b1d1f4ade142 evolve: don't embed graft data when completing interrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents: 6198
diff changeset
203 evolution of 10:5610cf0a9e66 created no changes to commit
3489
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
204
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
205 $ hg glog
6316
b1d1f4ade142 evolve: don't embed graft data when completing interrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents: 6198
diff changeset
206 @ 11:7898e026e390 added d
3489
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
207 | () draft
6316
b1d1f4ade142 evolve: don't embed graft data when completing interrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents: 6198
diff changeset
208 o 8:f8d5006085c0 added c
3489
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
209 | () draft
6198
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
210 o 7:8591ebad2ee8 added b
3489
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
211 | () draft
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
212 o 1:c7586e2a9264 added a
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
213 | () draft
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
214 o 0:8fa14d15e168 added hgignore
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
215 () draft
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
216
3491
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
217 Case when there are a lot of revision to continue
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
218
6197
f1d4c9eddcc1 tests: use desc() revset instead of node hashes in test-evolve-continue.t
Luke Granger-Brown <hg@lukegb.com>
parents: 6042
diff changeset
219 $ hg up 'desc("added a")'
3491
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
220 0 files updated, 0 files merged, 4 files removed, 0 files unresolved
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
221 $ echo bar > b
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
222 $ hg add b
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
223 $ hg amend
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
224 3 new orphan changesets
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
225
4576
96ce1030d2fb tests: add --update to hg evolve to reduce test changes for the next patch
Anton Shestakov <av6@dwimlabs.net>
parents: 4505
diff changeset
226 $ hg evolve --all --update
6198
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
227 move:[7] added b
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
228 atop:[12] added a
5777
c5dfbbe4363d evolve: when relocating, optionally first try to do it using in-memory merge
Martin von Zweigbergk <martinvonz@google.com>
parents: 5722
diff changeset
229 merging b (inmemory !)
c5dfbbe4363d evolve: when relocating, optionally first try to do it using in-memory merge
Martin von Zweigbergk <martinvonz@google.com>
parents: 5722
diff changeset
230 hit merge conflicts; retrying merge in working copy (inmemory !)
3491
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
231 merging b
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
232 warning: conflicts while merging b! (edit, then use 'hg resolve --mark')
4676
b6c819facbe8 evolvecmd: the proper way to deal with conflicts is to resolve them
Anton Shestakov <av6@dwimlabs.net>
parents: 4577
diff changeset
233 unresolved merge conflicts
b6c819facbe8 evolvecmd: the proper way to deal with conflicts is to resolve them
Anton Shestakov <av6@dwimlabs.net>
parents: 4577
diff changeset
234 (see 'hg help evolve.interrupted')
5714
b3d9e6c805d6 tests: update with more detailed exit codes
Martin von Zweigbergk <martinvonz@google.com>
parents: 5691
diff changeset
235 [240]
3491
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
236
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
237 $ echo foo > b
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
238 $ hg resolve -m
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
239 (no more unresolved files)
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
240 continue: hg evolve --continue
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
241 $ hg evolve --continue
6198
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
242 evolving 7:8591ebad2ee8 "added b"
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
243 move:[8] added c
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
244 atop:[13] added b
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
245 move:[11] added d
6317
53d63b608230 evolve: stop preserving all of {extras} for uninterrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents: 6316
diff changeset
246 working directory is now at 0fb68c8390f6
3491
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
247
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
248 $ hg glog
6317
53d63b608230 evolve: stop preserving all of {extras} for uninterrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents: 6316
diff changeset
249 @ 15:0fb68c8390f6 added d
3491
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
250 | () draft
6316
b1d1f4ade142 evolve: don't embed graft data when completing interrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents: 6198
diff changeset
251 o 14:7bf9d72ff3bf added c
3491
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
252 | () draft
6316
b1d1f4ade142 evolve: don't embed graft data when completing interrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents: 6198
diff changeset
253 o 13:aaa724b65a25 added b
3491
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
254 | () draft
6198
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
255 o 12:53b632d203d8 added a
3491
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
256 | () draft
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
257 o 0:8fa14d15e168 added hgignore
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
258 () draft
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
259
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
260 Conlicts -> resolve -> continue -> conflicts -> resolve -> continue
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
261 Test multiple conflicts in one evolve
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
262
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
263 $ for ch in f g h; do echo foo > $ch; hg add $ch; hg ci -m "added "$ch; done;
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
264
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
265 $ hg glog
6317
53d63b608230 evolve: stop preserving all of {extras} for uninterrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents: 6316
diff changeset
266 @ 18:1519cf722575 added h
3491
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
267 | () draft
6317
53d63b608230 evolve: stop preserving all of {extras} for uninterrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents: 6316
diff changeset
268 o 17:04c32ddd9b44 added g
3491
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
269 | () draft
6317
53d63b608230 evolve: stop preserving all of {extras} for uninterrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents: 6316
diff changeset
270 o 16:29139ab665e3 added f
3491
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
271 | () draft
6317
53d63b608230 evolve: stop preserving all of {extras} for uninterrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents: 6316
diff changeset
272 o 15:0fb68c8390f6 added d
3491
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
273 | () draft
6316
b1d1f4ade142 evolve: don't embed graft data when completing interrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents: 6198
diff changeset
274 o 14:7bf9d72ff3bf added c
3491
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
275 | () draft
6316
b1d1f4ade142 evolve: don't embed graft data when completing interrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents: 6198
diff changeset
276 o 13:aaa724b65a25 added b
3491
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
277 | () draft
6198
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
278 o 12:53b632d203d8 added a
3491
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
279 | () draft
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
280 o 0:8fa14d15e168 added hgignore
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
281 () draft
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
282
6197
f1d4c9eddcc1 tests: use desc() revset instead of node hashes in test-evolve-continue.t
Luke Granger-Brown <hg@lukegb.com>
parents: 6042
diff changeset
283 $ hg up 'desc("added c")'
3491
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
284 1 files updated, 0 files merged, 4 files removed, 0 files unresolved
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
285
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
286 $ echo bar > f
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
287 $ echo bar > h
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
288 $ hg add f h
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
289 $ hg amend
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
290 4 new orphan changesets
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
291
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
292 $ hg glog
6316
b1d1f4ade142 evolve: don't embed graft data when completing interrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents: 6198
diff changeset
293 @ 19:ebc872a542e5 added c
3491
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
294 | () draft
6317
53d63b608230 evolve: stop preserving all of {extras} for uninterrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents: 6316
diff changeset
295 | * 18:1519cf722575 added h
6042
1cbafebe874b tests: add {instabilities} to the common glog alias
Anton Shestakov <av6@dwimlabs.net>
parents: 6041
diff changeset
296 | | () draft orphan
6317
53d63b608230 evolve: stop preserving all of {extras} for uninterrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents: 6316
diff changeset
297 | * 17:04c32ddd9b44 added g
6042
1cbafebe874b tests: add {instabilities} to the common glog alias
Anton Shestakov <av6@dwimlabs.net>
parents: 6041
diff changeset
298 | | () draft orphan
6317
53d63b608230 evolve: stop preserving all of {extras} for uninterrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents: 6316
diff changeset
299 | * 16:29139ab665e3 added f
6042
1cbafebe874b tests: add {instabilities} to the common glog alias
Anton Shestakov <av6@dwimlabs.net>
parents: 6041
diff changeset
300 | | () draft orphan
6317
53d63b608230 evolve: stop preserving all of {extras} for uninterrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents: 6316
diff changeset
301 | * 15:0fb68c8390f6 added d
6042
1cbafebe874b tests: add {instabilities} to the common glog alias
Anton Shestakov <av6@dwimlabs.net>
parents: 6041
diff changeset
302 | | () draft orphan
6316
b1d1f4ade142 evolve: don't embed graft data when completing interrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents: 6198
diff changeset
303 | x 14:7bf9d72ff3bf added c
3491
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
304 |/ () draft
6316
b1d1f4ade142 evolve: don't embed graft data when completing interrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents: 6198
diff changeset
305 o 13:aaa724b65a25 added b
3491
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
306 | () draft
6198
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
307 o 12:53b632d203d8 added a
3491
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
308 | () draft
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
309 o 0:8fa14d15e168 added hgignore
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
310 () draft
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
311
4576
96ce1030d2fb tests: add --update to hg evolve to reduce test changes for the next patch
Anton Shestakov <av6@dwimlabs.net>
parents: 4505
diff changeset
312 $ hg evolve --all --update
6198
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
313 move:[15] added d
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
314 atop:[19] added c
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
315 move:[16] added f
5777
c5dfbbe4363d evolve: when relocating, optionally first try to do it using in-memory merge
Martin von Zweigbergk <martinvonz@google.com>
parents: 5722
diff changeset
316 merging f (inmemory !)
c5dfbbe4363d evolve: when relocating, optionally first try to do it using in-memory merge
Martin von Zweigbergk <martinvonz@google.com>
parents: 5722
diff changeset
317 hit merge conflicts; retrying merge in working copy (inmemory !)
3491
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
318 merging f
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
319 warning: conflicts while merging f! (edit, then use 'hg resolve --mark')
4676
b6c819facbe8 evolvecmd: the proper way to deal with conflicts is to resolve them
Anton Shestakov <av6@dwimlabs.net>
parents: 4577
diff changeset
320 unresolved merge conflicts
b6c819facbe8 evolvecmd: the proper way to deal with conflicts is to resolve them
Anton Shestakov <av6@dwimlabs.net>
parents: 4577
diff changeset
321 (see 'hg help evolve.interrupted')
5714
b3d9e6c805d6 tests: update with more detailed exit codes
Martin von Zweigbergk <martinvonz@google.com>
parents: 5691
diff changeset
322 [240]
3491
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
323
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
324 $ echo foo > f
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
325 $ hg resolve -m
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
326 (no more unresolved files)
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
327 continue: hg evolve --continue
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
328 $ hg evolve --continue
6317
53d63b608230 evolve: stop preserving all of {extras} for uninterrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents: 6316
diff changeset
329 evolving 16:29139ab665e3 "added f"
6198
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
330 move:[17] added g
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
331 atop:[21] added f
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
332 move:[18] added h
5777
c5dfbbe4363d evolve: when relocating, optionally first try to do it using in-memory merge
Martin von Zweigbergk <martinvonz@google.com>
parents: 5722
diff changeset
333 merging h (inmemory !)
c5dfbbe4363d evolve: when relocating, optionally first try to do it using in-memory merge
Martin von Zweigbergk <martinvonz@google.com>
parents: 5722
diff changeset
334 hit merge conflicts; retrying merge in working copy (inmemory !)
3491
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
335 merging h
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
336 warning: conflicts while merging h! (edit, then use 'hg resolve --mark')
4676
b6c819facbe8 evolvecmd: the proper way to deal with conflicts is to resolve them
Anton Shestakov <av6@dwimlabs.net>
parents: 4577
diff changeset
337 unresolved merge conflicts
b6c819facbe8 evolvecmd: the proper way to deal with conflicts is to resolve them
Anton Shestakov <av6@dwimlabs.net>
parents: 4577
diff changeset
338 (see 'hg help evolve.interrupted')
5714
b3d9e6c805d6 tests: update with more detailed exit codes
Martin von Zweigbergk <martinvonz@google.com>
parents: 5691
diff changeset
339 [240]
3491
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
340
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
341 $ echo foo > h
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
342 $ hg resolve -m
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
343 (no more unresolved files)
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
344 continue: hg evolve --continue
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
345 $ hg evolve --continue
6317
53d63b608230 evolve: stop preserving all of {extras} for uninterrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents: 6316
diff changeset
346 evolving 18:1519cf722575 "added h"
53d63b608230 evolve: stop preserving all of {extras} for uninterrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents: 6316
diff changeset
347 working directory is now at 0eb2b6434bd7
3491
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
348
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
349 Make sure, confirmopt is respected while continue
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
350
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
351 $ hg glog
6317
53d63b608230 evolve: stop preserving all of {extras} for uninterrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents: 6316
diff changeset
352 @ 23:0eb2b6434bd7 added h
3491
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
353 | () draft
6317
53d63b608230 evolve: stop preserving all of {extras} for uninterrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents: 6316
diff changeset
354 o 22:d4c17c25a1c7 added g
3491
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
355 | () draft
6317
53d63b608230 evolve: stop preserving all of {extras} for uninterrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents: 6316
diff changeset
356 o 21:602e4bd1e5aa added f
3491
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
357 | () draft
6317
53d63b608230 evolve: stop preserving all of {extras} for uninterrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents: 6316
diff changeset
358 o 20:5cf56d246d18 added d
3491
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
359 | () draft
6316
b1d1f4ade142 evolve: don't embed graft data when completing interrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents: 6198
diff changeset
360 o 19:ebc872a542e5 added c
3491
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
361 | () draft
6316
b1d1f4ade142 evolve: don't embed graft data when completing interrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents: 6198
diff changeset
362 o 13:aaa724b65a25 added b
3491
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
363 | () draft
6198
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
364 o 12:53b632d203d8 added a
3491
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
365 | () draft
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
366 o 0:8fa14d15e168 added hgignore
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
367 () draft
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
368
6197
f1d4c9eddcc1 tests: use desc() revset instead of node hashes in test-evolve-continue.t
Luke Granger-Brown <hg@lukegb.com>
parents: 6042
diff changeset
369 $ hg up 'desc("added f")'
3491
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
370 1 files updated, 0 files merged, 1 files removed, 0 files unresolved
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
371 $ echo bar > g
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
372 $ hg add g
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
373 $ hg amend
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
374 2 new orphan changesets
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
375
4576
96ce1030d2fb tests: add --update to hg evolve to reduce test changes for the next patch
Anton Shestakov <av6@dwimlabs.net>
parents: 4505
diff changeset
376 $ hg evolve --all --update --confirm << EOF
3491
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
377 > y
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
378 > EOF
6198
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
379 move:[22] added g
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
380 atop:[24] added f
3491
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
381 perform evolve? [Ny] y
5777
c5dfbbe4363d evolve: when relocating, optionally first try to do it using in-memory merge
Martin von Zweigbergk <martinvonz@google.com>
parents: 5722
diff changeset
382 merging g (inmemory !)
c5dfbbe4363d evolve: when relocating, optionally first try to do it using in-memory merge
Martin von Zweigbergk <martinvonz@google.com>
parents: 5722
diff changeset
383 hit merge conflicts; retrying merge in working copy (inmemory !)
3491
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
384 merging g
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
385 warning: conflicts while merging g! (edit, then use 'hg resolve --mark')
4676
b6c819facbe8 evolvecmd: the proper way to deal with conflicts is to resolve them
Anton Shestakov <av6@dwimlabs.net>
parents: 4577
diff changeset
386 unresolved merge conflicts
b6c819facbe8 evolvecmd: the proper way to deal with conflicts is to resolve them
Anton Shestakov <av6@dwimlabs.net>
parents: 4577
diff changeset
387 (see 'hg help evolve.interrupted')
5714
b3d9e6c805d6 tests: update with more detailed exit codes
Martin von Zweigbergk <martinvonz@google.com>
parents: 5691
diff changeset
388 [240]
3491
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
389
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
390 $ echo foo > g
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
391 $ hg resolve -m
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
392 (no more unresolved files)
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
393 continue: hg evolve --continue
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
394
4576
96ce1030d2fb tests: add --update to hg evolve to reduce test changes for the next patch
Anton Shestakov <av6@dwimlabs.net>
parents: 4505
diff changeset
395 $ hg evolve --continue << EOF
3493
4544067b831b evolve: make `hg evolve --continue` respect `--confirm`
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3492
diff changeset
396 > y
4544067b831b evolve: make `hg evolve --continue` respect `--confirm`
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3492
diff changeset
397 > EOF
6317
53d63b608230 evolve: stop preserving all of {extras} for uninterrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents: 6316
diff changeset
398 evolving 22:d4c17c25a1c7 "added g"
6198
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
399 move:[23] added h
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
400 atop:[25] added g
3493
4544067b831b evolve: make `hg evolve --continue` respect `--confirm`
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3492
diff changeset
401 perform evolve? [Ny] y
6317
53d63b608230 evolve: stop preserving all of {extras} for uninterrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents: 6316
diff changeset
402 working directory is now at cc583f773dc4
3491
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
403
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
404 $ hg glog
6317
53d63b608230 evolve: stop preserving all of {extras} for uninterrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents: 6316
diff changeset
405 @ 26:cc583f773dc4 added h
3491
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
406 | () draft
6317
53d63b608230 evolve: stop preserving all of {extras} for uninterrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents: 6316
diff changeset
407 o 25:84772f0dfa79 added g
3491
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
408 | () draft
6317
53d63b608230 evolve: stop preserving all of {extras} for uninterrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents: 6316
diff changeset
409 o 24:d074fc123610 added f
3491
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
410 | () draft
6317
53d63b608230 evolve: stop preserving all of {extras} for uninterrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents: 6316
diff changeset
411 o 20:5cf56d246d18 added d
3491
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
412 | () draft
6316
b1d1f4ade142 evolve: don't embed graft data when completing interrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents: 6198
diff changeset
413 o 19:ebc872a542e5 added c
3491
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
414 | () draft
6316
b1d1f4ade142 evolve: don't embed graft data when completing interrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents: 6198
diff changeset
415 o 13:aaa724b65a25 added b
3491
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
416 | () draft
6198
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
417 o 12:53b632d203d8 added a
3491
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
418 | () draft
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
419 o 0:8fa14d15e168 added hgignore
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
420 () draft
3502
8cf1020bd4f9 tests: add test showing `evolve --continue` after `next --evolve` is broken
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3494
diff changeset
421
8cf1020bd4f9 tests: add test showing `evolve --continue` after `next --evolve` is broken
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3494
diff changeset
422 Testing `evolve --continue` after `hg next --evolve`
8cf1020bd4f9 tests: add test showing `evolve --continue` after `next --evolve` is broken
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3494
diff changeset
423
8cf1020bd4f9 tests: add test showing `evolve --continue` after `next --evolve` is broken
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3494
diff changeset
424 $ hg up .^^
8cf1020bd4f9 tests: add test showing `evolve --continue` after `next --evolve` is broken
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3494
diff changeset
425 2 files updated, 0 files merged, 0 files removed, 0 files unresolved
8cf1020bd4f9 tests: add test showing `evolve --continue` after `next --evolve` is broken
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3494
diff changeset
426 $ echo foobar > g
8cf1020bd4f9 tests: add test showing `evolve --continue` after `next --evolve` is broken
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3494
diff changeset
427 $ hg amend
8cf1020bd4f9 tests: add test showing `evolve --continue` after `next --evolve` is broken
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3494
diff changeset
428 2 new orphan changesets
8cf1020bd4f9 tests: add test showing `evolve --continue` after `next --evolve` is broken
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3494
diff changeset
429
8cf1020bd4f9 tests: add test showing `evolve --continue` after `next --evolve` is broken
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3494
diff changeset
430 $ hg next --evolve
6198
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
431 move:[25] added g
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
432 atop:[27] added f
5777
c5dfbbe4363d evolve: when relocating, optionally first try to do it using in-memory merge
Martin von Zweigbergk <martinvonz@google.com>
parents: 5722
diff changeset
433 merging g (inmemory !)
c5dfbbe4363d evolve: when relocating, optionally first try to do it using in-memory merge
Martin von Zweigbergk <martinvonz@google.com>
parents: 5722
diff changeset
434 hit merge conflicts; retrying merge in working copy (inmemory !)
3502
8cf1020bd4f9 tests: add test showing `evolve --continue` after `next --evolve` is broken
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3494
diff changeset
435 merging g
8cf1020bd4f9 tests: add test showing `evolve --continue` after `next --evolve` is broken
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3494
diff changeset
436 warning: conflicts while merging g! (edit, then use 'hg resolve --mark')
4676
b6c819facbe8 evolvecmd: the proper way to deal with conflicts is to resolve them
Anton Shestakov <av6@dwimlabs.net>
parents: 4577
diff changeset
437 unresolved merge conflicts
b6c819facbe8 evolvecmd: the proper way to deal with conflicts is to resolve them
Anton Shestakov <av6@dwimlabs.net>
parents: 4577
diff changeset
438 (see 'hg help evolve.interrupted')
5714
b3d9e6c805d6 tests: update with more detailed exit codes
Martin von Zweigbergk <martinvonz@google.com>
parents: 5691
diff changeset
439 [240]
3502
8cf1020bd4f9 tests: add test showing `evolve --continue` after `next --evolve` is broken
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3494
diff changeset
440 $ echo foo > g
8cf1020bd4f9 tests: add test showing `evolve --continue` after `next --evolve` is broken
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3494
diff changeset
441 $ hg resolve -m
8cf1020bd4f9 tests: add test showing `evolve --continue` after `next --evolve` is broken
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3494
diff changeset
442 (no more unresolved files)
8cf1020bd4f9 tests: add test showing `evolve --continue` after `next --evolve` is broken
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3494
diff changeset
443 continue: hg evolve --continue
8cf1020bd4f9 tests: add test showing `evolve --continue` after `next --evolve` is broken
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3494
diff changeset
444 $ hg evolve --continue
6317
53d63b608230 evolve: stop preserving all of {extras} for uninterrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents: 6316
diff changeset
445 evolving 25:84772f0dfa79 "added g"
4425
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
446
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
447 Testing that interrupted evolve don't get confused about copies (issue5930):
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
448 ----------------------------------------------------------------------------
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
449
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
450 $ cd ..
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
451 $ hg init issue5930
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
452 $ cd issue5930
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
453 $ echo a > a
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
454 $ hg ci -Am "added a"
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
455 adding a
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
456 $ hg cp a b
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
457 $ hg ci -m "rename a to b"
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
458
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
459 $ hg up 0 -q
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
460 $ echo c > c
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
461 $ hg ci -Am "added c"
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
462 adding c
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
463 created new head
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
464
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
465 $ echo d > c
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
466 $ echo d > d
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
467 $ hg ci -Am "added d, modified c"
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
468 adding d
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
469 $ hg up .^
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
470 1 files updated, 0 files merged, 1 files removed, 0 files unresolved
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
471
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
472 $ hg log -G -T "{rev} {desc}\n"
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
473 o 3 added d, modified c
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
474 |
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
475 @ 2 added c
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
476 |
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
477 | o 1 rename a to b
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
478 |/
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
479 o 0 added a
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
480
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
481 $ hg rebase -r . -d 1
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
482 rebasing 2:29edef26570b "added c"
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
483 1 new orphan changesets
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
484 $ echo conflict > c
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
485 $ hg amend
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
486
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
487 $ hg log -G -T "{rev} {desc}\n"
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
488 @ 5 added c
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
489 |
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
490 | * 3 added d, modified c
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
491 | |
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
492 | x 2 added c
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
493 | |
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
494 o | 1 rename a to b
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
495 |/
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
496 o 0 added a
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
497
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
498
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
499 $ hg evolve
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
500 move:[3] added d, modified c
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
501 atop:[5] added c
5777
c5dfbbe4363d evolve: when relocating, optionally first try to do it using in-memory merge
Martin von Zweigbergk <martinvonz@google.com>
parents: 5722
diff changeset
502 merging c (inmemory !)
c5dfbbe4363d evolve: when relocating, optionally first try to do it using in-memory merge
Martin von Zweigbergk <martinvonz@google.com>
parents: 5722
diff changeset
503 hit merge conflicts; retrying merge in working copy (inmemory !)
4425
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
504 merging c
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
505 warning: conflicts while merging c! (edit, then use 'hg resolve --mark')
4676
b6c819facbe8 evolvecmd: the proper way to deal with conflicts is to resolve them
Anton Shestakov <av6@dwimlabs.net>
parents: 4577
diff changeset
506 unresolved merge conflicts
b6c819facbe8 evolvecmd: the proper way to deal with conflicts is to resolve them
Anton Shestakov <av6@dwimlabs.net>
parents: 4577
diff changeset
507 (see 'hg help evolve.interrupted')
5714
b3d9e6c805d6 tests: update with more detailed exit codes
Martin von Zweigbergk <martinvonz@google.com>
parents: 5691
diff changeset
508 [240]
4425
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
509
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
510 Status mentions file 'b' (copied from 'a') here, even though it wasn't
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
511 affected by the evolved changeset (nor was 'a')
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
512
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
513 $ hg st -C
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
514 M c
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
515 A d
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
516 ? c.orig
5010
effce0a1f5bd tests: demonstrate how evolve loses transitive copies when interrupted
Martin von Zweigbergk <martinvonz@google.com>
parents: 4676
diff changeset
517
effce0a1f5bd tests: demonstrate how evolve loses transitive copies when interrupted
Martin von Zweigbergk <martinvonz@google.com>
parents: 4676
diff changeset
518 $ cd ..
effce0a1f5bd tests: demonstrate how evolve loses transitive copies when interrupted
Martin von Zweigbergk <martinvonz@google.com>
parents: 4676
diff changeset
519 $ hg init transitive-renames
effce0a1f5bd tests: demonstrate how evolve loses transitive copies when interrupted
Martin von Zweigbergk <martinvonz@google.com>
parents: 4676
diff changeset
520 $ cd transitive-renames
effce0a1f5bd tests: demonstrate how evolve loses transitive copies when interrupted
Martin von Zweigbergk <martinvonz@google.com>
parents: 4676
diff changeset
521 $ echo 1 > a
effce0a1f5bd tests: demonstrate how evolve loses transitive copies when interrupted
Martin von Zweigbergk <martinvonz@google.com>
parents: 4676
diff changeset
522 $ echo 1 > b
effce0a1f5bd tests: demonstrate how evolve loses transitive copies when interrupted
Martin von Zweigbergk <martinvonz@google.com>
parents: 4676
diff changeset
523 $ hg ci -Aqm initial
effce0a1f5bd tests: demonstrate how evolve loses transitive copies when interrupted
Martin von Zweigbergk <martinvonz@google.com>
parents: 4676
diff changeset
524 $ echo 2 > a
effce0a1f5bd tests: demonstrate how evolve loses transitive copies when interrupted
Martin von Zweigbergk <martinvonz@google.com>
parents: 4676
diff changeset
525 $ hg mv b c
effce0a1f5bd tests: demonstrate how evolve loses transitive copies when interrupted
Martin von Zweigbergk <martinvonz@google.com>
parents: 4676
diff changeset
526 $ hg ci -m 'rename b to c'
effce0a1f5bd tests: demonstrate how evolve loses transitive copies when interrupted
Martin von Zweigbergk <martinvonz@google.com>
parents: 4676
diff changeset
527 $ echo 3 > a
effce0a1f5bd tests: demonstrate how evolve loses transitive copies when interrupted
Martin von Zweigbergk <martinvonz@google.com>
parents: 4676
diff changeset
528 $ hg mv c d
effce0a1f5bd tests: demonstrate how evolve loses transitive copies when interrupted
Martin von Zweigbergk <martinvonz@google.com>
parents: 4676
diff changeset
529 $ hg ci -m 'rename c to d'
effce0a1f5bd tests: demonstrate how evolve loses transitive copies when interrupted
Martin von Zweigbergk <martinvonz@google.com>
parents: 4676
diff changeset
530 $ hg prev -q
effce0a1f5bd tests: demonstrate how evolve loses transitive copies when interrupted
Martin von Zweigbergk <martinvonz@google.com>
parents: 4676
diff changeset
531 $ echo 2b > a
effce0a1f5bd tests: demonstrate how evolve loses transitive copies when interrupted
Martin von Zweigbergk <martinvonz@google.com>
parents: 4676
diff changeset
532 $ hg amend -q
effce0a1f5bd tests: demonstrate how evolve loses transitive copies when interrupted
Martin von Zweigbergk <martinvonz@google.com>
parents: 4676
diff changeset
533 1 new orphan changesets
5962
b68789e8c535 tests: spell out hg commands for readability
Anton Shestakov <av6@dwimlabs.net>
parents: 5777
diff changeset
534 $ hg evolve -q
5010
effce0a1f5bd tests: demonstrate how evolve loses transitive copies when interrupted
Martin von Zweigbergk <martinvonz@google.com>
parents: 4676
diff changeset
535 warning: conflicts while merging a! (edit, then use 'hg resolve --mark')
effce0a1f5bd tests: demonstrate how evolve loses transitive copies when interrupted
Martin von Zweigbergk <martinvonz@google.com>
parents: 4676
diff changeset
536 unresolved merge conflicts
effce0a1f5bd tests: demonstrate how evolve loses transitive copies when interrupted
Martin von Zweigbergk <martinvonz@google.com>
parents: 4676
diff changeset
537 (see 'hg help evolve.interrupted')
5714
b3d9e6c805d6 tests: update with more detailed exit codes
Martin von Zweigbergk <martinvonz@google.com>
parents: 5691
diff changeset
538 [240]
5010
effce0a1f5bd tests: demonstrate how evolve loses transitive copies when interrupted
Martin von Zweigbergk <martinvonz@google.com>
parents: 4676
diff changeset
539 $ hg st -C
effce0a1f5bd tests: demonstrate how evolve loses transitive copies when interrupted
Martin von Zweigbergk <martinvonz@google.com>
parents: 4676
diff changeset
540 M a
effce0a1f5bd tests: demonstrate how evolve loses transitive copies when interrupted
Martin von Zweigbergk <martinvonz@google.com>
parents: 4676
diff changeset
541 A d
5011
04104042c6ad evolve: delete redundant and incorrect code for updating dirstate
Martin von Zweigbergk <martinvonz@google.com>
parents: 5010
diff changeset
542 c
5010
effce0a1f5bd tests: demonstrate how evolve loses transitive copies when interrupted
Martin von Zweigbergk <martinvonz@google.com>
parents: 4676
diff changeset
543 R c
effce0a1f5bd tests: demonstrate how evolve loses transitive copies when interrupted
Martin von Zweigbergk <martinvonz@google.com>
parents: 4676
diff changeset
544 ? a.orig