Show More
@@ -0,0 +1,93 | |||||
|
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 | $ hg log -G --hidden | |||
|
55 | @ f5bc6836db60 (draft): A | |||
|
56 | | | |||
|
57 | o a9bdc8b26820 (public): O | |||
|
58 | ||||
|
59 | $ inspect_obsmarkers | |||
|
60 | obsstore content | |||
|
61 | ================ | |||
|
62 | aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa f5bc6836db60e308a17ba08bf050154ba9c4fad7 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |||
|
63 | $ cd .. | |||
|
64 | $ cd .. | |||
|
65 | ||||
|
66 | Actual Test | |||
|
67 | ----------------------------------- | |||
|
68 | ||||
|
69 | $ dotest A.7 O | |||
|
70 | ## Running testcase A.7 | |||
|
71 | # testing echange of "O" (a9bdc8b26820) | |||
|
72 | ## initial state | |||
|
73 | # obstore: main | |||
|
74 | aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa f5bc6836db60e308a17ba08bf050154ba9c4fad7 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |||
|
75 | # obstore: pushdest | |||
|
76 | # obstore: pulldest | |||
|
77 | ## pushing "O" from main to pushdest | |||
|
78 | pushing to pushdest | |||
|
79 | searching for changes | |||
|
80 | no changes found | |||
|
81 | ## post push state | |||
|
82 | # obstore: main | |||
|
83 | aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa f5bc6836db60e308a17ba08bf050154ba9c4fad7 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |||
|
84 | # obstore: pushdest | |||
|
85 | # obstore: pulldest | |||
|
86 | ## pulling "a9bdc8b26820" from main into pulldest | |||
|
87 | pulling from main | |||
|
88 | no changes found | |||
|
89 | ## post pull state | |||
|
90 | # obstore: main | |||
|
91 | aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa f5bc6836db60e308a17ba08bf050154ba9c4fad7 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |||
|
92 | # obstore: pushdest | |||
|
93 | # obstore: pulldest |
General Comments 0
You need to be logged in to leave comments.
Login now