Debian Codegraph @

tests/test-exchange-obsmarkers-case-A7.t

raw
1 ============================================
2 Testing obsolescence markers push: Cases A.7
3 ============================================
4
5 Mercurial pushes obsolescences markers relevant to the "pushed-set", the set of
6 all changesets that requested to be "in sync" after the push (even if they are
7 already on both side).
8
9 This test belongs to a series of tests checking such set is properly computed
10 and applied. This does not tests "obsmarkers" discovery capabilities.
11
12 Category A: simple cases
13 TestCase 7: markers one non targeted common changeset
14
15 A.7 non targeted common changeset
16 =================================
17
18 .. {{{
19 .. ⇠◕ A
20 .. |
21 .. ● O
22 .. }}}
23 ..
24 .. Markers exist from:
25 ..
26 .. * Chain from A
27 ..
28 .. Command run:
29 ..
30 .. * hg push -r O
31 ..
32 .. Expected exchange:
33 ..
34 .. * ø
35
36 Setup
37 -----
38
39 $ . $TESTDIR/testlib/exchange-obsmarker-util.sh
40
41 Initial
42
43 $ setuprepos A.7
44 creating test repo for test case A.7
45 - pulldest
46 - main
47 - pushdest
48 cd into `main` and proceed with env setup
49 $ cd main
50 $ mkcommit A
51 $ hg push -q ../pushdest
52 $ hg push -q ../pulldest
53 $ hg debugobsolete aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa `getid 'desc(A)'`
54 1 new obsolescence markers
55 $ hg log -G --hidden
56 @ f5bc6836db60 (draft): A
57 |
58 o a9bdc8b26820 (public): O
59
60 $ inspect_obsmarkers
61 obsstore content
62 ================
63 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa f5bc6836db60e308a17ba08bf050154ba9c4fad7 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'}
64 $ cd ..
65 $ cd ..
66
67 Actual Test
68 -----------------------------------
69
70 $ dotest A.7 O
71 ## Running testcase A.7
72 # testing echange of "O" (a9bdc8b26820)
73 ## initial state
74 # obstore: main
75 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa f5bc6836db60e308a17ba08bf050154ba9c4fad7 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'}
76 # obstore: pushdest
77 # obstore: pulldest
78 ## pushing "O" from main to pushdest
79 pushing to pushdest
80 searching for changes
81 no changes found
82 ## post push state
83 # obstore: main
84 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa f5bc6836db60e308a17ba08bf050154ba9c4fad7 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'}
85 # obstore: pushdest
86 # obstore: pulldest
87 ## pulling "a9bdc8b26820" from main into pulldest
88 pulling from main
89 no changes found
90 ## post pull state
91 # obstore: main
92 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa f5bc6836db60e308a17ba08bf050154ba9c4fad7 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'}
93 # obstore: pushdest
94 # obstore: pulldest