Mercurial > evolve
annotate tests/test-evolve-topic.t @ 4137:21a3c051ca6c
stablerange: fix slicing of arbitrary ranges
Pull bundle trigger slicing from range with arbitrary initial skip. We have to
adjust the current slicing to take this into account.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Tue, 25 Sep 2018 12:19:41 +0200 |
parents | 4eb3877540f1 |
children | cc3a0b13ae57 |
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 > [defaults] |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
6 > amend=-d "0 0" |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
7 > fold=-d "0 0" |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
8 > [phases] |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
9 > publish = False |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
10 > [ui] |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
11 > 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
|
12 > [diff] |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
13 > git = 1 |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
14 > unified = 0 |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
15 > [extensions] |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
16 > rebase = |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
17 > EOF |
1806
9f42f819267b
evolve: move the extensions to 'hgext3rd'
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
1723
diff
changeset
|
18 $ 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
|
19 $ 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
|
20 |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
21 $ mkcommit() { |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
22 > 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
|
23 > 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
|
24 > 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
|
25 > } |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
26 |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
27 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
|
28 |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
29 $ 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
|
30 $ cd repoa |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
31 $ mkcommit aaa |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
32 $ mkcommit bbb |
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 foo |
2985
f63c97c01f92
topics/ui: signal when the topics command creates a new (empty) topic
Aurélien Campéas
parents:
2929
diff
changeset
|
34 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
|
35 $ mkcommit ccc |
2988
62201935e1a7
topics/ui: detect and signal when an empty changeset becomes non-empty
Aurélien Campéas
parents:
2985
diff
changeset
|
36 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
|
37 (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
|
38 $ mkcommit ddd |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
39 $ mkcommit eee |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
40 $ mkcommit fff |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
41 $ 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
|
42 $ mkcommit ggg |
2988
62201935e1a7
topics/ui: detect and signal when an empty changeset becomes non-empty
Aurélien Campéas
parents:
2985
diff
changeset
|
43 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
|
44 (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
|
45 $ mkcommit hhh |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
46 $ mkcommit iii |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
47 $ mkcommit jjj |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
48 |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
49 $ 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
|
50 @ 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
|
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 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
|
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 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
|
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 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
|
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 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
|
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 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
|
61 | |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
62 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
|
63 | |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
64 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
|
65 | |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
66 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
|
67 | |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
68 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
|
69 |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
70 |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
71 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
|
72 ----------------------------------------------- |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
73 |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
74 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
|
75 |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
76 $ 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
|
77 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
|
78 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
|
79 $ hg topic -l |
1723
2672f36d668e
test: adapt to topic changes
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
1694
diff
changeset
|
80 ### topic: foo (?) |
2672f36d668e
test: adapt to topic changes
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
1694
diff
changeset
|
81 ### 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
|
82 ### 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
|
83 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
|
84 s3: add eee |
fb4801478d5d
stack: display 's#' instead of 't#' and 'b#'
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3769
diff
changeset
|
85 s2: add ddd |
fb4801478d5d
stack: display 's#' instead of 't#' and 'b#'
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3769
diff
changeset
|
86 s1: add ccc |
fb4801478d5d
stack: display 's#' instead of 't#' and 'b#'
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3769
diff
changeset
|
87 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
|
88 $ 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
|
89 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
|
90 $ 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
|
91 $ hg amend |
3013
945a0989e41b
packaging: merge stable back into default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3000
diff
changeset
|
92 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
|
93 $ 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
|
94 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
|
95 $ 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
|
96 $ hg amend |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
97 |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
98 $ hg log -G |
3013
945a0989e41b
packaging: merge stable back into default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3000
diff
changeset
|
99 @ 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
|
100 | |
3013
945a0989e41b
packaging: merge stable back into default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3000
diff
changeset
|
101 | 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
|
102 | | |
3417
d3a17c67f85c
branching: merge stable back into default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3414
diff
changeset
|
103 | | * 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
|
104 | | | |
3417
d3a17c67f85c
branching: merge stable back into default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3414
diff
changeset
|
105 | | * 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
|
106 | | | |
3417
d3a17c67f85c
branching: merge stable back into default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3414
diff
changeset
|
107 | | * 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
|
108 | | | |
3417
d3a17c67f85c
branching: merge stable back into default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3414
diff
changeset
|
109 | | * 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
|
110 | | | |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
111 +---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
|
112 | | |
3417
d3a17c67f85c
branching: merge stable back into default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3414
diff
changeset
|
113 * | 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
|
114 | | |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
115 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
|
116 |/ |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
117 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
|
118 | |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
119 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
|
120 | |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
121 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
|
122 |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
123 |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
124 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
|
125 |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
126 $ hg evolve --all |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
127 move:[4] add eee |
3013
945a0989e41b
packaging: merge stable back into default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3000
diff
changeset
|
128 atop:[10] add ddd |
945a0989e41b
packaging: merge stable back into default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3000
diff
changeset
|
129 move:[11] add fff |
1626
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
130 working directory is now at 070c5573d8f9 |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
131 $ hg log -G |
3013
945a0989e41b
packaging: merge stable back into default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3000
diff
changeset
|
132 @ 13 - {foo} 070c5573d8f9 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
|
133 | |
3013
945a0989e41b
packaging: merge stable back into default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3000
diff
changeset
|
134 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
|
135 | |
3013
945a0989e41b
packaging: merge stable back into default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3000
diff
changeset
|
136 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
|
137 | |
3417
d3a17c67f85c
branching: merge stable back into default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3414
diff
changeset
|
138 | * 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
|
139 | | |
3417
d3a17c67f85c
branching: merge stable back into default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3414
diff
changeset
|
140 | * 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
|
141 | | |
3417
d3a17c67f85c
branching: merge stable back into default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3414
diff
changeset
|
142 | * 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
|
143 | | |
3417
d3a17c67f85c
branching: merge stable back into default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3414
diff
changeset
|
144 | * 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
|
145 | | |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
146 | 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
|
147 | | |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
148 | 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
|
149 | | |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
150 | 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
|
151 |/ |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
152 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
|
153 | |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
154 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
|
155 | |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
156 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
|
157 |
0edb545503fe
topic: 'hg evolve --all' pick all trouble within current topic
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
158 |
1627
a91115687a7e
topic: preserve topic during evolve
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
1626
diff
changeset
|
159 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
|
160 ------------------------------------------------- |
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 $ hg evolve --rev 'topic(bar)' |
a91115687a7e
topic: preserve topic during evolve
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
1626
diff
changeset
|
163 move:[6] add ggg |
3013
945a0989e41b
packaging: merge stable back into default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3000
diff
changeset
|
164 atop:[13] add fff |
1627
a91115687a7e
topic: preserve topic during evolve
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
1626
diff
changeset
|
165 move:[7] add hhh |
a91115687a7e
topic: preserve topic during evolve
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
1626
diff
changeset
|
166 move:[8] add iii |
a91115687a7e
topic: preserve topic during evolve
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
1626
diff
changeset
|
167 move:[9] add jjj |
a91115687a7e
topic: preserve topic during evolve
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
1626
diff
changeset
|
168 working directory is now at 9bf430c106b7 |
a91115687a7e
topic: preserve topic during evolve
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
1626
diff
changeset
|
169 $ hg log -G |
3013
945a0989e41b
packaging: merge stable back into default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3000
diff
changeset
|
170 @ 17 - {bar} 9bf430c106b7 add jjj (draft) |
1627
a91115687a7e
topic: preserve topic during evolve
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
1626
diff
changeset
|
171 | |
3013
945a0989e41b
packaging: merge stable back into default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3000
diff
changeset
|
172 o 16 - {bar} d2dc89c57700 add iii (draft) |
1627
a91115687a7e
topic: preserve topic during evolve
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
1626
diff
changeset
|
173 | |
3013
945a0989e41b
packaging: merge stable back into default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3000
diff
changeset
|
174 o 15 - {bar} 20bc4d02aa62 add hhh (draft) |
1627
a91115687a7e
topic: preserve topic during evolve
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
1626
diff
changeset
|
175 | |
3013
945a0989e41b
packaging: merge stable back into default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3000
diff
changeset
|
176 o 14 - {bar} 16d6f664b17c add ggg (draft) |
1627
a91115687a7e
topic: preserve topic during evolve
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
1626
diff
changeset
|
177 | |
3013
945a0989e41b
packaging: merge stable back into default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3000
diff
changeset
|
178 o 13 - {foo} 070c5573d8f9 add fff (draft) |
1627
a91115687a7e
topic: preserve topic during evolve
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
1626
diff
changeset
|
179 | |
3013
945a0989e41b
packaging: merge stable back into default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3000
diff
changeset
|
180 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
|
181 | |
3013
945a0989e41b
packaging: merge stable back into default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3000
diff
changeset
|
182 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
|
183 | |
a91115687a7e
topic: preserve topic during evolve
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
1626
diff
changeset
|
184 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
|
185 | |
a91115687a7e
topic: preserve topic during evolve
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
1626
diff
changeset
|
186 o 1 - {} a4dbed0837ea add bbb (draft) |
a91115687a7e
topic: preserve topic during evolve
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
1626
diff
changeset
|
187 | |
a91115687a7e
topic: preserve topic during evolve
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
1626
diff
changeset
|
188 o 0 - {} 199cc73e9a0b add aaa (draft) |
a91115687a7e
topic: preserve topic during evolve
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
1626
diff
changeset
|
189 |
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
|
190 |
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 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
|
192 ============================ |
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 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
|
195 |
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 $ 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
|
197 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
|
198 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
|
199 $ 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
|
200 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
|
201 [12] 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
|
202 $ 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
|
203 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
|
204 [13] 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
|
205 $ 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
|
206 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
|
207 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
|
208 [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
|
209 $ 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
|
210 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
|
211 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
|
212 [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
|
213 $ hg prev |
2745
b38112b43a27
prev: allow to update to 't0' from 't1'
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
2739
diff
changeset
|
214 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
|
215 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
|
216 [13] add fff |
2745
b38112b43a27
prev: allow to update to 't0' from 't1'
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
2739
diff
changeset
|
217 $ 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
|
218 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
|
219 (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
|
220 [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
|
221 $ 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
|
222 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
|
223 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
|
224 [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
|
225 |
1439021d22f9
tests: add a test showing wrong behaviour doing `hg prev` on orphan cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3013
diff
changeset
|
226 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
|
227 |
1439021d22f9
tests: add a test showing wrong behaviour doing `hg prev` on orphan cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3013
diff
changeset
|
228 $ hg log -G |
1439021d22f9
tests: add a test showing wrong behaviour doing `hg prev` on orphan cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3013
diff
changeset
|
229 o 17 - {bar} 9bf430c106b7 add jjj (draft) |
1439021d22f9
tests: add a test showing wrong behaviour doing `hg prev` on orphan cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3013
diff
changeset
|
230 | |
1439021d22f9
tests: add a test showing wrong behaviour doing `hg prev` on orphan cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3013
diff
changeset
|
231 o 16 - {bar} d2dc89c57700 add iii (draft) |
1439021d22f9
tests: add a test showing wrong behaviour doing `hg prev` on orphan cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3013
diff
changeset
|
232 | |
1439021d22f9
tests: add a test showing wrong behaviour doing `hg prev` on orphan cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3013
diff
changeset
|
233 o 15 - {bar} 20bc4d02aa62 add hhh (draft) |
1439021d22f9
tests: add a test showing wrong behaviour doing `hg prev` on orphan cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3013
diff
changeset
|
234 | |
1439021d22f9
tests: add a test showing wrong behaviour doing `hg prev` on orphan cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3013
diff
changeset
|
235 o 14 - {bar} 16d6f664b17c add ggg (draft) |
1439021d22f9
tests: add a test showing wrong behaviour doing `hg prev` on orphan cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3013
diff
changeset
|
236 | |
1439021d22f9
tests: add a test showing wrong behaviour doing `hg prev` on orphan cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3013
diff
changeset
|
237 o 13 - {foo} 070c5573d8f9 add fff (draft) |
1439021d22f9
tests: add a test showing wrong behaviour doing `hg prev` on orphan cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3013
diff
changeset
|
238 | |
1439021d22f9
tests: add a test showing wrong behaviour doing `hg prev` on orphan cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3013
diff
changeset
|
239 @ 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
|
240 | |
1439021d22f9
tests: add a test showing wrong behaviour doing `hg prev` on orphan cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3013
diff
changeset
|
241 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
|
242 | |
1439021d22f9
tests: add a test showing wrong behaviour doing `hg prev` on orphan cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3013
diff
changeset
|
243 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
|
244 | |
1439021d22f9
tests: add a test showing wrong behaviour doing `hg prev` on orphan cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3013
diff
changeset
|
245 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
|
246 | |
1439021d22f9
tests: add a test showing wrong behaviour doing `hg prev` on orphan cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3013
diff
changeset
|
247 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
|
248 |
3406
77284eefbd4d
test: use hash in test-evolve-topic.t
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3375
diff
changeset
|
249 $ hg topic -r 070c5573d8f9 bar |
3431
2e703ed1c713
evolve: update output for wider reporting of troubled changesets
Martin von Zweigbergk <martinvonz@google.com>
parents:
3417
diff
changeset
|
250 4 new orphan changesets |
3361
1439021d22f9
tests: add a test showing wrong behaviour doing `hg prev` on orphan cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3013
diff
changeset
|
251 changed topic on 1 changes |
3406
77284eefbd4d
test: use hash in test-evolve-topic.t
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3375
diff
changeset
|
252 $ hg up 16d6f664b17c |
3361
1439021d22f9
tests: add a test showing wrong behaviour doing `hg prev` on orphan cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3013
diff
changeset
|
253 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
|
254 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
|
255 |
1439021d22f9
tests: add a test showing wrong behaviour doing `hg prev` on orphan cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3013
diff
changeset
|
256 $ 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
|
257 ### 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
|
258 ### 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
|
259 s5$ add jjj (unstable) |
fb4801478d5d
stack: display 's#' instead of 't#' and 'b#'
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3769
diff
changeset
|
260 s4$ add iii (unstable) |
fb4801478d5d
stack: display 's#' instead of 't#' and 'b#'
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3769
diff
changeset
|
261 s3$ add hhh (unstable) |
fb4801478d5d
stack: display 's#' instead of 't#' and 'b#'
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3769
diff
changeset
|
262 s2$ add ggg (current unstable) |
fb4801478d5d
stack: display 's#' instead of 't#' and 'b#'
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3769
diff
changeset
|
263 s1: add fff |
fb4801478d5d
stack: display 's#' instead of 't#' and 'b#'
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3769
diff
changeset
|
264 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
|
265 |
1439021d22f9
tests: add a test showing wrong behaviour doing `hg prev` on orphan cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3013
diff
changeset
|
266 $ 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
|
267 0 files updated, 0 files merged, 1 files removed, 0 files unresolved |
92b414710d2e
prev: jump to parent's successor if parent is obsolete and topic is involved
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3361
diff
changeset
|
268 [18] 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
|
269 |
b3d2e0576d4c
prev: add a test case which shows traceback when doing prev on obsolete cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3431
diff
changeset
|
270 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
|
271 ------------------------------------------------------------------------------ |
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 $ hg log --graph |
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 @ 18 - {bar} 793eb6370b2d add fff (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
|
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 | * 17 - {bar} 9bf430c106b7 add jjj (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
|
277 | | |
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 | * 16 - {bar} d2dc89c57700 add iii (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
|
279 | | |
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 | * 15 - {bar} 20bc4d02aa62 add hhh (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
|
281 | | |
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 | * 14 - {bar} 16d6f664b17c add ggg (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
|
283 | | |
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 | x 13 - {foo} 070c5573d8f9 add fff (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
|
285 |/ |
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 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
|
287 | |
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 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
|
289 | |
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 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
|
291 | |
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 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
|
293 | |
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 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
|
295 |
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 $ hg 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
|
298 * bar (5 changesets, 4 troubled) |
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 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
|
300 |
b3d2e0576d4c
prev: add a test case which shows traceback when doing prev on obsolete cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3431
diff
changeset
|
301 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
|
302 |
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 $ hg up 20bc4d02aa62 |
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 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
|
305 $ 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
|
306 $ hg amend |
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 $ hg up 20bc4d02aa62 |
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 1 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
|
309 working directory parent is obsolete! (20bc4d02aa62) |
b3d2e0576d4c
prev: add a test case which shows traceback when doing prev on obsolete cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3431
diff
changeset
|
310 (use 'hg evolve' to update to its successor: d834582d9ee3) |
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 $ hg log -Gr 14:: |
b3d2e0576d4c
prev: add a test case which shows traceback when doing prev on obsolete cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3431
diff
changeset
|
312 * 19 - {bar} d834582d9ee3 add hhh (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
|
313 | |
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 | * 17 - {bar} 9bf430c106b7 add jjj (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
|
315 | | |
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 | * 16 - {bar} d2dc89c57700 add iii (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
|
317 | | |
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 | @ 15 - {bar} 20bc4d02aa62 add hhh (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
|
319 |/ |
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 * 14 - {bar} 16d6f664b17c add ggg (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
|
321 | |
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 ~ |
b3d2e0576d4c
prev: add a test case which shows traceback when doing prev on obsolete cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3431
diff
changeset
|
323 |
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 $ hg prev |
3532
68e99d2c6267
prev: fix the breakage of `hg previous` from obsolete cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3531
diff
changeset
|
325 0 files updated, 0 files merged, 1 files removed, 0 files unresolved |
68e99d2c6267
prev: fix the breakage of `hg previous` from obsolete cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3531
diff
changeset
|
326 [14] add ggg |
3533
f06c502ce4b7
previous: add test case when it's broken on obsolete cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3532
diff
changeset
|
327 |
f06c502ce4b7
previous: add test case when it's broken on obsolete cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3532
diff
changeset
|
328 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
|
329 different topic |
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 $ hg rebase -s d2dc89c57700 -d d834582d9ee3 --config extensions.rebase= |
f06c502ce4b7
previous: add test case when it's broken on obsolete cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3532
diff
changeset
|
332 rebasing 16:d2dc89c57700 "add iii" (bar) |
f06c502ce4b7
previous: add test case when it's broken on obsolete cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3532
diff
changeset
|
333 1 new orphan changesets |
f06c502ce4b7
previous: add test case when it's broken on obsolete cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3532
diff
changeset
|
334 rebasing 17:9bf430c106b7 "add jjj" (bar) |
f06c502ce4b7
previous: add test case when it's broken on obsolete cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3532
diff
changeset
|
335 1 new orphan changesets |
3580
031d70bcbb42
test: do not use revision number
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3534
diff
changeset
|
336 $ hg log -Gr 42b49017ff90:: |
3533
f06c502ce4b7
previous: add test case when it's broken on obsolete cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3532
diff
changeset
|
337 * 21 - {bar} 7542e76aba2c add jjj (draft) |
f06c502ce4b7
previous: add test case when it's broken on obsolete cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3532
diff
changeset
|
338 | |
f06c502ce4b7
previous: add test case when it's broken on obsolete cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3532
diff
changeset
|
339 * 20 - {bar} 7858bd7e9906 add iii (draft) |
f06c502ce4b7
previous: add test case when it's broken on obsolete cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3532
diff
changeset
|
340 | |
f06c502ce4b7
previous: add test case when it's broken on obsolete cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3532
diff
changeset
|
341 * 19 - {bar} d834582d9ee3 add hhh (draft) |
f06c502ce4b7
previous: add test case when it's broken on obsolete cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3532
diff
changeset
|
342 | |
f06c502ce4b7
previous: add test case when it's broken on obsolete cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3532
diff
changeset
|
343 | o 18 - {bar} 793eb6370b2d add fff (draft) |
f06c502ce4b7
previous: add test case when it's broken on obsolete cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3532
diff
changeset
|
344 | | |
f06c502ce4b7
previous: add test case when it's broken on obsolete cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3532
diff
changeset
|
345 @ | 14 - {bar} 16d6f664b17c add ggg (draft) |
f06c502ce4b7
previous: add test case when it's broken on obsolete cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3532
diff
changeset
|
346 | | |
f06c502ce4b7
previous: add test case when it's broken on obsolete cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3532
diff
changeset
|
347 x | 13 - {foo} 070c5573d8f9 add fff (draft) |
f06c502ce4b7
previous: add test case when it's broken on obsolete cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3532
diff
changeset
|
348 |/ |
f06c502ce4b7
previous: add test case when it's broken on obsolete cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3532
diff
changeset
|
349 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
|
350 | |
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 |
f06c502ce4b7
previous: add test case when it's broken on obsolete cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3532
diff
changeset
|
353 $ hg up 070c5573d8f9 |
f06c502ce4b7
previous: add test case when it's broken on obsolete cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3532
diff
changeset
|
354 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
|
355 0 files updated, 0 files merged, 1 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
|
356 working directory parent is obsolete! (070c5573d8f9) |
f06c502ce4b7
previous: add test case when it's broken on obsolete cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3532
diff
changeset
|
357 (use 'hg evolve' to update to its successor: 793eb6370b2d) |
f06c502ce4b7
previous: add test case when it's broken on obsolete cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3532
diff
changeset
|
358 |
f06c502ce4b7
previous: add test case when it's broken on obsolete cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3532
diff
changeset
|
359 $ hg topic bar |
f06c502ce4b7
previous: add test case when it's broken on obsolete cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3532
diff
changeset
|
360 |
f06c502ce4b7
previous: add test case when it's broken on obsolete cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3532
diff
changeset
|
361 $ hg prev |
3534
cd4db75413a2
previous: fix behavior on obsolete cset when topic is involved (issue5708)
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3533
diff
changeset
|
362 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
|
363 (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
|
364 [1] |
f06c502ce4b7
previous: add test case when it's broken on obsolete cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3532
diff
changeset
|
365 |
f06c502ce4b7
previous: add test case when it's broken on obsolete cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3532
diff
changeset
|
366 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
|
367 one |
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 $ hg up 070c5573d8f9 |
f06c502ce4b7
previous: add test case when it's broken on obsolete cset
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3532
diff
changeset
|
370 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
|
371 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
|
372 $ hg prev |
3534
cd4db75413a2
previous: fix behavior on obsolete cset when topic is involved (issue5708)
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3533
diff
changeset
|
373 0 files updated, 0 files merged, 1 files removed, 0 files unresolved |
cd4db75413a2
previous: fix behavior on obsolete cset when topic is involved (issue5708)
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3533
diff
changeset
|
374 [12] add eee |