Mercurial > evolve
annotate tests/test-push-checkheads-multibranches-E2.t @ 6783:ccc8352c7133
topic: add more branchcache entries to test-topic-flow-publish-flag.t
It seems these new entries started appearing after the recent-ish refactoring
of branchcache in core. Now the server and the client have the same branch
cache data on disk, which is probably for the best.
The actual output with changeset hashes is:
branch2-base:c0155e8ec55a9b46d415d5b13a319d0c80e26e9d o double//slash
branch2-immutable:c0155e8ec55a9b46d415d5b13a319d0c80e26e9d o double//slash
branch2-served:256a2cb64fd8ada4ff18d57606d212f094cb50fb o double//slash
c0155e8ec55a is public, so it's correct to be in "base" and "immutable" repo
views. 256a2cb64fd8 is draft (without topic), so it's expected to be in the
"served" view.
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Thu, 13 Jun 2024 15:45:02 +0400 |
parents | 60daa7887c49 |
children | b1d010b2e6c4 |
rev | line source |
---|---|
5223
11c359b4071d
head-checking: backport fix from 7d5455b988ec
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
1 ==================================== |
11c359b4071d
head-checking: backport fix from 7d5455b988ec
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
2 Testing head checking code: Case E-2 |
11c359b4071d
head-checking: backport fix from 7d5455b988ec
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
3 ==================================== |
11c359b4071d
head-checking: backport fix from 7d5455b988ec
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
4 |
11c359b4071d
head-checking: backport fix from 7d5455b988ec
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
5 Mercurial checks for the introduction of new heads on push. Evolution comes |
11c359b4071d
head-checking: backport fix from 7d5455b988ec
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
6 into play to detect if existing branches on the server are being replaced by |
11c359b4071d
head-checking: backport fix from 7d5455b988ec
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
7 some of the new one we push. |
11c359b4071d
head-checking: backport fix from 7d5455b988ec
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
8 |
11c359b4071d
head-checking: backport fix from 7d5455b988ec
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
9 This case is part of a series of tests checking this behavior. |
11c359b4071d
head-checking: backport fix from 7d5455b988ec
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
10 |
11c359b4071d
head-checking: backport fix from 7d5455b988ec
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
11 Category E: case involving changeset on multiple branch |
11c359b4071d
head-checking: backport fix from 7d5455b988ec
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
12 TestCase 8: moving interleaved branch away from each other |
11c359b4071d
head-checking: backport fix from 7d5455b988ec
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
13 |
11c359b4071d
head-checking: backport fix from 7d5455b988ec
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
14 .. old-state: |
11c359b4071d
head-checking: backport fix from 7d5455b988ec
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
15 .. |
11c359b4071d
head-checking: backport fix from 7d5455b988ec
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
16 .. * 2-changeset on branch default |
6315
ebc2dea354a2
tests: switch to double//slash branch in many tests
Anton Shestakov <av6@dwimlabs.net>
parents:
5223
diff
changeset
|
17 .. * 1-changeset on branch double//slash (between the two other) |
5223
11c359b4071d
head-checking: backport fix from 7d5455b988ec
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
18 .. |
11c359b4071d
head-checking: backport fix from 7d5455b988ec
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
19 .. new-state: |
11c359b4071d
head-checking: backport fix from 7d5455b988ec
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
20 .. |
11c359b4071d
head-checking: backport fix from 7d5455b988ec
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
21 .. * 2-changeset on branch default, aligned |
6315
ebc2dea354a2
tests: switch to double//slash branch in many tests
Anton Shestakov <av6@dwimlabs.net>
parents:
5223
diff
changeset
|
22 .. * 1-changeset on branch double//slash (at the same location) |
5223
11c359b4071d
head-checking: backport fix from 7d5455b988ec
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
23 .. |
11c359b4071d
head-checking: backport fix from 7d5455b988ec
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
24 .. expected-result: |
11c359b4071d
head-checking: backport fix from 7d5455b988ec
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
25 .. |
11c359b4071d
head-checking: backport fix from 7d5455b988ec
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
26 .. * push allowed |
11c359b4071d
head-checking: backport fix from 7d5455b988ec
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
27 .. |
11c359b4071d
head-checking: backport fix from 7d5455b988ec
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
28 .. graph-summary: |
11c359b4071d
head-checking: backport fix from 7d5455b988ec
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
29 .. |
11c359b4071d
head-checking: backport fix from 7d5455b988ec
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
30 .. C ø⇠◔ C' |
11c359b4071d
head-checking: backport fix from 7d5455b988ec
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
31 .. | | |
11c359b4071d
head-checking: backport fix from 7d5455b988ec
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
32 .. B ◔ | |
11c359b4071d
head-checking: backport fix from 7d5455b988ec
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
33 .. | | |
11c359b4071d
head-checking: backport fix from 7d5455b988ec
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
34 .. A ø⇠◔ A' |
11c359b4071d
head-checking: backport fix from 7d5455b988ec
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
35 .. |/ |
11c359b4071d
head-checking: backport fix from 7d5455b988ec
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
36 .. ● |
11c359b4071d
head-checking: backport fix from 7d5455b988ec
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
37 |
11c359b4071d
head-checking: backport fix from 7d5455b988ec
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
38 $ . $TESTDIR/testlib/topic_setup.sh |
11c359b4071d
head-checking: backport fix from 7d5455b988ec
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
39 $ . $TESTDIR/testlib/push-checkheads-util.sh |
11c359b4071d
head-checking: backport fix from 7d5455b988ec
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
40 |
11c359b4071d
head-checking: backport fix from 7d5455b988ec
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
41 Test setup |
11c359b4071d
head-checking: backport fix from 7d5455b988ec
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
42 ---------- |
11c359b4071d
head-checking: backport fix from 7d5455b988ec
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
43 |
11c359b4071d
head-checking: backport fix from 7d5455b988ec
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
44 $ mkdir E1 |
11c359b4071d
head-checking: backport fix from 7d5455b988ec
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
45 $ cd E1 |
11c359b4071d
head-checking: backport fix from 7d5455b988ec
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
46 $ setuprepos |
11c359b4071d
head-checking: backport fix from 7d5455b988ec
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
47 creating basic server and client repo |
11c359b4071d
head-checking: backport fix from 7d5455b988ec
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
48 updating to branch default |
11c359b4071d
head-checking: backport fix from 7d5455b988ec
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
49 2 files updated, 0 files merged, 0 files removed, 0 files unresolved |
11c359b4071d
head-checking: backport fix from 7d5455b988ec
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
50 $ cd client |
6315
ebc2dea354a2
tests: switch to double//slash branch in many tests
Anton Shestakov <av6@dwimlabs.net>
parents:
5223
diff
changeset
|
51 $ hg branch double//slash |
ebc2dea354a2
tests: switch to double//slash branch in many tests
Anton Shestakov <av6@dwimlabs.net>
parents:
5223
diff
changeset
|
52 marked working directory as branch double//slash |
5223
11c359b4071d
head-checking: backport fix from 7d5455b988ec
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
53 (branches are permanent and global, did you want a bookmark?) |
11c359b4071d
head-checking: backport fix from 7d5455b988ec
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
54 $ mkcommit B0 |
11c359b4071d
head-checking: backport fix from 7d5455b988ec
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
55 $ hg branch default --force |
11c359b4071d
head-checking: backport fix from 7d5455b988ec
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
56 marked working directory as branch default |
11c359b4071d
head-checking: backport fix from 7d5455b988ec
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
57 $ mkcommit C0 |
11c359b4071d
head-checking: backport fix from 7d5455b988ec
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
58 created new head |
11c359b4071d
head-checking: backport fix from 7d5455b988ec
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
59 (consider using topic for lightweight branches. See 'hg help topic') |
11c359b4071d
head-checking: backport fix from 7d5455b988ec
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
60 $ hg push --new-branch |
11c359b4071d
head-checking: backport fix from 7d5455b988ec
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
61 pushing to $TESTTMP/E1/server |
11c359b4071d
head-checking: backport fix from 7d5455b988ec
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
62 searching for changes |
11c359b4071d
head-checking: backport fix from 7d5455b988ec
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
63 adding changesets |
11c359b4071d
head-checking: backport fix from 7d5455b988ec
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
64 adding manifests |
11c359b4071d
head-checking: backport fix from 7d5455b988ec
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
65 adding file changes |
11c359b4071d
head-checking: backport fix from 7d5455b988ec
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
66 added 2 changesets with 2 changes to 2 files |
11c359b4071d
head-checking: backport fix from 7d5455b988ec
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
67 $ hg up 0 |
11c359b4071d
head-checking: backport fix from 7d5455b988ec
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
68 0 files updated, 0 files merged, 3 files removed, 0 files unresolved |
11c359b4071d
head-checking: backport fix from 7d5455b988ec
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
69 $ mkcommit A1 |
11c359b4071d
head-checking: backport fix from 7d5455b988ec
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
70 created new head |
11c359b4071d
head-checking: backport fix from 7d5455b988ec
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
71 (consider using topic for lightweight branches. See 'hg help topic') |
11c359b4071d
head-checking: backport fix from 7d5455b988ec
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
72 $ mkcommit C1 |
11c359b4071d
head-checking: backport fix from 7d5455b988ec
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
73 $ hg debugobsolete `getid "desc(A0)" ` `getid "desc(A1)"` |
11c359b4071d
head-checking: backport fix from 7d5455b988ec
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
74 1 new obsolescence markers |
11c359b4071d
head-checking: backport fix from 7d5455b988ec
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
75 obsoleted 1 changesets |
11c359b4071d
head-checking: backport fix from 7d5455b988ec
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
76 2 new orphan changesets |
11c359b4071d
head-checking: backport fix from 7d5455b988ec
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
77 $ hg debugobsolete `getid "desc(C0)" ` `getid "desc(C1)"` |
11c359b4071d
head-checking: backport fix from 7d5455b988ec
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
78 1 new obsolescence markers |
11c359b4071d
head-checking: backport fix from 7d5455b988ec
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
79 obsoleted 1 changesets |
11c359b4071d
head-checking: backport fix from 7d5455b988ec
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
80 $ hg log -G --hidden |
6259
fc60328270ac
tests: add branch to checkheads-related log output
Anton Shestakov <av6@dwimlabs.net>
parents:
5223
diff
changeset
|
81 @ 0c76bc104656 [default] (draft): C1 |
5223
11c359b4071d
head-checking: backport fix from 7d5455b988ec
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
82 | |
6259
fc60328270ac
tests: add branch to checkheads-related log output
Anton Shestakov <av6@dwimlabs.net>
parents:
5223
diff
changeset
|
83 o f6082bc4ffef [default] (draft): A1 |
5223
11c359b4071d
head-checking: backport fix from 7d5455b988ec
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
84 | |
6381
60daa7887c49
branching: merge test changes from before topic namespaces
Anton Shestakov <av6@dwimlabs.net>
diff
changeset
|
85 | x c7f1f02ffefc [default] (draft): C0 |
5223
11c359b4071d
head-checking: backport fix from 7d5455b988ec
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
86 | | |
6381
60daa7887c49
branching: merge test changes from before topic namespaces
Anton Shestakov <av6@dwimlabs.net>
diff
changeset
|
87 | * 1fd532b11e77 [double//slash] (draft): B0 |
5223
11c359b4071d
head-checking: backport fix from 7d5455b988ec
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
88 | | |
6259
fc60328270ac
tests: add branch to checkheads-related log output
Anton Shestakov <av6@dwimlabs.net>
parents:
5223
diff
changeset
|
89 | x 8aaa48160adc [default] (draft): A0 |
5223
11c359b4071d
head-checking: backport fix from 7d5455b988ec
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
90 |/ |
6259
fc60328270ac
tests: add branch to checkheads-related log output
Anton Shestakov <av6@dwimlabs.net>
parents:
5223
diff
changeset
|
91 o 1e4be0697311 [default] (public): root |
5223
11c359b4071d
head-checking: backport fix from 7d5455b988ec
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
92 |
11c359b4071d
head-checking: backport fix from 7d5455b988ec
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
93 |
11c359b4071d
head-checking: backport fix from 7d5455b988ec
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
94 Actual testing |
11c359b4071d
head-checking: backport fix from 7d5455b988ec
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
95 -------------- |
11c359b4071d
head-checking: backport fix from 7d5455b988ec
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
96 |
11c359b4071d
head-checking: backport fix from 7d5455b988ec
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
97 $ hg push -r 'desc("C1")' |
11c359b4071d
head-checking: backport fix from 7d5455b988ec
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
98 pushing to $TESTTMP/E1/server |
11c359b4071d
head-checking: backport fix from 7d5455b988ec
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
99 searching for changes |
11c359b4071d
head-checking: backport fix from 7d5455b988ec
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
100 adding changesets |
11c359b4071d
head-checking: backport fix from 7d5455b988ec
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
101 adding manifests |
11c359b4071d
head-checking: backport fix from 7d5455b988ec
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
102 adding file changes |
11c359b4071d
head-checking: backport fix from 7d5455b988ec
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
103 added 2 changesets with 2 changes to 2 files (+1 heads) |
11c359b4071d
head-checking: backport fix from 7d5455b988ec
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
104 2 new obsolescence markers |
11c359b4071d
head-checking: backport fix from 7d5455b988ec
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
105 obsoleted 2 changesets |
11c359b4071d
head-checking: backport fix from 7d5455b988ec
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
106 1 new orphan changesets |
11c359b4071d
head-checking: backport fix from 7d5455b988ec
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
107 |
11c359b4071d
head-checking: backport fix from 7d5455b988ec
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
108 $ cd ../.. |