comparison tests/test-single-head-obsolescence-named-branch-A2.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 8cc7732a29bf
children b1d010b2e6c4
comparison
equal deleted inserted replaced
6235:318b81560f8c 6315:ebc2dea354a2
13 TestCase 2: A branch is split in two, effectively creating two heads 13 TestCase 2: A branch is split in two, effectively creating two heads
14 14
15 .. old-state: 15 .. old-state:
16 .. 16 ..
17 .. * 2 changesets on branch default 17 .. * 2 changesets on branch default
18 .. * 2 changesets on branch Z on top of them. 18 .. * 2 changesets on branch double//slash on top of them.
19 .. 19 ..
20 .. new-state: 20 .. new-state:
21 .. 21 ..
22 .. * 2 changesets on branch Z at the same location 22 .. * 2 changesets on branch double//slash at the same location
23 .. * 1 changeset on branch default unchanged 23 .. * 1 changeset on branch default unchanged
24 .. * 1 changeset on branch default superseding the other ones 24 .. * 1 changeset on branch default superseding the other ones
25 .. 25 ..
26 .. expected-result: 26 .. expected-result:
27 .. 27 ..
28 .. * two heads detected 28 .. * two heads detected
29 .. 29 ..
30 .. graph-summary: 30 .. graph-summary:
31 .. 31 ..
32 .. D ● (branch Z) 32 .. D ● (branch double//slash)
33 .. | 33 .. |
34 .. C ● (branch Z) 34 .. C ● (branch double//slash)
35 .. | 35 .. |
36 .. B ø⇠◔ B' 36 .. B ø⇠◔ B'
37 .. | | 37 .. | |
38 .. A ● | 38 .. A ● |
39 .. |/ 39 .. |/
51 creating basic server and client repo 51 creating basic server and client repo
52 updating to branch default 52 updating to branch default
53 2 files updated, 0 files merged, 0 files removed, 0 files unresolved 53 2 files updated, 0 files merged, 0 files removed, 0 files unresolved
54 $ cd client 54 $ cd client
55 $ mkcommit B0 55 $ mkcommit B0
56 $ hg branch Z 56 $ hg branch double//slash
57 marked working directory as branch Z 57 marked working directory as branch double//slash
58 (branches are permanent and global, did you want a bookmark?) 58 (branches are permanent and global, did you want a bookmark?)
59 $ mkcommit C0 59 $ mkcommit C0
60 $ mkcommit D0 60 $ mkcommit D0
61 $ hg push --new-branch 61 $ hg push --new-branch
62 pushing to $TESTTMP/A2/server 62 pushing to $TESTTMP/A2/server
75 obsoleted 1 changesets 75 obsoleted 1 changesets
76 2 new orphan changesets 76 2 new orphan changesets
77 $ hg log -G --hidden 77 $ hg log -G --hidden
78 @ 25c56d33e4c4 [default] (draft): B1 78 @ 25c56d33e4c4 [default] (draft): B1
79 | 79 |
80 | * cdf1dbb37a67 [Z] (draft): D0 80 | * ce55942d01c7 [double//slash] (draft): D0
81 | | 81 | |
82 | * 3213e3e16c67 [Z] (draft): C0 82 | * 33628c681bad [double//slash] (draft): C0
83 | | 83 | |
84 | x d73caddc5533 [default] (draft): B0 84 | x d73caddc5533 [default] (draft): B0
85 | | 85 | |
86 | o 8aaa48160adc [default] (draft): A0 86 | o 8aaa48160adc [default] (draft): A0
87 |/ 87 |/