comparison tests/test-push-checkheads-multibranches-E3.t @ 6315:ebc2dea354a2

tests: switch to double//slash branch in many tests We want to make sure cases with double slash in branch name will continue to be handled correctly, and for that we need more tests that use unusual branch names like this.
author Anton Shestakov <av6@dwimlabs.net>
date Sun, 30 Oct 2022 15:22:16 +0400
parents f0d46ffbf1bb
children 60daa7887c49
comparison
equal deleted inserted replaced
6235:318b81560f8c 6315:ebc2dea354a2
12 TestCase 8: moving only part of the interleaved branch away, creating 2 heads 12 TestCase 8: moving only part of the interleaved branch away, creating 2 heads
13 13
14 .. old-state: 14 .. old-state:
15 .. 15 ..
16 .. * 2-changeset on branch default 16 .. * 2-changeset on branch default
17 .. * 1-changeset on branch Z (between the two other) 17 .. * 1-changeset on branch double//slash (between the two other)
18 .. 18 ..
19 .. new-state: 19 .. new-state:
20 .. 20 ..
21 .. * 2-changeset on branch default, on untouched, the other moved 21 .. * 2-changeset on branch default, on untouched, the other moved
22 .. * 1-changeset on branch Z (at the same location) 22 .. * 1-changeset on branch double//slash (at the same location)
23 .. 23 ..
24 .. expected-result: 24 .. expected-result:
25 .. 25 ..
26 .. * push rejected 26 .. * push rejected
27 .. 27 ..
46 $ setuprepos 46 $ setuprepos
47 creating basic server and client repo 47 creating basic server and client repo
48 updating to branch default 48 updating to branch default
49 2 files updated, 0 files merged, 0 files removed, 0 files unresolved 49 2 files updated, 0 files merged, 0 files removed, 0 files unresolved
50 $ cd client 50 $ cd client
51 $ hg branch Z 51 $ hg branch double//slash
52 marked working directory as branch Z 52 marked working directory as branch double//slash
53 (branches are permanent and global, did you want a bookmark?) 53 (branches are permanent and global, did you want a bookmark?)
54 $ mkcommit B0 54 $ mkcommit B0
55 $ hg branch default --force 55 $ hg branch default --force
56 marked working directory as branch default 56 marked working directory as branch default
57 $ mkcommit C0 57 $ mkcommit C0
73 1 new obsolescence markers 73 1 new obsolescence markers
74 obsoleted 1 changesets 74 obsoleted 1 changesets
75 $ hg log -G --hidden 75 $ hg log -G --hidden
76 @ dc44c53142f0 (draft): C1 76 @ dc44c53142f0 (draft): C1
77 | 77 |
78 | x afc55ba2ce61 (draft): C0 78 | x c7f1f02ffefc (draft): C0
79 | | 79 | |
80 | o 93e5c1321ece (draft): B0 80 | o 1fd532b11e77 (draft): B0
81 | | 81 | |
82 | o 8aaa48160adc (draft): A0 82 | o 8aaa48160adc (draft): A0
83 |/ 83 |/
84 o 1e4be0697311 (public): root 84 o 1e4be0697311 (public): root
85 85