Mercurial > evolve
comparison tests/test-exchange-B7.t @ 843:ee910ba7a9db
exchange: add test case for B.7
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Mon, 03 Mar 2014 20:28:03 -0800 |
parents | |
children | 401da1b38cca |
comparison
equal
deleted
inserted
replaced
842:9b9bb01b9286 | 843:ee910ba7a9db |
---|---|
1 | |
2 Initial setup | |
3 | |
4 $ . $TESTDIR/_exc-util.sh | |
5 | |
6 | |
7 === B.7 Prune on non targeted common changeset === | |
8 .. | |
9 .. {{{ | |
10 .. β B | |
11 .. | | |
12 .. β A | |
13 .. | | |
14 .. β O | |
15 .. }}} | |
16 .. | |
17 .. Marker exist from: | |
18 .. | |
19 .. * B (prune) | |
20 .. | |
21 .. Command run: | |
22 .. | |
23 .. * hg push -r O | |
24 ........ * hg push | |
25 .. | |
26 .. Expected exchange: | |
27 .. | |
28 .. * ΓΈ | |
29 ....... * B (prune) | |
30 | |
31 $ setuprepos B.7 | |
32 creating test repo for test case B.7 | |
33 - pulldest | |
34 - main | |
35 - pushdest | |
36 cd into `main` and proceed with env setup | |
37 $ cd main | |
38 $ mkcommit A | |
39 $ hg push -q ../pushdest | |
40 $ hg push -q ../pulldest | |
41 $ mkcommit B | |
42 $ hg prune -qd '0 0' . | |
43 $ hg log -G --hidden | |
44 x f6fbb35d8ac9 (draft): B | |
45 | | |
46 @ f5bc6836db60 (draft): A | |
47 | | |
48 o a9bdc8b26820 (public): O | |
49 | |
50 $ hg debugobsolete | |
51 f6fbb35d8ac958bbe70035e4c789c18471cdc0af 0 {'date': '0 0', 'p1': 'f5bc6836db60e308a17ba08bf050154ba9c4fad7', 'user': 'test'} | |
52 $ cd .. | |
53 $ cd .. | |
54 | |
55 Actual Test | |
56 ------------------------------------- | |
57 | |
58 $ dotest B.7 O | |
59 ## Running testcase B.7 | |
60 # testing echange of "O" (a9bdc8b26820) | |
61 ## initial state | |
62 # obstore: main | |
63 f6fbb35d8ac958bbe70035e4c789c18471cdc0af 0 {'date': '0 0', 'p1': 'f5bc6836db60e308a17ba08bf050154ba9c4fad7', 'user': 'test'} | |
64 # obstore: pushdest | |
65 # obstore: pulldest | |
66 ## pushing "O" 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 0 markers | |
73 OBSEXC: sending 0 pushkey payload (0 bytes) | |
74 OBSEXC: DONE | |
75 ## post push state | |
76 # obstore: main | |
77 f6fbb35d8ac958bbe70035e4c789c18471cdc0af 0 {'date': '0 0', 'p1': 'f5bc6836db60e308a17ba08bf050154ba9c4fad7', 'user': 'test'} | |
78 # obstore: pushdest | |
79 # obstore: pulldest | |
80 ## pulling "a9bdc8b26820" from main into pulldest | |
81 pulling from main | |
82 no changes found | |
83 OBSEXC: pull obsolescence markers | |
84 OBSEXC: DONE | |
85 ## post pull state | |
86 # obstore: main | |
87 f6fbb35d8ac958bbe70035e4c789c18471cdc0af 0 {'date': '0 0', 'p1': 'f5bc6836db60e308a17ba08bf050154ba9c4fad7', 'user': 'test'} | |
88 # obstore: pushdest | |
89 # obstore: pulldest | |
90 |