comparison tests/test-topic-flow-publish-bare.t @ 5929:d46cd7cfff39 stable

tests: add an alias for log -G with topo sort for convenience
author Anton Shestakov <av6@dwimlabs.net>
date Wed, 19 May 2021 10:18:43 +0800
parents 16d36635f859
children 6357551cb66f
comparison
equal deleted inserted replaced
5928:16d36635f859 5929:d46cd7cfff39
8 Also testing auto-publish config option with this publishing mode 8 Also testing auto-publish config option with this publishing mode
9 9
10 $ cat << EOF >> "$HGRCPATH" 10 $ cat << EOF >> "$HGRCPATH"
11 > [experimental] 11 > [experimental]
12 > auto-publish = warn 12 > auto-publish = warn
13 > [alias]
14 > tgl = log --rev 'sort(\$1, "topo")' -GT '{rev}:{node|short} {desc} {phase} {branch} {topics}'
13 > EOF 15 > EOF
14 16
15 Publishing of bare branch 17 Publishing of bare branch
16 ========================= 18 =========================
17 19
43 searching for changes 45 searching for changes
44 adding changesets 46 adding changesets
45 adding manifests 47 adding manifests
46 adding file changes 48 adding file changes
47 added 1 changesets with 1 changes to 1 files 49 added 1 changesets with 1 changes to 1 files
48 $ hg log --rev 'sort(all(), "topo")' -GT '{rev}:{node|short} {desc} {phase} {branch} {topics}' 50 $ hg tgl 'all()'
49 @ 2:286d02a6e2a2 c_dB0 public default 51 @ 2:286d02a6e2a2 c_dB0 public default
50 | 52 |
51 o 1:134bc3852ad2 c_dA0 public default 53 o 1:134bc3852ad2 c_dA0 public default
52 | 54 |
53 o 0:ea207398892e ROOT public default 55 o 0:ea207398892e ROOT public default
72 searching for changes 74 searching for changes
73 adding changesets 75 adding changesets
74 adding manifests 76 adding manifests
75 adding file changes 77 adding file changes
76 added 2 changesets with 2 changes to 2 files (+2 heads) 78 added 2 changesets with 2 changes to 2 files (+2 heads)
77 $ hg log --rev 'sort(all(), "topo")' -GT '{rev}:{node|short} {desc} {phase} {branch} {topics}' 79 $ hg tgl 'all()'
78 @ 4:9bf953aa81f6 c_dD0 public default 80 @ 4:9bf953aa81f6 c_dD0 public default
79 | 81 |
80 | o 3:9d5b8e1f08a4 c_dC0 public default 82 | o 3:9d5b8e1f08a4 c_dC0 public default
81 |/ 83 |/
82 | o 2:286d02a6e2a2 c_dB0 public default 84 | o 2:286d02a6e2a2 c_dB0 public default
101 searching for changes 103 searching for changes
102 adding changesets 104 adding changesets
103 adding manifests 105 adding manifests
104 adding file changes 106 adding file changes
105 added 1 changesets with 1 changes to 1 files (+1 heads) 107 added 1 changesets with 1 changes to 1 files (+1 heads)
106 $ hg log --rev 'sort(all(), "topo")' -GT '{rev}:{node|short} {desc} {phase} {branch} {topics}' 108 $ hg tgl 'all()'
107 @ 5:0db08e758601 c_aE0 public branchA 109 @ 5:0db08e758601 c_aE0 public branchA
108 | 110 |
109 | o 4:9bf953aa81f6 c_dD0 public default 111 | o 4:9bf953aa81f6 c_dD0 public default
110 | | 112 | |
111 | | o 3:9d5b8e1f08a4 c_dC0 public default 113 | | o 3:9d5b8e1f08a4 c_dC0 public default
132 searching for changes 134 searching for changes
133 adding changesets 135 adding changesets
134 adding manifests 136 adding manifests
135 adding file changes 137 adding file changes
136 added 1 changesets with 1 changes to 1 files 138 added 1 changesets with 1 changes to 1 files
137 $ hg log --rev 'sort(all(), "topo")' -GT '{rev}:{node|short} {desc} {phase} {branch} {topics}' 139 $ hg tgl 'all()'
138 @ 6:0867c4471796 c_dF0 draft default foo 140 @ 6:0867c4471796 c_dF0 draft default foo
139 | 141 |
140 o 4:9bf953aa81f6 c_dD0 public default 142 o 4:9bf953aa81f6 c_dD0 public default
141 | 143 |
142 | o 3:9d5b8e1f08a4 c_dC0 public default 144 | o 3:9d5b8e1f08a4 c_dC0 public default
167 searching for changes 169 searching for changes
168 adding changesets 170 adding changesets
169 adding manifests 171 adding manifests
170 adding file changes 172 adding file changes
171 added 2 changesets with 2 changes to 2 files 173 added 2 changesets with 2 changes to 2 files
172 $ hg log --rev 'sort(all(), "topo")' -GT '{rev}:{node|short} {desc} {phase} {branch} {topics}' 174 $ hg tgl 'all()'
173 @ 8:858be9a8daaf c_dH0 draft default bar 175 @ 8:858be9a8daaf c_dH0 draft default bar
174 | 176 |
175 o 7:0e4041d324d0 c_dG0 public default 177 o 7:0e4041d324d0 c_dG0 public default
176 | 178 |
177 o 3:9d5b8e1f08a4 c_dC0 public default 179 o 3:9d5b8e1f08a4 c_dC0 public default
208 searching for changes 210 searching for changes
209 adding changesets 211 adding changesets
210 adding manifests 212 adding manifests
211 adding file changes 213 adding file changes
212 added 3 changesets with 3 changes to 3 files 214 added 3 changesets with 3 changes to 3 files
213 $ hg log --rev 'sort(all(), "topo")' -GT '{rev}:{node|short} {desc} {phase} {branch} {topics}' 215 $ hg tgl 'all()'
214 @ 11:b0a00ebdfd24 c_aK0 public branchA 216 @ 11:b0a00ebdfd24 c_aK0 public branchA
215 | 217 |
216 o 5:0db08e758601 c_aE0 public branchA 218 o 5:0db08e758601 c_aE0 public branchA
217 | 219 |
218 | o 10:abb5c84eb9e9 c_dJ0 draft default bar 220 | o 10:abb5c84eb9e9 c_dJ0 draft default bar
251 searching for changes 253 searching for changes
252 adding changesets 254 adding changesets
253 adding manifests 255 adding manifests
254 adding file changes 256 adding file changes
255 added 1 changesets with 0 changes to 0 files (-1 heads) 257 added 1 changesets with 0 changes to 0 files (-1 heads)
256 $ hg log --rev 'sort(all(), "topo")' -GT '{rev}:{node|short} {desc} {phase} {branch} {topics}' 258 $ hg tgl 'all()'
257 @ 12:a6f9f8c6c6cc c_dL0 public default 259 @ 12:a6f9f8c6c6cc c_dL0 public default
258 |\ 260 |\
259 | o 9:4b5570d89f0f c_dI0 public default 261 | o 9:4b5570d89f0f c_dI0 public default
260 | | 262 | |
261 o | 6:0867c4471796 c_dF0 public default 263 o | 6:0867c4471796 c_dF0 public default
278 | | 280 | |
279 | o 5:0db08e758601 c_aE0 public branchA 281 | o 5:0db08e758601 c_aE0 public branchA
280 |/ 282 |/
281 o 0:ea207398892e ROOT public default 283 o 0:ea207398892e ROOT public default
282 284
283 $ hg log -R ../bare-branch-server --rev 'sort(all(), "topo")' -GT '{rev}:{node|short} {desc} {phase} {branch} {topics}' 285 $ hg tgl 'all()' -R ../bare-branch-server
284 o 12:a6f9f8c6c6cc c_dL0 public default 286 o 12:a6f9f8c6c6cc c_dL0 public default
285 |\ 287 |\
286 | o 9:4b5570d89f0f c_dI0 public default 288 | o 9:4b5570d89f0f c_dI0 public default
287 | | 289 | |
288 o | 6:0867c4471796 c_dF0 public default 290 o | 6:0867c4471796 c_dF0 public default