Mercurial > evolve
annotate tests/test-topic-prev-next.t @ 6611:1dc008b6ad21 stable
topic: add a missing comma in the topic name rejection message
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Mon, 11 Dec 2023 16:27:09 -0300 |
parents | 3571685e2aa2 |
children | 9da0114a8a02 |
rev | line source |
---|---|
5883
24bfb5c7bf7a
next: filter unstable targets by topic only when there's no --no-topic
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
1 $ . "$TESTDIR/testlib/topic_setup.sh" |
24bfb5c7bf7a
next: filter unstable targets by topic only when there's no --no-topic
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
2 $ . "$TESTDIR/testlib/common.sh" |
24bfb5c7bf7a
next: filter unstable targets by topic only when there's no --no-topic
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
3 |
24bfb5c7bf7a
next: filter unstable targets by topic only when there's no --no-topic
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
4 $ cat << EOF >> $HGRCPATH |
24bfb5c7bf7a
next: filter unstable targets by topic only when there's no --no-topic
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
5 > [extensions] |
24bfb5c7bf7a
next: filter unstable targets by topic only when there's no --no-topic
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
6 > evolve = |
24bfb5c7bf7a
next: filter unstable targets by topic only when there's no --no-topic
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
7 > [ui] |
24bfb5c7bf7a
next: filter unstable targets by topic only when there's no --no-topic
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
8 > logtemplate = '{rev} [{topic}] {desc}\n' |
24bfb5c7bf7a
next: filter unstable targets by topic only when there's no --no-topic
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
9 > EOF |
24bfb5c7bf7a
next: filter unstable targets by topic only when there's no --no-topic
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
10 |
5884
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
11 Checking target ambiguity in hg next |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
12 |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
13 $ hg init ambiguous-next |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
14 $ cd ambiguous-next |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
15 |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
16 $ mkcommit root |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
17 $ hg topic A |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
18 marked working directory as topic: A |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
19 $ mkcommit A1 |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
20 active topic 'A' grew its first changeset |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
21 (see 'hg help topics' for more information) |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
22 $ mkcommit A2 |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
23 $ mkcommit A3 |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
24 $ mkcommit A4 |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
25 $ hg up 'desc("A3")' |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
26 0 files updated, 0 files merged, 1 files removed, 0 files unresolved |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
27 $ mkcommit A5 |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
28 $ hg up 'desc("A2")' |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
29 0 files updated, 0 files merged, 2 files removed, 0 files unresolved |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
30 $ hg topic B |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
31 $ mkcommit B1 |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
32 active topic 'B' grew its first changeset |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
33 (see 'hg help topics' for more information) |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
34 $ mkcommit B2 |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
35 |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
36 $ hg log -G |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
37 @ 7 [B] B2 |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
38 | |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
39 o 6 [B] B1 |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
40 | |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
41 | o 5 [A] A5 |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
42 | | |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
43 | | o 4 [A] A4 |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
44 | |/ |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
45 | o 3 [A] A3 |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
46 |/ |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
47 o 2 [A] A2 |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
48 | |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
49 o 1 [A] A1 |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
50 | |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
51 o 0 [] root |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
52 |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
53 |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
54 Quick sanity check |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
55 |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
56 $ hg up 'desc("A1")' |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
57 switching to topic A |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
58 0 files updated, 0 files merged, 3 files removed, 0 files unresolved |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
59 $ hg next |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
60 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
61 [s2] A2 |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
62 $ hg stack |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
63 ### topic: A (2 heads) |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
64 ### target: default (branch) |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
65 s5: A4 |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
66 s3^ A3 (base) |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
67 s4: A5 |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
68 s3: A3 |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
69 s2@ A2 (current) |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
70 s1: A1 |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
71 s0^ root (base) |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
72 $ hg next |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
73 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
74 [s3] A3 |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
75 $ hg log -G |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
76 o 7 [B] B2 |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
77 | |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
78 o 6 [B] B1 |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
79 | |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
80 | o 5 [A] A5 |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
81 | | |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
82 | | o 4 [A] A4 |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
83 | |/ |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
84 | @ 3 [A] A3 |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
85 |/ |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
86 o 2 [A] A2 |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
87 | |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
88 o 1 [A] A1 |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
89 | |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
90 o 0 [] root |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
91 |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
92 $ hg next |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
93 ambiguous next changeset: |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
94 [s5] A4 |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
95 [s4] A5 |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
96 explicitly update to one of them |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
97 [1] |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
98 |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
99 Let's make some changesets unstable |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
100 |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
101 $ hg up 'desc("A2")' |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
102 0 files updated, 0 files merged, 1 files removed, 0 files unresolved |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
103 $ echo foo > A2 |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
104 $ hg amend |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
105 5 new orphan changesets |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
106 $ hg stack |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
107 ### topic: A (2 heads) |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
108 ### target: default (branch) |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
109 s5$ A4 (orphan) |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
110 s3^ A3 (base orphan) |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
111 s4$ A5 (orphan) |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
112 s3$ A3 (orphan) |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
113 s2@ A2 (current) |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
114 s1: A1 |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
115 s0^ root (base) |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
116 $ hg log -G |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
117 @ 8 [A] A2 |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
118 | |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
119 | * 7 [B] B2 |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
120 | | |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
121 | * 6 [B] B1 |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
122 | | |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
123 | | * 5 [A] A5 |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
124 | | | |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
125 | | | * 4 [A] A4 |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
126 | | |/ |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
127 | | * 3 [A] A3 |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
128 | |/ |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
129 | x 2 [A] A2 |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
130 |/ |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
131 o 1 [A] A1 |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
132 | |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
133 o 0 [] root |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
134 |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
135 |
5909
3571685e2aa2
next: remove duplicated targets when updating from an unstable changeset
Anton Shestakov <av6@dwimlabs.net>
parents:
5884
diff
changeset
|
136 Simply walking on unstable changesets should work as expected |
3571685e2aa2
next: remove duplicated targets when updating from an unstable changeset
Anton Shestakov <av6@dwimlabs.net>
parents:
5884
diff
changeset
|
137 |
3571685e2aa2
next: remove duplicated targets when updating from an unstable changeset
Anton Shestakov <av6@dwimlabs.net>
parents:
5884
diff
changeset
|
138 $ hg up 'desc("B2")' |
3571685e2aa2
next: remove duplicated targets when updating from an unstable changeset
Anton Shestakov <av6@dwimlabs.net>
parents:
5884
diff
changeset
|
139 switching to topic B |
3571685e2aa2
next: remove duplicated targets when updating from an unstable changeset
Anton Shestakov <av6@dwimlabs.net>
parents:
5884
diff
changeset
|
140 3 files updated, 0 files merged, 0 files removed, 0 files unresolved |
3571685e2aa2
next: remove duplicated targets when updating from an unstable changeset
Anton Shestakov <av6@dwimlabs.net>
parents:
5884
diff
changeset
|
141 $ hg prev |
3571685e2aa2
next: remove duplicated targets when updating from an unstable changeset
Anton Shestakov <av6@dwimlabs.net>
parents:
5884
diff
changeset
|
142 0 files updated, 0 files merged, 1 files removed, 0 files unresolved |
3571685e2aa2
next: remove duplicated targets when updating from an unstable changeset
Anton Shestakov <av6@dwimlabs.net>
parents:
5884
diff
changeset
|
143 [s1] B1 |
3571685e2aa2
next: remove duplicated targets when updating from an unstable changeset
Anton Shestakov <av6@dwimlabs.net>
parents:
5884
diff
changeset
|
144 $ hg next |
3571685e2aa2
next: remove duplicated targets when updating from an unstable changeset
Anton Shestakov <av6@dwimlabs.net>
parents:
5884
diff
changeset
|
145 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
3571685e2aa2
next: remove duplicated targets when updating from an unstable changeset
Anton Shestakov <av6@dwimlabs.net>
parents:
5884
diff
changeset
|
146 [s2] B2 |
3571685e2aa2
next: remove duplicated targets when updating from an unstable changeset
Anton Shestakov <av6@dwimlabs.net>
parents:
5884
diff
changeset
|
147 |
5884
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
148 B1 shouldn't be considered a target, orphan or not |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
149 |
5909
3571685e2aa2
next: remove duplicated targets when updating from an unstable changeset
Anton Shestakov <av6@dwimlabs.net>
parents:
5884
diff
changeset
|
150 $ hg up 'desc("A2")' |
3571685e2aa2
next: remove duplicated targets when updating from an unstable changeset
Anton Shestakov <av6@dwimlabs.net>
parents:
5884
diff
changeset
|
151 switching to topic A |
3571685e2aa2
next: remove duplicated targets when updating from an unstable changeset
Anton Shestakov <av6@dwimlabs.net>
parents:
5884
diff
changeset
|
152 1 files updated, 0 files merged, 2 files removed, 0 files unresolved |
5884
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
153 $ hg next |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
154 move:[s3] A3 |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
155 atop:[s2] A2 |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
156 working directory is now at 2b67b6a6cae1 |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
157 |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
158 B1 is not considered a target when it's been stabilized |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
159 |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
160 $ hg up 'desc("A2")' |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
161 0 files updated, 0 files merged, 1 files removed, 0 files unresolved |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
162 $ hg evolve --rev 'desc("B1")' |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
163 move:[6] B1 |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
164 atop:[8] A2 |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
165 switching to topic A |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
166 $ hg next |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
167 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
168 [s3] A3 |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
169 |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
170 A4 and A5 should be ambiguous for hg next even if A5 is an orphan and A4 is not |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
171 |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
172 $ hg evolve --rev 'desc("A3") + desc("A4")' |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
173 move:[s5] A4 |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
174 atop:[s3] A3 |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
175 $ hg up 'desc("A3")' |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
176 0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
177 $ hg stack |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
178 ### topic: A (2 heads) |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
179 ### target: default (branch) |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
180 s5: A4 |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
181 s3^ A3 (base current) |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
182 s4$ A5 (orphan) |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
183 s3@ A3 (current) |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
184 s2: A2 |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
185 s1: A1 |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
186 s0^ root (base) |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
187 $ hg next --no-evolve --dry-run |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
188 hg update 51d70e81d730; |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
189 [s5] A4 |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
190 $ hg next |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
191 ambiguous next changeset: |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
192 [s5] A4 |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
193 [s4] A5 |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
194 explicitly update to one of them |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
195 [1] |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
196 |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
197 $ cd .. |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
198 |
5883
24bfb5c7bf7a
next: filter unstable targets by topic only when there's no --no-topic
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
199 Making sure plain hg next sticks to topic when target is unstable |
24bfb5c7bf7a
next: filter unstable targets by topic only when there's no --no-topic
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
200 |
24bfb5c7bf7a
next: filter unstable targets by topic only when there's no --no-topic
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
201 $ hg init next-unstable-topic |
24bfb5c7bf7a
next: filter unstable targets by topic only when there's no --no-topic
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
202 $ cd next-unstable-topic |
24bfb5c7bf7a
next: filter unstable targets by topic only when there's no --no-topic
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
203 |
24bfb5c7bf7a
next: filter unstable targets by topic only when there's no --no-topic
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
204 $ mkcommit ROOT |
24bfb5c7bf7a
next: filter unstable targets by topic only when there's no --no-topic
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
205 $ hg topics topic-a |
24bfb5c7bf7a
next: filter unstable targets by topic only when there's no --no-topic
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
206 marked working directory as topic: topic-a |
24bfb5c7bf7a
next: filter unstable targets by topic only when there's no --no-topic
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
207 $ mkcommit A |
24bfb5c7bf7a
next: filter unstable targets by topic only when there's no --no-topic
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
208 active topic 'topic-a' grew its first changeset |
24bfb5c7bf7a
next: filter unstable targets by topic only when there's no --no-topic
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
209 (see 'hg help topics' for more information) |
24bfb5c7bf7a
next: filter unstable targets by topic only when there's no --no-topic
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
210 $ hg topics topic-b |
24bfb5c7bf7a
next: filter unstable targets by topic only when there's no --no-topic
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
211 $ mkcommit B |
24bfb5c7bf7a
next: filter unstable targets by topic only when there's no --no-topic
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
212 active topic 'topic-b' grew its first changeset |
24bfb5c7bf7a
next: filter unstable targets by topic only when there's no --no-topic
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
213 (see 'hg help topics' for more information) |
24bfb5c7bf7a
next: filter unstable targets by topic only when there's no --no-topic
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
214 $ hg up 'topic("topic-a")' |
24bfb5c7bf7a
next: filter unstable targets by topic only when there's no --no-topic
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
215 switching to topic topic-a |
24bfb5c7bf7a
next: filter unstable targets by topic only when there's no --no-topic
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
216 0 files updated, 0 files merged, 1 files removed, 0 files unresolved |
24bfb5c7bf7a
next: filter unstable targets by topic only when there's no --no-topic
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
217 $ echo foo > foo |
24bfb5c7bf7a
next: filter unstable targets by topic only when there's no --no-topic
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
218 $ hg ci -A --amend |
24bfb5c7bf7a
next: filter unstable targets by topic only when there's no --no-topic
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
219 adding foo |
24bfb5c7bf7a
next: filter unstable targets by topic only when there's no --no-topic
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
220 1 new orphan changesets |
24bfb5c7bf7a
next: filter unstable targets by topic only when there's no --no-topic
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
221 $ hg log -G |
24bfb5c7bf7a
next: filter unstable targets by topic only when there's no --no-topic
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
222 @ 3 [topic-a] A |
24bfb5c7bf7a
next: filter unstable targets by topic only when there's no --no-topic
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
223 | |
24bfb5c7bf7a
next: filter unstable targets by topic only when there's no --no-topic
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
224 | * 2 [topic-b] B |
24bfb5c7bf7a
next: filter unstable targets by topic only when there's no --no-topic
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
225 | | |
24bfb5c7bf7a
next: filter unstable targets by topic only when there's no --no-topic
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
226 | x 1 [topic-a] A |
24bfb5c7bf7a
next: filter unstable targets by topic only when there's no --no-topic
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
227 |/ |
24bfb5c7bf7a
next: filter unstable targets by topic only when there's no --no-topic
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
228 o 0 [] ROOT |
24bfb5c7bf7a
next: filter unstable targets by topic only when there's no --no-topic
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
229 |
24bfb5c7bf7a
next: filter unstable targets by topic only when there's no --no-topic
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
230 |
24bfb5c7bf7a
next: filter unstable targets by topic only when there's no --no-topic
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
231 $ hg next |
24bfb5c7bf7a
next: filter unstable targets by topic only when there's no --no-topic
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
232 no children on topic "topic-a" |
24bfb5c7bf7a
next: filter unstable targets by topic only when there's no --no-topic
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
233 do you want --no-topic |
24bfb5c7bf7a
next: filter unstable targets by topic only when there's no --no-topic
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
234 [1] |
24bfb5c7bf7a
next: filter unstable targets by topic only when there's no --no-topic
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
235 |
24bfb5c7bf7a
next: filter unstable targets by topic only when there's no --no-topic
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
236 $ hg next --no-topic |
24bfb5c7bf7a
next: filter unstable targets by topic only when there's no --no-topic
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
237 move:[2] B |
24bfb5c7bf7a
next: filter unstable targets by topic only when there's no --no-topic
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
238 atop:[3] A |
24bfb5c7bf7a
next: filter unstable targets by topic only when there's no --no-topic
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
239 working directory is now at 53f8332d648f |
24bfb5c7bf7a
next: filter unstable targets by topic only when there's no --no-topic
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
240 |
24bfb5c7bf7a
next: filter unstable targets by topic only when there's no --no-topic
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
241 $ cd .. |