Mercurial > evolve
comparison tests/test-topic-flow-publish-flag.t @ 6036:86c1d92d433f
tests: add a log alias to test-topic-flow-publish-flag.t
The alias is copied from test-topic-flow-publish-bare.t.
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Fri, 10 Sep 2021 16:25:52 +0300 |
parents | f0d46ffbf1bb |
children | c0921b5277a0 80b996fbb9da |
comparison
equal
deleted
inserted
replaced
6035:55fbf9c8bfe0 | 6036:86c1d92d433f |
---|---|
2 Test workflow options | 2 Test workflow options |
3 ===================== | 3 ===================== |
4 | 4 |
5 $ . "$TESTDIR/testlib/topic_setup.sh" | 5 $ . "$TESTDIR/testlib/topic_setup.sh" |
6 $ . "$TESTDIR/testlib/common.sh" | 6 $ . "$TESTDIR/testlib/common.sh" |
7 | |
8 $ cat << EOF >> "$HGRCPATH" | |
9 > [alias] | |
10 > tgl = log --rev 'sort(\$1, "topo")' -GT '{rev}:{node|short} {desc} {phase} {branch} {topics}' | |
11 > EOF | |
7 | 12 |
8 testing hg push --publish flag | 13 testing hg push --publish flag |
9 ============================== | 14 ============================== |
10 | 15 |
11 $ hg init bare-branch-server | 16 $ hg init bare-branch-server |
33 searching for changes | 38 searching for changes |
34 adding changesets | 39 adding changesets |
35 adding manifests | 40 adding manifests |
36 adding file changes | 41 adding file changes |
37 added 1 changesets with 1 changes to 1 files | 42 added 1 changesets with 1 changes to 1 files |
38 $ hg log --rev 'sort(all(), "topo")' -GT '{rev}:{node|short} {desc} {phase} {branch} {topics}' | 43 $ hg tgl 'all()' |
39 @ 2:286d02a6e2a2 c_dB0 public default | 44 @ 2:286d02a6e2a2 c_dB0 public default |
40 | | 45 | |
41 o 1:134bc3852ad2 c_dA0 public default | 46 o 1:134bc3852ad2 c_dA0 public default |
42 | | 47 | |
43 o 0:ea207398892e ROOT public default | 48 o 0:ea207398892e ROOT public default |
53 searching for changes | 58 searching for changes |
54 adding changesets | 59 adding changesets |
55 adding manifests | 60 adding manifests |
56 adding file changes | 61 adding file changes |
57 added 2 changesets with 2 changes to 2 files | 62 added 2 changesets with 2 changes to 2 files |
58 $ hg log --rev 'sort(all(), "topo")' -GT '{rev}:{node|short} {desc} {phase} {branch} {topics}' | 63 $ hg tgl 'all()' |
59 @ 4:c63e7dd93a91 c_dD0 public default | 64 @ 4:c63e7dd93a91 c_dD0 public default |
60 | | 65 | |
61 o 3:7d56a56d2547 c_dC0 public default | 66 o 3:7d56a56d2547 c_dC0 public default |
62 | | 67 | |
63 o 2:286d02a6e2a2 c_dB0 public default | 68 o 2:286d02a6e2a2 c_dB0 public default |
82 searching for changes | 87 searching for changes |
83 adding changesets | 88 adding changesets |
84 adding manifests | 89 adding manifests |
85 adding file changes | 90 adding file changes |
86 added 2 changesets with 2 changes to 2 files (+1 heads) | 91 added 2 changesets with 2 changes to 2 files (+1 heads) |
87 $ hg log --rev 'sort(all(), "topo")' -GT '{rev}:{node|short} {desc} {phase} {branch} {topics}' | 92 $ hg tgl 'all()' |
88 @ 6:45b23c834b6a c_oF0 public other | 93 @ 6:45b23c834b6a c_oF0 public other |
89 | | 94 | |
90 | o 5:5576ae39eaee c_dE0 public default | 95 | o 5:5576ae39eaee c_dE0 public default |
91 |/ | 96 |/ |
92 o 4:c63e7dd93a91 c_dD0 public default | 97 o 4:c63e7dd93a91 c_dD0 public default |
108 searching for changes | 113 searching for changes |
109 adding changesets | 114 adding changesets |
110 adding manifests | 115 adding manifests |
111 adding file changes | 116 adding file changes |
112 added 1 changesets with 1 changes to 1 files | 117 added 1 changesets with 1 changes to 1 files |
113 $ hg log --rev 'sort(all(), "topo")' -GT '{rev}:{node|short} {desc} {phase} {branch} {topics}' | 118 $ hg tgl 'all()' |
114 @ 7:d293f74a1233 c_oG0 draft other | 119 @ 7:d293f74a1233 c_oG0 draft other |
115 | | 120 | |
116 o 6:45b23c834b6a c_oF0 public other | 121 o 6:45b23c834b6a c_oF0 public other |
117 | | 122 | |
118 | o 5:5576ae39eaee c_dE0 public default | 123 | o 5:5576ae39eaee c_dE0 public default |
130 $ hg push --publish | 135 $ hg push --publish |
131 pushing to $TESTTMP/bare-branch-server | 136 pushing to $TESTTMP/bare-branch-server |
132 searching for changes | 137 searching for changes |
133 no changes found | 138 no changes found |
134 [1] | 139 [1] |
135 $ hg log --rev 'sort(all(), "topo")' -GT '{rev}:{node|short} {desc} {phase} {branch} {topics}' | 140 $ hg tgl 'all()' |
136 @ 7:d293f74a1233 c_oG0 public other | 141 @ 7:d293f74a1233 c_oG0 public other |
137 | | 142 | |
138 o 6:45b23c834b6a c_oF0 public other | 143 o 6:45b23c834b6a c_oF0 public other |
139 | | 144 | |
140 | o 5:5576ae39eaee c_dE0 public default | 145 | o 5:5576ae39eaee c_dE0 public default |
162 searching for changes | 167 searching for changes |
163 adding changesets | 168 adding changesets |
164 adding manifests | 169 adding manifests |
165 adding file changes | 170 adding file changes |
166 added 1 changesets with 1 changes to 1 files | 171 added 1 changesets with 1 changes to 1 files |
167 $ hg log --rev 'sort(all(), "topo")' -GT '{rev}:{node|short} {desc} {phase} {branch} {topics}' | 172 $ hg tgl 'all()' |
168 @ 9:fbf2be276221 c_dI0 public default | 173 @ 9:fbf2be276221 c_dI0 public default |
169 | | 174 | |
170 o 5:5576ae39eaee c_dE0 public default | 175 o 5:5576ae39eaee c_dE0 public default |
171 | | 176 | |
172 | o 8:8e85646c135f c_oH0 draft other | 177 | o 8:8e85646c135f c_oH0 draft other |
195 searching for changes | 200 searching for changes |
196 adding changesets | 201 adding changesets |
197 adding manifests | 202 adding manifests |
198 adding file changes | 203 adding file changes |
199 added 2 changesets with 2 changes to 2 files | 204 added 2 changesets with 2 changes to 2 files |
200 $ hg log --rev 'sort(all(), "topo")' -GT '{rev}:{node|short} {desc} {phase} {branch} {topics}' | 205 $ hg tgl 'all()' |
201 @ 10:ac4cf59f2aac c_dJ0 draft default | 206 @ 10:ac4cf59f2aac c_dJ0 draft default |
202 | | 207 | |
203 o 9:fbf2be276221 c_dI0 public default | 208 o 9:fbf2be276221 c_dI0 public default |
204 | | 209 | |
205 o 5:5576ae39eaee c_dE0 public default | 210 o 5:5576ae39eaee c_dE0 public default |
223 $ hg push --rev default --publish | 228 $ hg push --rev default --publish |
224 pushing to $TESTTMP/bare-branch-server | 229 pushing to $TESTTMP/bare-branch-server |
225 searching for changes | 230 searching for changes |
226 no changes found | 231 no changes found |
227 [1] | 232 [1] |
228 $ hg log --rev 'sort(all(), "topo")' -GT '{rev}:{node|short} {desc} {phase} {branch} {topics}' | 233 $ hg tgl 'all()' |
229 @ 10:ac4cf59f2aac c_dJ0 public default | 234 @ 10:ac4cf59f2aac c_dJ0 public default |
230 | | 235 | |
231 o 9:fbf2be276221 c_dI0 public default | 236 o 9:fbf2be276221 c_dI0 public default |
232 | | 237 | |
233 o 5:5576ae39eaee c_dE0 public default | 238 o 5:5576ae39eaee c_dE0 public default |
255 $ hg push --rev default --publish | 260 $ hg push --rev default --publish |
256 pushing to $TESTTMP/bare-branch-server | 261 pushing to $TESTTMP/bare-branch-server |
257 searching for changes | 262 searching for changes |
258 no changes found | 263 no changes found |
259 [1] | 264 [1] |
260 $ hg log --rev 'sort(all(), "topo")' -GT '{rev}:{node|short} {desc} {phase} {branch} {topics}' | 265 $ hg tgl 'all()' |
261 @ 10:ac4cf59f2aac c_dJ0 public default | 266 @ 10:ac4cf59f2aac c_dJ0 public default |
262 | | 267 | |
263 o 9:fbf2be276221 c_dI0 public default | 268 o 9:fbf2be276221 c_dI0 public default |
264 | | 269 | |
265 o 5:5576ae39eaee c_dE0 public default | 270 o 5:5576ae39eaee c_dE0 public default |
299 adding manifests | 304 adding manifests |
300 adding file changes | 305 adding file changes |
301 added 1 changesets with 1 changes to 1 files | 306 added 1 changesets with 1 changes to 1 files |
302 active topic 'topic_A' is now empty | 307 active topic 'topic_A' is now empty |
303 (use 'hg topic --clear' to clear it if needed) | 308 (use 'hg topic --clear' to clear it if needed) |
304 $ hg log --rev 'sort(all(), "topo")' -GT '{rev}:{node|short} {desc} {phase} {branch} {topics}' | 309 $ hg tgl 'all()' |
305 @ 11:d06fc4f891e8 c_dK0 public default | 310 @ 11:d06fc4f891e8 c_dK0 public default |
306 | | 311 | |
307 o 10:ac4cf59f2aac c_dJ0 public default | 312 o 10:ac4cf59f2aac c_dJ0 public default |
308 | | 313 | |
309 o 9:fbf2be276221 c_dI0 public default | 314 o 9:fbf2be276221 c_dI0 public default |
349 searching for changes | 354 searching for changes |
350 adding changesets | 355 adding changesets |
351 adding manifests | 356 adding manifests |
352 adding file changes | 357 adding file changes |
353 added 1 changesets with 1 changes to 1 files (+1 heads) | 358 added 1 changesets with 1 changes to 1 files (+1 heads) |
354 $ hg log --rev 'sort(all(), "topo")' -GT '{rev}:{node|short} {desc} {phase} {branch} {topics}' | 359 $ hg tgl 'all()' |
355 @ 13:0d144c8b6c8f c_dM0 public default | 360 @ 13:0d144c8b6c8f c_dM0 public default |
356 | | 361 | |
357 | o 12:3c73f6cabf07 c_dL0 draft default topic_A | 362 | o 12:3c73f6cabf07 c_dL0 draft default topic_A |
358 |/ | 363 |/ |
359 o 11:d06fc4f891e8 c_dK0 public default | 364 o 11:d06fc4f891e8 c_dK0 public default |
395 pushing to $TESTTMP/bare-branch-server | 400 pushing to $TESTTMP/bare-branch-server |
396 searching for changes | 401 searching for changes |
397 abort: push creates new remote head 4dcd0be9db96 | 402 abort: push creates new remote head 4dcd0be9db96 |
398 (merge or see 'hg help push' for details about pushing new heads) | 403 (merge or see 'hg help push' for details about pushing new heads) |
399 [20] | 404 [20] |
400 $ hg log --rev 'sort(all(), "topo")' -GT '{rev}:{node|short} {desc} {phase} {branch} {topics}' | 405 $ hg tgl 'all()' |
401 @ 14:4dcd0be9db96 c_dN0 draft default topic_B | 406 @ 14:4dcd0be9db96 c_dN0 draft default topic_B |
402 | | 407 | |
403 | o 13:0d144c8b6c8f c_dM0 public default | 408 | o 13:0d144c8b6c8f c_dM0 public default |
404 |/ | 409 |/ |
405 | o 12:3c73f6cabf07 c_dL0 draft default topic_A | 410 | o 12:3c73f6cabf07 c_dL0 draft default topic_A |