Mercurial > evolve
annotate tests/test-evolve-topic.t @ 6910:038df334d51a mercurial-6.0
test-compat: merge mercurial-6.1 into mercurial-6.0
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Fri, 25 Oct 2024 15:50:15 +0400 |
parents | 53d63b608230 |
children | 1328195f76a9 9da0114a8a02 |
rev | line source |
---|---|
1626
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
1 |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
2 Check we can find the topic extensions |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
3 |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
4 $ cat >> $HGRCPATH <<EOF |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
5 > [ui] |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
6 > logtemplate = {rev} - \{{get(namespaces, "topics")}} {node|short} {desc} ({phase})\n |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
7 > [extensions] |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
8 > rebase = |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
9 > EOF |
1806
9f42f819267b
evolve: move the extensions to 'hgext3rd'
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
1723
diff
changeset
|
10 $ echo "evolve=$(echo $(dirname $TESTDIR))/hgext3rd/evolve/" >> $HGRCPATH |
2020
143c8e4dc22d
topic: merge the topic extension in the evolve repository
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
1806
diff
changeset
|
11 $ echo "topic=$(echo $(dirname $TESTDIR))/hgext3rd/topic/" >> $HGRCPATH |
1626
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
12 |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
13 $ mkcommit() { |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
14 > echo "$1" > "$1" |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
15 > hg add "$1" |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
16 > hg ci -m "add $1" |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
17 > } |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
18 |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
19 Create a simple setup |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
20 |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
21 $ hg init repoa |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
22 $ cd repoa |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
23 $ mkcommit aaa |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
24 $ mkcommit bbb |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
25 $ hg topic foo |
2985
f63c97c01f92
topics/ui: signal when the topics command creates a new (empty) topic
Aurélien Campéas
parents:
2929
diff
changeset
|
26 marked working directory as topic: foo |
1626
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
27 $ mkcommit ccc |
2988
62201935e1a7
topics/ui: detect and signal when an empty changeset becomes non-empty
Aurélien Campéas
parents:
2985
diff
changeset
|
28 active topic 'foo' grew its first changeset |
3769
1bc4b0807c37
topic: display a hint pointing at help when a topic becomes non-empty
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
3580
diff
changeset
|
29 (see 'hg help topics' for more information) |
1626
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
30 $ mkcommit ddd |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
31 $ mkcommit eee |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
32 $ mkcommit fff |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
33 $ hg topic bar |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
34 $ mkcommit ggg |
2988
62201935e1a7
topics/ui: detect and signal when an empty changeset becomes non-empty
Aurélien Campéas
parents:
2985
diff
changeset
|
35 active topic 'bar' grew its first changeset |
3769
1bc4b0807c37
topic: display a hint pointing at help when a topic becomes non-empty
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
3580
diff
changeset
|
36 (see 'hg help topics' for more information) |
1626
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
37 $ mkcommit hhh |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
38 $ mkcommit iii |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
39 $ mkcommit jjj |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
40 |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
41 $ hg log -G |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
42 @ 9 - {bar} 1d964213b023 add jjj (draft) |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
43 | |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
44 o 8 - {bar} fcab990f3261 add iii (draft) |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
45 | |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
46 o 7 - {bar} b0c2554835ac add hhh (draft) |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
47 | |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
48 o 6 - {bar} c748293f1c1a add ggg (draft) |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
49 | |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
50 o 5 - {foo} 6a6b7365c751 add fff (draft) |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
51 | |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
52 o 4 - {foo} 3969ab847d9c add eee (draft) |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
53 | |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
54 o 3 - {foo} 4e3a154f38c7 add ddd (draft) |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
55 | |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
56 o 2 - {foo} cced9bac76e3 add ccc (draft) |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
57 | |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
58 o 1 - {} a4dbed0837ea add bbb (draft) |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
59 | |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
60 o 0 - {} 199cc73e9a0b add aaa (draft) |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
61 |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
62 |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
63 Test that evolve --all evolve the current topic |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
64 ----------------------------------------------- |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
65 |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
66 make a mess |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
67 |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
68 $ hg up foo |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
69 switching to topic foo |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
70 0 files updated, 0 files merged, 4 files removed, 0 files unresolved |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
71 $ hg topic -l |
1723
2672f36d668e
test: adapt to topic changes
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
1694
diff
changeset
|
72 ### topic: foo (?) |
2672f36d668e
test: adapt to topic changes
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
1694
diff
changeset
|
73 ### branch: default (?) |
2997
a61634f52742
topic: try to clarify the "branch" part in stack
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
2988
diff
changeset
|
74 ### target: default (branch) |
4067
fb4801478d5d
stack: display 's#' instead of 't#' and 'b#'
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3769
diff
changeset
|
75 s4@ add fff (current) |
fb4801478d5d
stack: display 's#' instead of 't#' and 'b#'
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3769
diff
changeset
|
76 s3: add eee |
fb4801478d5d
stack: display 's#' instead of 't#' and 'b#'
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3769
diff
changeset
|
77 s2: add ddd |
fb4801478d5d
stack: display 's#' instead of 't#' and 'b#'
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3769
diff
changeset
|
78 s1: add ccc |
fb4801478d5d
stack: display 's#' instead of 't#' and 'b#'
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3769
diff
changeset
|
79 s0^ add bbb (base) |
1626
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
80 $ hg up 'desc(ddd)' |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
81 0 files updated, 0 files merged, 2 files removed, 0 files unresolved |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
82 $ echo ddd >> ddd |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
83 $ hg amend |
3013
945a0989e41b
packaging: merge stable back into default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3000
diff
changeset
|
84 6 new orphan changesets |
1626
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
85 $ hg up 'desc(fff)' |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
86 3 files updated, 0 files merged, 0 files removed, 0 files unresolved |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
87 $ echo fff >> fff |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
88 $ hg amend |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
89 |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
90 $ hg log -G |
3013
945a0989e41b
packaging: merge stable back into default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3000
diff
changeset
|
91 @ 11 - {foo} e104f49bab28 add fff (draft) |
1626
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
92 | |
3013
945a0989e41b
packaging: merge stable back into default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3000
diff
changeset
|
93 | o 10 - {foo} d9cacd156ffc add ddd (draft) |
1626
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
94 | | |
3417
d3a17c67f85c
branching: merge stable back into default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3414
diff
changeset
|
95 | | * 9 - {bar} 1d964213b023 add jjj (draft) |
1626
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
96 | | | |
3417
d3a17c67f85c
branching: merge stable back into default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3414
diff
changeset
|
97 | | * 8 - {bar} fcab990f3261 add iii (draft) |
1626
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
98 | | | |
3417
d3a17c67f85c
branching: merge stable back into default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3414
diff
changeset
|
99 | | * 7 - {bar} b0c2554835ac add hhh (draft) |
1626
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
100 | | | |
3417
d3a17c67f85c
branching: merge stable back into default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3414
diff
changeset
|
101 | | * 6 - {bar} c748293f1c1a add ggg (draft) |
1626
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
102 | | | |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
103 +---x 5 - {foo} 6a6b7365c751 add fff (draft) |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
104 | | |
3417
d3a17c67f85c
branching: merge stable back into default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3414
diff
changeset
|
105 * | 4 - {foo} 3969ab847d9c add eee (draft) |
1626
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
106 | | |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
107 x | 3 - {foo} 4e3a154f38c7 add ddd (draft) |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
108 |/ |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
109 o 2 - {foo} cced9bac76e3 add ccc (draft) |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
110 | |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
111 o 1 - {} a4dbed0837ea add bbb (draft) |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
112 | |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
113 o 0 - {} 199cc73e9a0b add aaa (draft) |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
114 |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
115 |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
116 Run evolve --all |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
117 |
4155
cc3a0b13ae57
evolve: use stack alias s# in `hg evolve` msgs
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
4122
diff
changeset
|
118 $ hg stack |
cc3a0b13ae57
evolve: use stack alias s# in `hg evolve` msgs
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
4122
diff
changeset
|
119 ### topic: foo |
cc3a0b13ae57
evolve: use stack alias s# in `hg evolve` msgs
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
4122
diff
changeset
|
120 ### target: default (branch) |
4436
ef155f624670
stack: make @ (current) more important than $ (some sort of unstable)
Anton Shestakov <av6@dwimlabs.net>
parents:
4432
diff
changeset
|
121 s4@ add fff (current orphan) |
4432
5da1d162ad50
stack: rename unstable -> orphan
Anton Shestakov <av6@dwimlabs.net>
parents:
4268
diff
changeset
|
122 s3$ add eee (orphan) |
4155
cc3a0b13ae57
evolve: use stack alias s# in `hg evolve` msgs
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
4122
diff
changeset
|
123 s2: add ddd |
cc3a0b13ae57
evolve: use stack alias s# in `hg evolve` msgs
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
4122
diff
changeset
|
124 s1: add ccc |
cc3a0b13ae57
evolve: use stack alias s# in `hg evolve` msgs
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
4122
diff
changeset
|
125 s0^ add bbb (base) |
cc3a0b13ae57
evolve: use stack alias s# in `hg evolve` msgs
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
4122
diff
changeset
|
126 |
4576
96ce1030d2fb
tests: add --update to hg evolve to reduce test changes for the next patch
Anton Shestakov <av6@dwimlabs.net>
parents:
4436
diff
changeset
|
127 $ hg evolve --all --update |
4155
cc3a0b13ae57
evolve: use stack alias s# in `hg evolve` msgs
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
4122
diff
changeset
|
128 move:[s3] add eee |
cc3a0b13ae57
evolve: use stack alias s# in `hg evolve` msgs
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
4122
diff
changeset
|
129 atop:[s2] add ddd |
cc3a0b13ae57
evolve: use stack alias s# in `hg evolve` msgs
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
4122
diff
changeset
|
130 move:[s4] add fff |
6317
53d63b608230
evolve: stop preserving all of {extras} for uninterrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents:
6032
diff
changeset
|
131 working directory is now at ad43ddbeead9 |
1626
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
132 $ hg log -G |
6317
53d63b608230
evolve: stop preserving all of {extras} for uninterrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents:
6032
diff
changeset
|
133 @ 13 - {foo} ad43ddbeead9 add fff (draft) |
1626
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
134 | |
3013
945a0989e41b
packaging: merge stable back into default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3000
diff
changeset
|
135 o 12 - {foo} 42b49017ff90 add eee (draft) |
1626
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
136 | |
3013
945a0989e41b
packaging: merge stable back into default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3000
diff
changeset
|
137 o 10 - {foo} d9cacd156ffc add ddd (draft) |
1626
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
138 | |
3417
d3a17c67f85c
branching: merge stable back into default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3414
diff
changeset
|
139 | * 9 - {bar} 1d964213b023 add jjj (draft) |
1626
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
140 | | |
3417
d3a17c67f85c
branching: merge stable back into default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3414
diff
changeset
|
141 | * 8 - {bar} fcab990f3261 add iii (draft) |
1626
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
142 | | |
3417
d3a17c67f85c
branching: merge stable back into default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3414
diff
changeset
|
143 | * 7 - {bar} b0c2554835ac add hhh (draft) |
1626
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
144 | | |
3417
d3a17c67f85c
branching: merge stable back into default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3414
diff
changeset
|
145 | * 6 - {bar} c748293f1c1a add ggg (draft) |
1626
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
146 | | |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
147 | x 5 - {foo} 6a6b7365c751 add fff (draft) |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
148 | | |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
149 | x 4 - {foo} 3969ab847d9c add eee (draft) |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
150 | | |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
151 | x 3 - {foo} 4e3a154f38c7 add ddd (draft) |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
152 |/ |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
153 o 2 - {foo} cced9bac76e3 add ccc (draft) |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
154 | |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
155 o 1 - {} a4dbed0837ea add bbb (draft) |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
156 | |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
157 o 0 - {} 199cc73e9a0b add aaa (draft) |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
158 |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
159 |
1627
a91115687a7e
topic: preserve topic during evolve
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
1626
diff
changeset
|
160 Test that evolve does not loose topic information |
a91115687a7e
topic: preserve topic during evolve
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
1626
diff
changeset
|
161 ------------------------------------------------- |
a91115687a7e
topic: preserve topic during evolve
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
1626
diff
changeset
|
162 |
4576
96ce1030d2fb
tests: add --update to hg evolve to reduce test changes for the next patch
Anton Shestakov <av6@dwimlabs.net>
parents:
4436
diff
changeset
|
163 $ hg evolve --rev 'topic(bar)' --update |
1627
a91115687a7e
topic: preserve topic during evolve
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
1626
diff
changeset
|
164 move:[6] add ggg |
3013
945a0989e41b
packaging: merge stable back into default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3000
diff
changeset
|
165 atop:[13] add fff |
1627
a91115687a7e
topic: preserve topic during evolve
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
1626
diff
changeset
|
166 move:[7] add hhh |
a91115687a7e
topic: preserve topic during evolve
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
1626
diff
changeset
|
167 move:[8] add iii |
a91115687a7e
topic: preserve topic during evolve
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
1626
diff
changeset
|
168 move:[9] add jjj |
6317
53d63b608230
evolve: stop preserving all of {extras} for uninterrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents:
6032
diff
changeset
|
169 working directory is now at fed0f67a2171 |
1627
a91115687a7e
topic: preserve topic during evolve
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
1626
diff
changeset
|
170 $ hg log -G |
6317
53d63b608230
evolve: stop preserving all of {extras} for uninterrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents:
6032
diff
changeset
|
171 @ 17 - {bar} fed0f67a2171 add jjj (draft) |
1627
a91115687a7e
topic: preserve topic during evolve
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
1626
diff
changeset
|
172 | |
6317
53d63b608230
evolve: stop preserving all of {extras} for uninterrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents:
6032
diff
changeset
|
173 o 16 - {bar} 94e899639b23 add iii (draft) |
1627
a91115687a7e
topic: preserve topic during evolve
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
1626
diff
changeset
|
174 | |
6317
53d63b608230
evolve: stop preserving all of {extras} for uninterrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents:
6032
diff
changeset
|
175 o 15 - {bar} 55e5cd2b6cd6 add hhh (draft) |
1627
a91115687a7e
topic: preserve topic during evolve
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
1626
diff
changeset
|
176 | |
6317
53d63b608230
evolve: stop preserving all of {extras} for uninterrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents:
6032
diff
changeset
|
177 o 14 - {bar} 56107a7ddeaf add ggg (draft) |
1627
a91115687a7e
topic: preserve topic during evolve
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
1626
diff
changeset
|
178 | |
6317
53d63b608230
evolve: stop preserving all of {extras} for uninterrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents:
6032
diff
changeset
|
179 o 13 - {foo} ad43ddbeead9 add fff (draft) |
1627
a91115687a7e
topic: preserve topic during evolve
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
1626
diff
changeset
|
180 | |
3013
945a0989e41b
packaging: merge stable back into default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3000
diff
changeset
|
181 o 12 - {foo} 42b49017ff90 add eee (draft) |
1627
a91115687a7e
topic: preserve topic during evolve
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
1626
diff
changeset
|
182 | |
3013
945a0989e41b
packaging: merge stable back into default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3000
diff
changeset
|
183 o 10 - {foo} d9cacd156ffc add ddd (draft) |
1627
a91115687a7e
topic: preserve topic during evolve
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
1626
diff
changeset
|
184 | |
a91115687a7e
topic: preserve topic during evolve
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
1626
diff
changeset
|
185 o 2 - {foo} cced9bac76e3 add ccc (draft) |
a91115687a7e
topic: preserve topic during evolve
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
1626
diff
changeset
|
186 | |
a91115687a7e
topic: preserve topic during evolve
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
1626
diff
changeset
|
187 o 1 - {} a4dbed0837ea add bbb (draft) |
a91115687a7e
topic: preserve topic during evolve
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
1626
diff
changeset
|
188 | |
a91115687a7e
topic: preserve topic during evolve
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
1626
diff
changeset
|
189 o 0 - {} 199cc73e9a0b add aaa (draft) |
a91115687a7e
topic: preserve topic during evolve
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
1626
diff
changeset
|
190 |
1628
db19b1dc5c45
topic: restrict 'hg prev' to current topic unless --no-topic is passed
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
1627
diff
changeset
|
191 |
db19b1dc5c45
topic: restrict 'hg prev' to current topic unless --no-topic is passed
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
1627
diff
changeset
|
192 Tests next and prev behavior |
db19b1dc5c45
topic: restrict 'hg prev' to current topic unless --no-topic is passed
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
1627
diff
changeset
|
193 ============================ |
db19b1dc5c45
topic: restrict 'hg prev' to current topic unless --no-topic is passed
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
1627
diff
changeset
|
194 |
db19b1dc5c45
topic: restrict 'hg prev' to current topic unless --no-topic is passed
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
1627
diff
changeset
|
195 Basic move are restricted to the current topic |
db19b1dc5c45
topic: restrict 'hg prev' to current topic unless --no-topic is passed
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
1627
diff
changeset
|
196 |
db19b1dc5c45
topic: restrict 'hg prev' to current topic unless --no-topic is passed
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
1627
diff
changeset
|
197 $ hg up foo |
db19b1dc5c45
topic: restrict 'hg prev' to current topic unless --no-topic is passed
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
1627
diff
changeset
|
198 switching to topic foo |
db19b1dc5c45
topic: restrict 'hg prev' to current topic unless --no-topic is passed
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
1627
diff
changeset
|
199 0 files updated, 0 files merged, 4 files removed, 0 files unresolved |
db19b1dc5c45
topic: restrict 'hg prev' to current topic unless --no-topic is passed
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
1627
diff
changeset
|
200 $ hg prev |
db19b1dc5c45
topic: restrict 'hg prev' to current topic unless --no-topic is passed
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
1627
diff
changeset
|
201 0 files updated, 0 files merged, 1 files removed, 0 files unresolved |
4161
3c28f8a3a5a5
prev: also use stack shortcut in output when possible
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4160
diff
changeset
|
202 [s3] add eee |
1628
db19b1dc5c45
topic: restrict 'hg prev' to current topic unless --no-topic is passed
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
1627
diff
changeset
|
203 $ hg next |
db19b1dc5c45
topic: restrict 'hg prev' to current topic unless --no-topic is passed
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
1627
diff
changeset
|
204 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
4160
44133463372f
next: also use stack shortcut in output when possible
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4155
diff
changeset
|
205 [s4] add fff |
1628
db19b1dc5c45
topic: restrict 'hg prev' to current topic unless --no-topic is passed
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
1627
diff
changeset
|
206 $ hg next |
db19b1dc5c45
topic: restrict 'hg prev' to current topic unless --no-topic is passed
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
1627
diff
changeset
|
207 no children on topic "foo" |
db19b1dc5c45
topic: restrict 'hg prev' to current topic unless --no-topic is passed
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
1627
diff
changeset
|
208 do you want --no-topic |
db19b1dc5c45
topic: restrict 'hg prev' to current topic unless --no-topic is passed
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
1627
diff
changeset
|
209 [1] |
db19b1dc5c45
topic: restrict 'hg prev' to current topic unless --no-topic is passed
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
1627
diff
changeset
|
210 $ hg next --no-topic |
db19b1dc5c45
topic: restrict 'hg prev' to current topic unless --no-topic is passed
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
1627
diff
changeset
|
211 switching to topic bar |
db19b1dc5c45
topic: restrict 'hg prev' to current topic unless --no-topic is passed
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
1627
diff
changeset
|
212 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
3013
945a0989e41b
packaging: merge stable back into default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3000
diff
changeset
|
213 [14] add ggg |
1629
548195454683
topic: restrict 'hg prev' to current topic unless --no-topic is passed
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
1628
diff
changeset
|
214 $ hg prev |
2745
b38112b43a27
prev: allow to update to 't0' from 't1'
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
2739
diff
changeset
|
215 preserving the current topic 'bar' |
b38112b43a27
prev: allow to update to 't0' from 't1'
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
2739
diff
changeset
|
216 0 files updated, 0 files merged, 1 files removed, 0 files unresolved |
4161
3c28f8a3a5a5
prev: also use stack shortcut in output when possible
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4160
diff
changeset
|
217 [s4] add fff |
2745
b38112b43a27
prev: allow to update to 't0' from 't1'
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
2739
diff
changeset
|
218 $ hg prev |
1629
548195454683
topic: restrict 'hg prev' to current topic unless --no-topic is passed
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
1628
diff
changeset
|
219 no parent in topic "bar" |
548195454683
topic: restrict 'hg prev' to current topic unless --no-topic is passed
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
1628
diff
changeset
|
220 (do you want --no-topic) |
2739
7d86594cb829
prev: extract the code computing the destination
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
2712
diff
changeset
|
221 [1] |
1629
548195454683
topic: restrict 'hg prev' to current topic unless --no-topic is passed
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
1628
diff
changeset
|
222 $ hg prev --no-topic |
548195454683
topic: restrict 'hg prev' to current topic unless --no-topic is passed
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
1628
diff
changeset
|
223 switching to topic foo |
548195454683
topic: restrict 'hg prev' to current topic unless --no-topic is passed
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
1628
diff
changeset
|
224 0 files updated, 0 files merged, 1 files removed, 0 files unresolved |
3013
945a0989e41b
packaging: merge stable back into default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3000
diff
changeset
|
225 [12] add eee |
3361
1439021d22f9
tests: add a test showing wrong behaviour doing `hg prev` on orphan cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3013
diff
changeset
|
226 |
1439021d22f9
tests: add a test showing wrong behaviour doing `hg prev` on orphan cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3013
diff
changeset
|
227 Testing when instability is involved |
1439021d22f9
tests: add a test showing wrong behaviour doing `hg prev` on orphan cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3013
diff
changeset
|
228 |
1439021d22f9
tests: add a test showing wrong behaviour doing `hg prev` on orphan cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3013
diff
changeset
|
229 $ hg log -G |
6317
53d63b608230
evolve: stop preserving all of {extras} for uninterrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents:
6032
diff
changeset
|
230 o 17 - {bar} fed0f67a2171 add jjj (draft) |
3361
1439021d22f9
tests: add a test showing wrong behaviour doing `hg prev` on orphan cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3013
diff
changeset
|
231 | |
6317
53d63b608230
evolve: stop preserving all of {extras} for uninterrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents:
6032
diff
changeset
|
232 o 16 - {bar} 94e899639b23 add iii (draft) |
3361
1439021d22f9
tests: add a test showing wrong behaviour doing `hg prev` on orphan cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3013
diff
changeset
|
233 | |
6317
53d63b608230
evolve: stop preserving all of {extras} for uninterrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents:
6032
diff
changeset
|
234 o 15 - {bar} 55e5cd2b6cd6 add hhh (draft) |
3361
1439021d22f9
tests: add a test showing wrong behaviour doing `hg prev` on orphan cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3013
diff
changeset
|
235 | |
6317
53d63b608230
evolve: stop preserving all of {extras} for uninterrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents:
6032
diff
changeset
|
236 o 14 - {bar} 56107a7ddeaf add ggg (draft) |
3361
1439021d22f9
tests: add a test showing wrong behaviour doing `hg prev` on orphan cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3013
diff
changeset
|
237 | |
6317
53d63b608230
evolve: stop preserving all of {extras} for uninterrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents:
6032
diff
changeset
|
238 o 13 - {foo} ad43ddbeead9 add fff (draft) |
3361
1439021d22f9
tests: add a test showing wrong behaviour doing `hg prev` on orphan cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3013
diff
changeset
|
239 | |
1439021d22f9
tests: add a test showing wrong behaviour doing `hg prev` on orphan cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3013
diff
changeset
|
240 @ 12 - {foo} 42b49017ff90 add eee (draft) |
1439021d22f9
tests: add a test showing wrong behaviour doing `hg prev` on orphan cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3013
diff
changeset
|
241 | |
1439021d22f9
tests: add a test showing wrong behaviour doing `hg prev` on orphan cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3013
diff
changeset
|
242 o 10 - {foo} d9cacd156ffc add ddd (draft) |
1439021d22f9
tests: add a test showing wrong behaviour doing `hg prev` on orphan cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3013
diff
changeset
|
243 | |
1439021d22f9
tests: add a test showing wrong behaviour doing `hg prev` on orphan cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3013
diff
changeset
|
244 o 2 - {foo} cced9bac76e3 add ccc (draft) |
1439021d22f9
tests: add a test showing wrong behaviour doing `hg prev` on orphan cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3013
diff
changeset
|
245 | |
1439021d22f9
tests: add a test showing wrong behaviour doing `hg prev` on orphan cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3013
diff
changeset
|
246 o 1 - {} a4dbed0837ea add bbb (draft) |
1439021d22f9
tests: add a test showing wrong behaviour doing `hg prev` on orphan cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3013
diff
changeset
|
247 | |
1439021d22f9
tests: add a test showing wrong behaviour doing `hg prev` on orphan cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3013
diff
changeset
|
248 o 0 - {} 199cc73e9a0b add aaa (draft) |
1439021d22f9
tests: add a test showing wrong behaviour doing `hg prev` on orphan cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3013
diff
changeset
|
249 |
6317
53d63b608230
evolve: stop preserving all of {extras} for uninterrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents:
6032
diff
changeset
|
250 $ hg topic -r ad43ddbeead9 bar |
3431
2e703ed1c713
evolve: update output for wider reporting of troubled changesets
Martin von Zweigbergk <martinvonz@google.com>
parents:
3417
diff
changeset
|
251 4 new orphan changesets |
4268
d5a2cc19903f
topics: improve the message around topic changing
Pulkit Goyal <pulkit@yandex-team.ru>
parents:
4221
diff
changeset
|
252 changed topic on 1 changesets to "bar" |
6031
c3d66af4cb07
tests: show extras that are going to change in the next patch
Anton Shestakov <av6@dwimlabs.net>
parents:
5816
diff
changeset
|
253 $ hg log -r 18 -T '{rev}: {join(extras, " ")}\n' |
6317
53d63b608230
evolve: stop preserving all of {extras} for uninterrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents:
6032
diff
changeset
|
254 18: _rewrite_noise=[0-9a-f]+ branch=default rebase_source=[0-9a-f]+ topic=bar (re) |
53d63b608230
evolve: stop preserving all of {extras} for uninterrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents:
6032
diff
changeset
|
255 $ hg up 56107a7ddeaf |
3361
1439021d22f9
tests: add a test showing wrong behaviour doing `hg prev` on orphan cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3013
diff
changeset
|
256 switching to topic bar |
1439021d22f9
tests: add a test showing wrong behaviour doing `hg prev` on orphan cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3013
diff
changeset
|
257 2 files updated, 0 files merged, 0 files removed, 0 files unresolved |
1439021d22f9
tests: add a test showing wrong behaviour doing `hg prev` on orphan cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3013
diff
changeset
|
258 |
1439021d22f9
tests: add a test showing wrong behaviour doing `hg prev` on orphan cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3013
diff
changeset
|
259 $ hg stack |
1439021d22f9
tests: add a test showing wrong behaviour doing `hg prev` on orphan cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3013
diff
changeset
|
260 ### topic: bar |
1439021d22f9
tests: add a test showing wrong behaviour doing `hg prev` on orphan cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3013
diff
changeset
|
261 ### target: default (branch) |
4432
5da1d162ad50
stack: rename unstable -> orphan
Anton Shestakov <av6@dwimlabs.net>
parents:
4268
diff
changeset
|
262 s5$ add jjj (orphan) |
5da1d162ad50
stack: rename unstable -> orphan
Anton Shestakov <av6@dwimlabs.net>
parents:
4268
diff
changeset
|
263 s4$ add iii (orphan) |
5da1d162ad50
stack: rename unstable -> orphan
Anton Shestakov <av6@dwimlabs.net>
parents:
4268
diff
changeset
|
264 s3$ add hhh (orphan) |
4436
ef155f624670
stack: make @ (current) more important than $ (some sort of unstable)
Anton Shestakov <av6@dwimlabs.net>
parents:
4432
diff
changeset
|
265 s2@ add ggg (current orphan) |
4067
fb4801478d5d
stack: display 's#' instead of 't#' and 'b#'
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3769
diff
changeset
|
266 s1: add fff |
fb4801478d5d
stack: display 's#' instead of 't#' and 'b#'
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3769
diff
changeset
|
267 s0^ add eee (base) |
3361
1439021d22f9
tests: add a test showing wrong behaviour doing `hg prev` on orphan cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3013
diff
changeset
|
268 |
1439021d22f9
tests: add a test showing wrong behaviour doing `hg prev` on orphan cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3013
diff
changeset
|
269 $ hg prev |
3362
92b414710d2e
prev: jump to parent's successor if parent is obsolete and topic is involved
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3361
diff
changeset
|
270 0 files updated, 0 files merged, 1 files removed, 0 files unresolved |
4161
3c28f8a3a5a5
prev: also use stack shortcut in output when possible
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4160
diff
changeset
|
271 [s1] add fff |
3531
b3d2e0576d4c
prev: add a test case which shows traceback when doing prev on obsolete cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3431
diff
changeset
|
272 |
b3d2e0576d4c
prev: add a test case which shows traceback when doing prev on obsolete cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3431
diff
changeset
|
273 Testing issue 5708 when we are on obsolete changeset and there is active topic |
b3d2e0576d4c
prev: add a test case which shows traceback when doing prev on obsolete cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3431
diff
changeset
|
274 ------------------------------------------------------------------------------ |
b3d2e0576d4c
prev: add a test case which shows traceback when doing prev on obsolete cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3431
diff
changeset
|
275 |
b3d2e0576d4c
prev: add a test case which shows traceback when doing prev on obsolete cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3431
diff
changeset
|
276 $ hg log --graph |
6317
53d63b608230
evolve: stop preserving all of {extras} for uninterrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents:
6032
diff
changeset
|
277 @ 18 - {bar} 8dde0971132d add fff (draft) |
3531
b3d2e0576d4c
prev: add a test case which shows traceback when doing prev on obsolete cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3431
diff
changeset
|
278 | |
6317
53d63b608230
evolve: stop preserving all of {extras} for uninterrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents:
6032
diff
changeset
|
279 | * 17 - {bar} fed0f67a2171 add jjj (draft) |
3531
b3d2e0576d4c
prev: add a test case which shows traceback when doing prev on obsolete cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3431
diff
changeset
|
280 | | |
6317
53d63b608230
evolve: stop preserving all of {extras} for uninterrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents:
6032
diff
changeset
|
281 | * 16 - {bar} 94e899639b23 add iii (draft) |
3531
b3d2e0576d4c
prev: add a test case which shows traceback when doing prev on obsolete cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3431
diff
changeset
|
282 | | |
6317
53d63b608230
evolve: stop preserving all of {extras} for uninterrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents:
6032
diff
changeset
|
283 | * 15 - {bar} 55e5cd2b6cd6 add hhh (draft) |
3531
b3d2e0576d4c
prev: add a test case which shows traceback when doing prev on obsolete cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3431
diff
changeset
|
284 | | |
6317
53d63b608230
evolve: stop preserving all of {extras} for uninterrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents:
6032
diff
changeset
|
285 | * 14 - {bar} 56107a7ddeaf add ggg (draft) |
3531
b3d2e0576d4c
prev: add a test case which shows traceback when doing prev on obsolete cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3431
diff
changeset
|
286 | | |
6317
53d63b608230
evolve: stop preserving all of {extras} for uninterrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents:
6032
diff
changeset
|
287 | x 13 - {foo} ad43ddbeead9 add fff (draft) |
3531
b3d2e0576d4c
prev: add a test case which shows traceback when doing prev on obsolete cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3431
diff
changeset
|
288 |/ |
b3d2e0576d4c
prev: add a test case which shows traceback when doing prev on obsolete cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3431
diff
changeset
|
289 o 12 - {foo} 42b49017ff90 add eee (draft) |
b3d2e0576d4c
prev: add a test case which shows traceback when doing prev on obsolete cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3431
diff
changeset
|
290 | |
b3d2e0576d4c
prev: add a test case which shows traceback when doing prev on obsolete cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3431
diff
changeset
|
291 o 10 - {foo} d9cacd156ffc add ddd (draft) |
b3d2e0576d4c
prev: add a test case which shows traceback when doing prev on obsolete cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3431
diff
changeset
|
292 | |
b3d2e0576d4c
prev: add a test case which shows traceback when doing prev on obsolete cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3431
diff
changeset
|
293 o 2 - {foo} cced9bac76e3 add ccc (draft) |
b3d2e0576d4c
prev: add a test case which shows traceback when doing prev on obsolete cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3431
diff
changeset
|
294 | |
b3d2e0576d4c
prev: add a test case which shows traceback when doing prev on obsolete cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3431
diff
changeset
|
295 o 1 - {} a4dbed0837ea add bbb (draft) |
b3d2e0576d4c
prev: add a test case which shows traceback when doing prev on obsolete cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3431
diff
changeset
|
296 | |
b3d2e0576d4c
prev: add a test case which shows traceback when doing prev on obsolete cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3431
diff
changeset
|
297 o 0 - {} 199cc73e9a0b add aaa (draft) |
b3d2e0576d4c
prev: add a test case which shows traceback when doing prev on obsolete cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3431
diff
changeset
|
298 |
b3d2e0576d4c
prev: add a test case which shows traceback when doing prev on obsolete cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3431
diff
changeset
|
299 |
b3d2e0576d4c
prev: add a test case which shows traceback when doing prev on obsolete cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3431
diff
changeset
|
300 $ hg topic |
4581
48521a49a07e
stack: rename troubledcount to unstablecount
Anton Shestakov <av6@dwimlabs.net>
parents:
4577
diff
changeset
|
301 * bar (5 changesets, 4 unstable) |
3531
b3d2e0576d4c
prev: add a test case which shows traceback when doing prev on obsolete cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3431
diff
changeset
|
302 foo (3 changesets) |
b3d2e0576d4c
prev: add a test case which shows traceback when doing prev on obsolete cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3431
diff
changeset
|
303 |
b3d2e0576d4c
prev: add a test case which shows traceback when doing prev on obsolete cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3431
diff
changeset
|
304 When the current topic, obsoleted changesets topic and successor topic are same |
b3d2e0576d4c
prev: add a test case which shows traceback when doing prev on obsolete cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3431
diff
changeset
|
305 |
6317
53d63b608230
evolve: stop preserving all of {extras} for uninterrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents:
6032
diff
changeset
|
306 $ hg up 55e5cd2b6cd6 |
3531
b3d2e0576d4c
prev: add a test case which shows traceback when doing prev on obsolete cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3431
diff
changeset
|
307 2 files updated, 0 files merged, 0 files removed, 0 files unresolved |
b3d2e0576d4c
prev: add a test case which shows traceback when doing prev on obsolete cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3431
diff
changeset
|
308 $ echo foobar >> hhh |
b3d2e0576d4c
prev: add a test case which shows traceback when doing prev on obsolete cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3431
diff
changeset
|
309 $ hg amend |
6317
53d63b608230
evolve: stop preserving all of {extras} for uninterrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents:
6032
diff
changeset
|
310 $ hg up 55e5cd2b6cd6 |
3531
b3d2e0576d4c
prev: add a test case which shows traceback when doing prev on obsolete cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3431
diff
changeset
|
311 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
6317
53d63b608230
evolve: stop preserving all of {extras} for uninterrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents:
6032
diff
changeset
|
312 working directory parent is obsolete! (55e5cd2b6cd6) |
53d63b608230
evolve: stop preserving all of {extras} for uninterrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents:
6032
diff
changeset
|
313 (use 'hg evolve' to update to its successor: 604c23b08613) |
3531
b3d2e0576d4c
prev: add a test case which shows traceback when doing prev on obsolete cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3431
diff
changeset
|
314 $ hg log -Gr 14:: |
6317
53d63b608230
evolve: stop preserving all of {extras} for uninterrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents:
6032
diff
changeset
|
315 * 19 - {bar} 604c23b08613 add hhh (draft) |
3531
b3d2e0576d4c
prev: add a test case which shows traceback when doing prev on obsolete cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3431
diff
changeset
|
316 | |
6317
53d63b608230
evolve: stop preserving all of {extras} for uninterrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents:
6032
diff
changeset
|
317 | * 17 - {bar} fed0f67a2171 add jjj (draft) |
3531
b3d2e0576d4c
prev: add a test case which shows traceback when doing prev on obsolete cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3431
diff
changeset
|
318 | | |
6317
53d63b608230
evolve: stop preserving all of {extras} for uninterrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents:
6032
diff
changeset
|
319 | * 16 - {bar} 94e899639b23 add iii (draft) |
3531
b3d2e0576d4c
prev: add a test case which shows traceback when doing prev on obsolete cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3431
diff
changeset
|
320 | | |
6317
53d63b608230
evolve: stop preserving all of {extras} for uninterrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents:
6032
diff
changeset
|
321 | @ 15 - {bar} 55e5cd2b6cd6 add hhh (draft) |
3531
b3d2e0576d4c
prev: add a test case which shows traceback when doing prev on obsolete cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3431
diff
changeset
|
322 |/ |
6317
53d63b608230
evolve: stop preserving all of {extras} for uninterrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents:
6032
diff
changeset
|
323 * 14 - {bar} 56107a7ddeaf add ggg (draft) |
3531
b3d2e0576d4c
prev: add a test case which shows traceback when doing prev on obsolete cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3431
diff
changeset
|
324 | |
b3d2e0576d4c
prev: add a test case which shows traceback when doing prev on obsolete cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3431
diff
changeset
|
325 ~ |
b3d2e0576d4c
prev: add a test case which shows traceback when doing prev on obsolete cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3431
diff
changeset
|
326 |
b3d2e0576d4c
prev: add a test case which shows traceback when doing prev on obsolete cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3431
diff
changeset
|
327 $ hg prev |
3532
68e99d2c6267
prev: fix the breakage of `hg previous` from obsolete cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3531
diff
changeset
|
328 0 files updated, 0 files merged, 1 files removed, 0 files unresolved |
4161
3c28f8a3a5a5
prev: also use stack shortcut in output when possible
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4160
diff
changeset
|
329 [s2] add ggg |
3533
f06c502ce4b7
previous: add test case when it's broken on obsolete cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3532
diff
changeset
|
330 |
f06c502ce4b7
previous: add test case when it's broken on obsolete cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3532
diff
changeset
|
331 When the current topic and successors topic are same, but obsolete cset has |
f06c502ce4b7
previous: add test case when it's broken on obsolete cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3532
diff
changeset
|
332 different topic |
f06c502ce4b7
previous: add test case when it's broken on obsolete cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3532
diff
changeset
|
333 |
6317
53d63b608230
evolve: stop preserving all of {extras} for uninterrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents:
6032
diff
changeset
|
334 $ hg rebase -s 94e899639b23 -d 604c23b08613 --config extensions.rebase= |
53d63b608230
evolve: stop preserving all of {extras} for uninterrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents:
6032
diff
changeset
|
335 rebasing 16:94e899639b23 bar "add iii" |
3533
f06c502ce4b7
previous: add test case when it's broken on obsolete cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3532
diff
changeset
|
336 1 new orphan changesets |
6317
53d63b608230
evolve: stop preserving all of {extras} for uninterrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents:
6032
diff
changeset
|
337 rebasing 17:fed0f67a2171 bar "add jjj" |
3533
f06c502ce4b7
previous: add test case when it's broken on obsolete cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3532
diff
changeset
|
338 1 new orphan changesets |
3580
031d70bcbb42
test: do not use revision number
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3534
diff
changeset
|
339 $ hg log -Gr 42b49017ff90:: |
6317
53d63b608230
evolve: stop preserving all of {extras} for uninterrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents:
6032
diff
changeset
|
340 * 21 - {bar} 573bbc059289 add jjj (draft) |
3533
f06c502ce4b7
previous: add test case when it's broken on obsolete cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3532
diff
changeset
|
341 | |
6317
53d63b608230
evolve: stop preserving all of {extras} for uninterrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents:
6032
diff
changeset
|
342 * 20 - {bar} 8e94e3065186 add iii (draft) |
3533
f06c502ce4b7
previous: add test case when it's broken on obsolete cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3532
diff
changeset
|
343 | |
6317
53d63b608230
evolve: stop preserving all of {extras} for uninterrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents:
6032
diff
changeset
|
344 * 19 - {bar} 604c23b08613 add hhh (draft) |
3533
f06c502ce4b7
previous: add test case when it's broken on obsolete cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3532
diff
changeset
|
345 | |
6317
53d63b608230
evolve: stop preserving all of {extras} for uninterrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents:
6032
diff
changeset
|
346 | o 18 - {bar} 8dde0971132d add fff (draft) |
3533
f06c502ce4b7
previous: add test case when it's broken on obsolete cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3532
diff
changeset
|
347 | | |
6317
53d63b608230
evolve: stop preserving all of {extras} for uninterrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents:
6032
diff
changeset
|
348 @ | 14 - {bar} 56107a7ddeaf add ggg (draft) |
3533
f06c502ce4b7
previous: add test case when it's broken on obsolete cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3532
diff
changeset
|
349 | | |
6317
53d63b608230
evolve: stop preserving all of {extras} for uninterrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents:
6032
diff
changeset
|
350 x | 13 - {foo} ad43ddbeead9 add fff (draft) |
3533
f06c502ce4b7
previous: add test case when it's broken on obsolete cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3532
diff
changeset
|
351 |/ |
f06c502ce4b7
previous: add test case when it's broken on obsolete cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3532
diff
changeset
|
352 o 12 - {foo} 42b49017ff90 add eee (draft) |
f06c502ce4b7
previous: add test case when it's broken on obsolete cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3532
diff
changeset
|
353 | |
f06c502ce4b7
previous: add test case when it's broken on obsolete cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3532
diff
changeset
|
354 ~ |
f06c502ce4b7
previous: add test case when it's broken on obsolete cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3532
diff
changeset
|
355 |
6317
53d63b608230
evolve: stop preserving all of {extras} for uninterrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents:
6032
diff
changeset
|
356 $ hg up ad43ddbeead9 |
3533
f06c502ce4b7
previous: add test case when it's broken on obsolete cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3532
diff
changeset
|
357 switching to topic foo |
f06c502ce4b7
previous: add test case when it's broken on obsolete cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3532
diff
changeset
|
358 0 files updated, 0 files merged, 1 files removed, 0 files unresolved |
6317
53d63b608230
evolve: stop preserving all of {extras} for uninterrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents:
6032
diff
changeset
|
359 working directory parent is obsolete! (ad43ddbeead9) |
53d63b608230
evolve: stop preserving all of {extras} for uninterrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents:
6032
diff
changeset
|
360 (use 'hg evolve' to update to its successor: 8dde0971132d) |
3533
f06c502ce4b7
previous: add test case when it's broken on obsolete cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3532
diff
changeset
|
361 |
f06c502ce4b7
previous: add test case when it's broken on obsolete cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3532
diff
changeset
|
362 $ hg topic bar |
f06c502ce4b7
previous: add test case when it's broken on obsolete cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3532
diff
changeset
|
363 |
f06c502ce4b7
previous: add test case when it's broken on obsolete cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3532
diff
changeset
|
364 $ hg prev |
3534
cd4db75413a2
previous: fix behavior on obsolete cset when topic is involved (issue5708)
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3533
diff
changeset
|
365 no parent in topic "bar" |
cd4db75413a2
previous: fix behavior on obsolete cset when topic is involved (issue5708)
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3533
diff
changeset
|
366 (do you want --no-topic) |
3533
f06c502ce4b7
previous: add test case when it's broken on obsolete cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3532
diff
changeset
|
367 [1] |
f06c502ce4b7
previous: add test case when it's broken on obsolete cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3532
diff
changeset
|
368 |
f06c502ce4b7
previous: add test case when it's broken on obsolete cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3532
diff
changeset
|
369 When current topic and obsolete cset topic are same but successor has different |
f06c502ce4b7
previous: add test case when it's broken on obsolete cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3532
diff
changeset
|
370 one |
f06c502ce4b7
previous: add test case when it's broken on obsolete cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3532
diff
changeset
|
371 |
6317
53d63b608230
evolve: stop preserving all of {extras} for uninterrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents:
6032
diff
changeset
|
372 $ hg up ad43ddbeead9 |
3533
f06c502ce4b7
previous: add test case when it's broken on obsolete cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3532
diff
changeset
|
373 switching to topic foo |
f06c502ce4b7
previous: add test case when it's broken on obsolete cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3532
diff
changeset
|
374 0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
f06c502ce4b7
previous: add test case when it's broken on obsolete cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3532
diff
changeset
|
375 $ hg prev |
3534
cd4db75413a2
previous: fix behavior on obsolete cset when topic is involved (issue5708)
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3533
diff
changeset
|
376 0 files updated, 0 files merged, 1 files removed, 0 files unresolved |
4161
3c28f8a3a5a5
prev: also use stack shortcut in output when possible
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4160
diff
changeset
|
377 [s3] add eee |
4220
0e59b03afe0a
evolve: add test showing currently stackalias fails in --continue case
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
4161
diff
changeset
|
378 |
4221
db70de7c1698
evolve: use stack template in --continue case also
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
4220
diff
changeset
|
379 Check stackaliases(s#) works with --continue case also, while evolving: |
db70de7c1698
evolve: use stack template in --continue case also
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
4220
diff
changeset
|
380 ------------------------------------------------------------------------ |
4220
0e59b03afe0a
evolve: add test showing currently stackalias fails in --continue case
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
4161
diff
changeset
|
381 $ hg up 18 |
0e59b03afe0a
evolve: add test showing currently stackalias fails in --continue case
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
4161
diff
changeset
|
382 switching to topic bar |
0e59b03afe0a
evolve: add test showing currently stackalias fails in --continue case
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
4161
diff
changeset
|
383 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
0e59b03afe0a
evolve: add test showing currently stackalias fails in --continue case
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
4161
diff
changeset
|
384 $ hg evolve --all |
0e59b03afe0a
evolve: add test showing currently stackalias fails in --continue case
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
4161
diff
changeset
|
385 move:[s2] add ggg |
0e59b03afe0a
evolve: add test showing currently stackalias fails in --continue case
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
4161
diff
changeset
|
386 atop:[s1] add fff |
0e59b03afe0a
evolve: add test showing currently stackalias fails in --continue case
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
4161
diff
changeset
|
387 move:[s3] add hhh |
0e59b03afe0a
evolve: add test showing currently stackalias fails in --continue case
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
4161
diff
changeset
|
388 move:[s4] add iii |
0e59b03afe0a
evolve: add test showing currently stackalias fails in --continue case
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
4161
diff
changeset
|
389 move:[s5] add jjj |
0e59b03afe0a
evolve: add test showing currently stackalias fails in --continue case
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
4161
diff
changeset
|
390 $ echo "changes in hhh" > hhh |
0e59b03afe0a
evolve: add test showing currently stackalias fails in --continue case
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
4161
diff
changeset
|
391 $ hg add hhh |
0e59b03afe0a
evolve: add test showing currently stackalias fails in --continue case
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
4161
diff
changeset
|
392 $ hg ci --amend |
0e59b03afe0a
evolve: add test showing currently stackalias fails in --continue case
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
4161
diff
changeset
|
393 4 new orphan changesets |
0e59b03afe0a
evolve: add test showing currently stackalias fails in --continue case
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
4161
diff
changeset
|
394 $ hg log -G |
6317
53d63b608230
evolve: stop preserving all of {extras} for uninterrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents:
6032
diff
changeset
|
395 @ 26 - {bar} 235873f1950b add fff (draft) |
4220
0e59b03afe0a
evolve: add test showing currently stackalias fails in --continue case
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
4161
diff
changeset
|
396 | |
6317
53d63b608230
evolve: stop preserving all of {extras} for uninterrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents:
6032
diff
changeset
|
397 | * 25 - {bar} ed0b505ff189 add jjj (draft) |
4220
0e59b03afe0a
evolve: add test showing currently stackalias fails in --continue case
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
4161
diff
changeset
|
398 | | |
6317
53d63b608230
evolve: stop preserving all of {extras} for uninterrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents:
6032
diff
changeset
|
399 | * 24 - {bar} 50b1b9387d50 add iii (draft) |
4220
0e59b03afe0a
evolve: add test showing currently stackalias fails in --continue case
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
4161
diff
changeset
|
400 | | |
6317
53d63b608230
evolve: stop preserving all of {extras} for uninterrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents:
6032
diff
changeset
|
401 | * 23 - {bar} 0d4bb3a72a5b add hhh (draft) |
4220
0e59b03afe0a
evolve: add test showing currently stackalias fails in --continue case
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
4161
diff
changeset
|
402 | | |
6317
53d63b608230
evolve: stop preserving all of {extras} for uninterrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents:
6032
diff
changeset
|
403 | * 22 - {bar} 548702c1d91c add ggg (draft) |
4220
0e59b03afe0a
evolve: add test showing currently stackalias fails in --continue case
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
4161
diff
changeset
|
404 | | |
6317
53d63b608230
evolve: stop preserving all of {extras} for uninterrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents:
6032
diff
changeset
|
405 | x 18 - {bar} 8dde0971132d add fff (draft) |
4220
0e59b03afe0a
evolve: add test showing currently stackalias fails in --continue case
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
4161
diff
changeset
|
406 |/ |
0e59b03afe0a
evolve: add test showing currently stackalias fails in --continue case
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
4161
diff
changeset
|
407 o 12 - {foo} 42b49017ff90 add eee (draft) |
0e59b03afe0a
evolve: add test showing currently stackalias fails in --continue case
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
4161
diff
changeset
|
408 | |
0e59b03afe0a
evolve: add test showing currently stackalias fails in --continue case
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
4161
diff
changeset
|
409 o 10 - {foo} d9cacd156ffc add ddd (draft) |
0e59b03afe0a
evolve: add test showing currently stackalias fails in --continue case
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
4161
diff
changeset
|
410 | |
0e59b03afe0a
evolve: add test showing currently stackalias fails in --continue case
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
4161
diff
changeset
|
411 o 2 - {foo} cced9bac76e3 add ccc (draft) |
0e59b03afe0a
evolve: add test showing currently stackalias fails in --continue case
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
4161
diff
changeset
|
412 | |
0e59b03afe0a
evolve: add test showing currently stackalias fails in --continue case
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
4161
diff
changeset
|
413 o 1 - {} a4dbed0837ea add bbb (draft) |
0e59b03afe0a
evolve: add test showing currently stackalias fails in --continue case
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
4161
diff
changeset
|
414 | |
0e59b03afe0a
evolve: add test showing currently stackalias fails in --continue case
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
4161
diff
changeset
|
415 o 0 - {} 199cc73e9a0b add aaa (draft) |
0e59b03afe0a
evolve: add test showing currently stackalias fails in --continue case
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
4161
diff
changeset
|
416 |
0e59b03afe0a
evolve: add test showing currently stackalias fails in --continue case
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
4161
diff
changeset
|
417 $ hg evolve --all |
0e59b03afe0a
evolve: add test showing currently stackalias fails in --continue case
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
4161
diff
changeset
|
418 move:[s2] add ggg |
0e59b03afe0a
evolve: add test showing currently stackalias fails in --continue case
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
4161
diff
changeset
|
419 atop:[s1] add fff |
0e59b03afe0a
evolve: add test showing currently stackalias fails in --continue case
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
4161
diff
changeset
|
420 move:[s3] add hhh |
0e59b03afe0a
evolve: add test showing currently stackalias fails in --continue case
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
4161
diff
changeset
|
421 merging hhh |
0e59b03afe0a
evolve: add test showing currently stackalias fails in --continue case
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
4161
diff
changeset
|
422 warning: conflicts while merging hhh! (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:
4581
diff
changeset
|
423 unresolved merge conflicts |
b6c819facbe8
evolvecmd: the proper way to deal with conflicts is to resolve them
Anton Shestakov <av6@dwimlabs.net>
parents:
4581
diff
changeset
|
424 (see 'hg help evolve.interrupted') |
5714
b3d9e6c805d6
tests: update with more detailed exit codes
Martin von Zweigbergk <martinvonz@google.com>
parents:
5706
diff
changeset
|
425 [240] |
4220
0e59b03afe0a
evolve: add test showing currently stackalias fails in --continue case
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
4161
diff
changeset
|
426 $ echo "resolved hhh" > hhh |
0e59b03afe0a
evolve: add test showing currently stackalias fails in --continue case
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
4161
diff
changeset
|
427 $ hg resolve --mark hhh |
0e59b03afe0a
evolve: add test showing currently stackalias fails in --continue case
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
4161
diff
changeset
|
428 (no more unresolved files) |
0e59b03afe0a
evolve: add test showing currently stackalias fails in --continue case
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
4161
diff
changeset
|
429 continue: hg evolve --continue |
0e59b03afe0a
evolve: add test showing currently stackalias fails in --continue case
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
4161
diff
changeset
|
430 $ hg evolve --continue |
6317
53d63b608230
evolve: stop preserving all of {extras} for uninterrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents:
6032
diff
changeset
|
431 evolving 23:0d4bb3a72a5b "add hhh" |
4221
db70de7c1698
evolve: use stack template in --continue case also
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
4220
diff
changeset
|
432 move:[s4] add iii |
db70de7c1698
evolve: use stack template in --continue case also
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
4220
diff
changeset
|
433 atop:[s3] add hhh |
db70de7c1698
evolve: use stack template in --continue case also
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
4220
diff
changeset
|
434 move:[s5] add jjj |
4680
52c1809f35c1
topic: add tests which demonstrate topicset failure of FilteredRepoLookupError
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
4676
diff
changeset
|
435 |
52c1809f35c1
topic: add tests which demonstrate topicset failure of FilteredRepoLookupError
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
4676
diff
changeset
|
436 Test to make sure that evolve don't crash with FilteredRepoLookupError when obsolete revs are in play: |
52c1809f35c1
topic: add tests which demonstrate topicset failure of FilteredRepoLookupError
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
4676
diff
changeset
|
437 ------------------------------------------------------------------------------------------------------ |
52c1809f35c1
topic: add tests which demonstrate topicset failure of FilteredRepoLookupError
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
4676
diff
changeset
|
438 |
52c1809f35c1
topic: add tests which demonstrate topicset failure of FilteredRepoLookupError
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
4676
diff
changeset
|
439 update to obsolete revision |
52c1809f35c1
topic: add tests which demonstrate topicset failure of FilteredRepoLookupError
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
4676
diff
changeset
|
440 $ hg up -r 'min(desc("add fff"))' --hidden |
52c1809f35c1
topic: add tests which demonstrate topicset failure of FilteredRepoLookupError
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
4676
diff
changeset
|
441 switching to topic foo |
52c1809f35c1
topic: add tests which demonstrate topicset failure of FilteredRepoLookupError
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
4676
diff
changeset
|
442 2 files updated, 0 files merged, 1 files removed, 0 files unresolved |
52c1809f35c1
topic: add tests which demonstrate topicset failure of FilteredRepoLookupError
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
4676
diff
changeset
|
443 updated to hidden changeset 6a6b7365c751 |
6317
53d63b608230
evolve: stop preserving all of {extras} for uninterrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents:
6032
diff
changeset
|
444 (hidden revision '6a6b7365c751' was rewritten as: 235873f1950b) |
4680
52c1809f35c1
topic: add tests which demonstrate topicset failure of FilteredRepoLookupError
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
4676
diff
changeset
|
445 working directory parent is obsolete! (6a6b7365c751) |
6317
53d63b608230
evolve: stop preserving all of {extras} for uninterrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents:
6032
diff
changeset
|
446 (use 'hg evolve' to update to its successor: 235873f1950b) |
4680
52c1809f35c1
topic: add tests which demonstrate topicset failure of FilteredRepoLookupError
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
4676
diff
changeset
|
447 |
52c1809f35c1
topic: add tests which demonstrate topicset failure of FilteredRepoLookupError
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
4676
diff
changeset
|
448 Evolve: |
52c1809f35c1
topic: add tests which demonstrate topicset failure of FilteredRepoLookupError
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
4676
diff
changeset
|
449 $ hg evolve |
52c1809f35c1
topic: add tests which demonstrate topicset failure of FilteredRepoLookupError
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
4676
diff
changeset
|
450 update:[26] add fff |
52c1809f35c1
topic: add tests which demonstrate topicset failure of FilteredRepoLookupError
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
4676
diff
changeset
|
451 switching to topic bar |
52c1809f35c1
topic: add tests which demonstrate topicset failure of FilteredRepoLookupError
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
4676
diff
changeset
|
452 3 files updated, 0 files merged, 0 files removed, 0 files unresolved |
6317
53d63b608230
evolve: stop preserving all of {extras} for uninterrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents:
6032
diff
changeset
|
453 working directory is now at 235873f1950b |