##// END OF EJS Templates
obsolescence: add test case D-2 for obsolescence markers exchange...
Pierre-Yves David -
r31970:7fa018eb default
parent child Browse files
Show More
@@ -0,0 +1,111 b''
1 ============================================
2 Testing obsolescence markers push: Cases D.2
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 D: Partial Information Case
13 TestCase 2: missing prune target (prune in "pushed set")
14
15 D.2 missing prune target (prune in "pushed set")
16 ================================================
17
18 .. {{{
19 .. A ΓΈβ‡ βœ• A'
20 .. |/
21 .. ● O
22 .. }}}
23 ..
24 .. Marker exist from:
25 ..
26 .. * A' succeed to A
27 .. * A' (prune)
28 ..
29 .. Command runs:
30 ..
31 .. * hg push
32 ..
33 .. Expected exchange:
34 ..
35 .. * `A ΓΈβ‡ o A'`
36 .. * A' (prune)
37
38 Setup
39 -----
40
41 $ . $TESTDIR/testlib/exchange-obsmarker-util.sh
42
43 Initial
44
45 $ setuprepos D.2
46 creating test repo for test case D.2
47 - pulldest
48 - main
49 - pushdest
50 cd into `main` and proceed with env setup
51 $ cd main
52 $ mkcommit A0
53 $ hg up -q 0
54 $ mkcommit A1
55 created new head
56 $ hg debugobsolete `getid 'desc(A0)'` `getid 'desc(A1)'`
57 $ hg prune --date '0 0' .
58 $ hg strip --hidden -q 'desc(A1)'
59 $ hg log -G --hidden
60 x 28b51eb45704 (draft): A0
61 |
62 @ a9bdc8b26820 (public): O
63
64 $ inspect_obsmarkers
65 obsstore content
66 ================
67 28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'}
68 e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {a9bdc8b26820b1b87d585b82eb0ceb4a2ecdbc04} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'}
69 $ cd ..
70 $ cd ..
71
72 Actual Test
73 -----------
74
75 $ dotest D.2
76 ## Running testcase D.2
77 ## initial state
78 # obstore: main
79 28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'}
80 e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {a9bdc8b26820b1b87d585b82eb0ceb4a2ecdbc04} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'}
81 # obstore: pushdest
82 # obstore: pulldest
83 ## pushing from main to pushdest
84 pushing to pushdest
85 searching for changes
86 no changes found
87 remote: 2 new obsolescence markers
88 ## post push state
89 # obstore: main
90 28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'}
91 e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {a9bdc8b26820b1b87d585b82eb0ceb4a2ecdbc04} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'}
92 # obstore: pushdest
93 28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'}
94 e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {a9bdc8b26820b1b87d585b82eb0ceb4a2ecdbc04} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'}
95 # obstore: pulldest
96 ## pulling from main into pulldest
97 pulling from main
98 searching for changes
99 no changes found
100 2 new obsolescence markers
101 ## post pull state
102 # obstore: main
103 28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'}
104 e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {a9bdc8b26820b1b87d585b82eb0ceb4a2ecdbc04} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'}
105 # obstore: pushdest
106 28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'}
107 e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {a9bdc8b26820b1b87d585b82eb0ceb4a2ecdbc04} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'}
108 # obstore: pulldest
109 28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'}
110 e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {a9bdc8b26820b1b87d585b82eb0ceb4a2ecdbc04} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'}
111
General Comments 0
You need to be logged in to leave comments. Login now