Mercurial > evolve
comparison tests/test-single-head-obsolescence-named-branch-A5.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 5: Obsoleting a merge reveals two heads | 13 TestCase 5: Obsoleting a merge reveals two heads |
14 | 14 |
15 .. old-state: | 15 .. old-state: |
16 .. | 16 .. |
17 .. * 3 changesets on branch default (2 on their own branch + 1 merge) | 17 .. * 3 changesets on branch default (2 on their own branch + 1 merge) |
18 .. * 1 changeset on branch Z (children of the merge) | 18 .. * 1 changeset on branch double//slash (children of the merge) |
19 .. | 19 .. |
20 .. new-state: | 20 .. new-state: |
21 .. | 21 .. |
22 .. * 2 changesets on branch default (merge is obsolete) each a head | 22 .. * 2 changesets on branch default (merge is obsolete) each a head |
23 .. * 1 changeset on branch Z keeping the merge visible | 23 .. * 1 changeset on branch double//slash keeping the merge visible |
24 .. | 24 .. |
25 .. expected-result: | 25 .. expected-result: |
26 .. | 26 .. |
27 .. * 2 heads detected (because we skip the merge). | 27 .. * 2 heads detected (because we skip the merge). |
28 .. | 28 .. |
29 .. graph-summary: | 29 .. graph-summary: |
30 .. | 30 .. |
31 .. C ● (branch Z) | 31 .. C ● (branch double//slash) |
32 .. | | 32 .. | |
33 .. M ⊗ | 33 .. M ⊗ |
34 .. |\ | 34 .. |\ |
35 .. A ● ● B | 35 .. A ● ● B |
36 .. |/ | 36 .. |/ |
56 (consider using topic for lightweight branches. See 'hg help topic') | 56 (consider using topic for lightweight branches. See 'hg help topic') |
57 $ hg merge | 57 $ hg merge |
58 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | 58 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
59 (branch merge, don't forget to commit) | 59 (branch merge, don't forget to commit) |
60 $ hg ci -m 'M0' | 60 $ hg ci -m 'M0' |
61 $ hg branch Z | 61 $ hg branch double//slash |
62 marked working directory as branch Z | 62 marked working directory as branch double//slash |
63 (branches are permanent and global, did you want a bookmark?) | 63 (branches are permanent and global, did you want a bookmark?) |
64 $ mkcommit C0 | 64 $ mkcommit C0 |
65 $ hg push --new-branch | 65 $ hg push --new-branch |
66 pushing to $TESTTMP/A5/server | 66 pushing to $TESTTMP/A5/server |
67 searching for changes | 67 searching for changes |
82 $ hg log -G --hidden | 82 $ hg log -G --hidden |
83 @ 262c8c798096 [default] (draft): B1 | 83 @ 262c8c798096 [default] (draft): B1 |
84 | | 84 | |
85 o f6082bc4ffef [default] (draft): A1 | 85 o f6082bc4ffef [default] (draft): A1 |
86 | | 86 | |
87 | * 61c95483cc12 [Z] (draft): C0 | 87 | * fa0df4a7106c [double//slash] (draft): C0 |
88 | | | 88 | | |
89 | x 14d3d4d41d1a [default] (draft): M0 | 89 | x 14d3d4d41d1a [default] (draft): M0 |
90 | |\ | 90 | |\ |
91 +---o 74ff5441d343 [default] (draft): B0 | 91 +---o 74ff5441d343 [default] (draft): B0 |
92 | | | 92 | | |