Mercurial > evolve
comparison tests/test-topic-change.t @ 5969:f8ab6ad1ffc0
tests: drop 3.7 compatibility for log -G missing parent edge
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Sat, 19 Jun 2021 22:33:38 +0300 |
parents | c2fab88e6d60 |
children | c3d66af4cb07 |
comparison
equal
deleted
inserted
replaced
5968:20998c86dde5 | 5969:f8ab6ad1ffc0 |
---|---|
2 ====================================== | 2 ====================================== |
3 | 3 |
4 $ . "$TESTDIR/testlib/topic_setup.sh" | 4 $ . "$TESTDIR/testlib/topic_setup.sh" |
5 $ cat <<EOF >> $HGRCPATH | 5 $ cat <<EOF >> $HGRCPATH |
6 > [experimental] | 6 > [experimental] |
7 > # disable the new graph style until we drop 3.7 support | |
8 > graphstyle.missing = | | |
9 > evolution=createmarkers, allowunstable | 7 > evolution=createmarkers, allowunstable |
10 > [phases] | 8 > [phases] |
11 > publish=false | 9 > publish=false |
12 > [alias] | 10 > [alias] |
13 > glog = log -G -T "{rev}:{node|short} \{{topic}}\n{desc} ({bookmarks})\n\n" | 11 > glog = log -G -T "{rev}:{node|short} \{{topic}}\n{desc} ({bookmarks})\n\n" |
141 (see 'hg help topics' for more information) | 139 (see 'hg help topics' for more information) |
142 changed topic on 1 changesets to "foobar" | 140 changed topic on 1 changesets to "foobar" |
143 $ hg glog -r . | 141 $ hg glog -r . |
144 @ 20:c2d6b7df5dcf {foobar} | 142 @ 20:c2d6b7df5dcf {foobar} |
145 | Added h () | 143 | Added h () |
146 | | 144 ~ |
147 | 145 |
148 Changing topic in between the stack | 146 Changing topic in between the stack |
149 | 147 |
150 $ hg topic -r 9::10 --current | 148 $ hg topic -r 9::10 --current |
151 5 new orphan changesets | 149 5 new orphan changesets |
226 active topic 'wat' grew its first changeset | 224 active topic 'wat' grew its first changeset |
227 (see 'hg help topics' for more information) | 225 (see 'hg help topics' for more information) |
228 $ hg glog -r . | 226 $ hg glog -r . |
229 @ 28:61470c956807 {wat} | 227 @ 28:61470c956807 {wat} |
230 | Added h () | 228 | Added h () |
231 | | 229 ~ |
232 | 230 |
233 Clear the current topic and amending | 231 Clear the current topic and amending |
234 | 232 |
235 $ hg topic --clear | 233 $ hg topic --clear |
236 $ hg ci --amend | 234 $ hg ci --amend |
237 $ hg glog -r . | 235 $ hg glog -r . |
238 @ 29:b584fa49f42e {} | 236 @ 29:b584fa49f42e {} |
239 | Added h () | 237 | Added h () |
240 | | 238 ~ |
241 | 239 |
242 When the changeset does not has a topic but we have an active topic | 240 When the changeset does not has a topic but we have an active topic |
243 | 241 |
244 $ hg topic watwat | 242 $ hg topic watwat |
245 marked working directory as topic: watwat | 243 marked working directory as topic: watwat |
247 active topic 'watwat' grew its first changeset | 245 active topic 'watwat' grew its first changeset |
248 (see 'hg help topics' for more information) | 246 (see 'hg help topics' for more information) |
249 $ hg glog -r . | 247 $ hg glog -r . |
250 @ 30:a24c31c35013 {watwat} | 248 @ 30:a24c31c35013 {watwat} |
251 | Added h () | 249 | Added h () |
252 | | 250 ~ |
253 | 251 |
254 Testing changing topics on public changeset | 252 Testing changing topics on public changeset |
255 ------------------------------------------- | 253 ------------------------------------------- |
256 | 254 |
257 $ hg phase -r 8 -p | 255 $ hg phase -r 8 -p |