|
1 |
|
2 |
|
3 Initial setup |
|
4 |
|
5 $ . $TESTDIR/_exc-util.sh |
|
6 |
|
7 === D.2 missing prune target (prune in "pushed set") === |
|
8 |
|
9 {{{ |
|
10 }}} |
|
11 |
|
12 Marker exist from: |
|
13 |
|
14 * A' succeed to A |
|
15 * A' (prune) |
|
16 |
|
17 Command run: |
|
18 |
|
19 * hg push |
|
20 |
|
21 Expected exchange: |
|
22 |
|
23 * `A ø⇠o A'` |
|
24 * A' (prune) |
|
25 |
|
26 |
|
27 $ setuprepos D.2 |
|
28 creating test repo for test case D.2 |
|
29 - pulldest |
|
30 - main |
|
31 - pushdest |
|
32 cd into `main` and proceed with env setup |
|
33 $ cd main |
|
34 $ mkcommit A0 |
|
35 $ hg up -q 0 |
|
36 $ mkcommit A1 |
|
37 created new head |
|
38 $ hg debugobsolete `getid 'desc(A0)'` `getid 'desc(A1)'` |
|
39 $ hg prune --date '0 0' . |
|
40 1 changesets pruned |
|
41 0 files updated, 0 files merged, 1 files removed, 0 files unresolved |
|
42 working directory now at a9bdc8b26820 |
|
43 $ hg strip --hidden -q 'desc(A1)' |
|
44 $ hg log -G --hidden |
|
45 x 28b51eb45704 (draft): A0 |
|
46 | |
|
47 @ a9bdc8b26820 (public): O |
|
48 |
|
49 $ hg debugobsolete |
|
50 28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {'date': '', 'user': 'test'} |
|
51 e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {'date': '0 0', 'p1': 'a9bdc8b26820b1b87d585b82eb0ceb4a2ecdbc04', 'user': 'test'} |
|
52 $ cd .. |
|
53 $ cd .. |
|
54 |
|
55 Actual Test |
|
56 ------------------------------------- |
|
57 |
|
58 $ dotest D.2 |
|
59 ## Running testcase D.2 |
|
60 ## initial state |
|
61 # obstore: main |
|
62 28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {'date': '', 'user': 'test'} |
|
63 e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {'date': '0 0', 'p1': 'a9bdc8b26820b1b87d585b82eb0ceb4a2ecdbc04', 'user': 'test'} |
|
64 # obstore: pushdest |
|
65 # obstore: pulldest |
|
66 ## pushing from main to pushdest |
|
67 pushing to pushdest |
|
68 searching for changes |
|
69 no changes found |
|
70 OBSEXC: computing relevant nodes |
|
71 OBSEXC: computing markers relevant to 1 nodes |
|
72 OBSEXC: encoding 2 markers |
|
73 OBSEXC: sending 1 pushkey payload (188 bytes) |
|
74 OBSEXC: DONE |
|
75 ## post push state |
|
76 # obstore: main |
|
77 28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {'date': '', 'user': 'test'} |
|
78 e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {'date': '0 0', 'p1': 'a9bdc8b26820b1b87d585b82eb0ceb4a2ecdbc04', 'user': 'test'} |
|
79 # obstore: pushdest |
|
80 28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {'date': '', 'user': 'test'} |
|
81 e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {'date': '0 0', 'p1': 'a9bdc8b26820b1b87d585b82eb0ceb4a2ecdbc04', 'user': 'test'} |
|
82 # obstore: pulldest |
|
83 ## pulling from main into pulldest |
|
84 pulling from main |
|
85 searching for changes |
|
86 no changes found |
|
87 OBSEXC: pull obsolescence markers |
|
88 OBSEXC: merging obsolescence markers (150 bytes) |
|
89 OBSEXC: 2 markers added |
|
90 OBSEXC: DONE |
|
91 ## post pull state |
|
92 # obstore: main |
|
93 28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {'date': '', 'user': 'test'} |
|
94 e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {'date': '0 0', 'p1': 'a9bdc8b26820b1b87d585b82eb0ceb4a2ecdbc04', 'user': 'test'} |
|
95 # obstore: pushdest |
|
96 28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {'date': '', 'user': 'test'} |
|
97 e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {'date': '0 0', 'p1': 'a9bdc8b26820b1b87d585b82eb0ceb4a2ecdbc04', 'user': 'test'} |
|
98 # obstore: pulldest |
|
99 28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {'date': '', 'user': 'test'} |
|
100 e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {'date': '0 0', 'p1': 'a9bdc8b26820b1b87d585b82eb0ceb4a2ecdbc04', 'user': 'test'} |
|
101 |