| 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 |
1 new obsolescence markers |
| 58 |
obsoleted 1 changesets |
| 59 |
$ hg prune --date '0 0' . |
| 60 |
1 new obsolescence markers |
| 61 |
obsoleted 1 changesets |
| 62 |
$ hg strip --hidden -q 'desc(A1)' |
| 63 |
$ hg log -G --hidden |
| 64 |
x 28b51eb45704 (draft): A0 |
| 65 |
| |
| 66 |
@ a9bdc8b26820 (public): O |
| 67 |
|
| 68 |
$ inspect_obsmarkers |
| 69 |
obsstore content |
| 70 |
================ |
| 71 |
28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
| 72 |
e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {a9bdc8b26820b1b87d585b82eb0ceb4a2ecdbc04} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
| 73 |
$ cd .. |
| 74 |
$ cd .. |
| 75 |
|
| 76 |
Actual Test |
| 77 |
----------- |
| 78 |
|
| 79 |
$ dotest D.2 |
| 80 |
## Running testcase D.2 |
| 81 |
## initial state |
| 82 |
# obstore: main |
| 83 |
28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
| 84 |
e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {a9bdc8b26820b1b87d585b82eb0ceb4a2ecdbc04} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
| 85 |
# obstore: pushdest |
| 86 |
# obstore: pulldest |
| 87 |
## pushing from main to pushdest |
| 88 |
pushing to pushdest |
| 89 |
searching for changes |
| 90 |
no changes found |
| 91 |
remote: 2 new obsolescence markers |
| 92 |
## post push state |
| 93 |
# obstore: main |
| 94 |
28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
| 95 |
e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {a9bdc8b26820b1b87d585b82eb0ceb4a2ecdbc04} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
| 96 |
# obstore: pushdest |
| 97 |
28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
| 98 |
e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {a9bdc8b26820b1b87d585b82eb0ceb4a2ecdbc04} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
| 99 |
# obstore: pulldest |
| 100 |
## pulling from main into pulldest |
| 101 |
pulling from main |
| 102 |
searching for changes |
| 103 |
no changes found |
| 104 |
2 new obsolescence markers |
| 105 |
## post pull state |
| 106 |
# obstore: main |
| 107 |
28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
| 108 |
e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {a9bdc8b26820b1b87d585b82eb0ceb4a2ecdbc04} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
| 109 |
# obstore: pushdest |
| 110 |
28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
| 111 |
e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {a9bdc8b26820b1b87d585b82eb0ceb4a2ecdbc04} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
| 112 |
# obstore: pulldest |
| 113 |
28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
| 114 |
e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {a9bdc8b26820b1b87d585b82eb0ceb4a2ecdbc04} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
| 115 |
|