Mercurial > evolve
annotate tests/test-topic-prev-next.t @ 5907:355bd0f7354b stable
packaging: mark as developer version
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Sun, 25 Apr 2021 23:50:21 +0800 |
parents | 21a8f0336f26 |
children | 3571685e2aa2 |
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 |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
136 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
|
137 |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
138 $ hg next |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
139 move:[s3] A3 |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
140 atop:[s2] A2 |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
141 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
|
142 |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
143 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
|
144 |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
145 $ 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
|
146 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
|
147 $ 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
|
148 move:[6] B1 |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
149 atop:[8] A2 |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
150 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
|
151 $ hg next |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
152 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
|
153 [s3] A3 |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
154 |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
155 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
|
156 |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
157 $ 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
|
158 move:[s5] A4 |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
159 atop:[s3] A3 |
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("A3")' |
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, 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
|
162 $ hg stack |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
163 ### 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
|
164 ### target: default (branch) |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
165 s5: A4 |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
166 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
|
167 s4$ A5 (orphan) |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
168 s3@ A3 (current) |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
169 s2: A2 |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
170 s1: A1 |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
171 s0^ root (base) |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
172 $ 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
|
173 hg update 51d70e81d730; |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
174 [s5] A4 |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
175 $ hg next |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
176 ambiguous next changeset: |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
177 [s5] A4 |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
178 [s4] A5 |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
179 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
|
180 [1] |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
181 |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
182 $ cd .. |
21a8f0336f26
next: treat targets that need evolution the same as regular targets
Anton Shestakov <av6@dwimlabs.net>
parents:
5883
diff
changeset
|
183 |
5883
24bfb5c7bf7a
next: filter unstable targets by topic only when there's no --no-topic
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
184 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
|
185 |
24bfb5c7bf7a
next: filter unstable targets by topic only when there's no --no-topic
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
186 $ 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
|
187 $ 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
|
188 |
24bfb5c7bf7a
next: filter unstable targets by topic only when there's no --no-topic
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
189 $ mkcommit ROOT |
24bfb5c7bf7a
next: filter unstable targets by topic only when there's no --no-topic
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
190 $ 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
|
191 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
|
192 $ mkcommit A |
24bfb5c7bf7a
next: filter unstable targets by topic only when there's no --no-topic
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
193 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
|
194 (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
|
195 $ 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
|
196 $ mkcommit B |
24bfb5c7bf7a
next: filter unstable targets by topic only when there's no --no-topic
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
197 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
|
198 (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
|
199 $ 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
|
200 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
|
201 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
|
202 $ 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
|
203 $ 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
|
204 adding foo |
24bfb5c7bf7a
next: filter unstable targets by topic only when there's no --no-topic
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
205 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
|
206 $ 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
|
207 @ 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
|
208 | |
24bfb5c7bf7a
next: filter unstable targets by topic only when there's no --no-topic
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
209 | * 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
|
210 | | |
24bfb5c7bf7a
next: filter unstable targets by topic only when there's no --no-topic
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
211 | 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
|
212 |/ |
24bfb5c7bf7a
next: filter unstable targets by topic only when there's no --no-topic
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
213 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
|
214 |
24bfb5c7bf7a
next: filter unstable targets by topic only when there's no --no-topic
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
215 |
24bfb5c7bf7a
next: filter unstable targets by topic only when there's no --no-topic
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
216 $ hg next |
24bfb5c7bf7a
next: filter unstable targets by topic only when there's no --no-topic
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
217 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
|
218 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
|
219 [1] |
24bfb5c7bf7a
next: filter unstable targets by topic only when there's no --no-topic
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
220 |
24bfb5c7bf7a
next: filter unstable targets by topic only when there's no --no-topic
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
221 $ 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
|
222 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
|
223 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
|
224 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
|
225 |
24bfb5c7bf7a
next: filter unstable targets by topic only when there's no --no-topic
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
226 $ cd .. |