comparison tests/test-exchange-D1.t @ 848:001f8508910a

exchange: add test case for D.1
author Pierre-Yves David <pierre-yves.david@fb.com>
date Mon, 03 Mar 2014 21:23:36 -0800
parents
children b177fde040dd
comparison
equal deleted inserted replaced
847:d11446392c1d 848:001f8508910a
1
2 Initial setup
3
4 $ . $TESTDIR/_exc-util.sh
5
6 === D.1 Pruned changeset based on a missing precursors of something we miss ===
7
8 .. {{{
9 .. B ⊗
10 .. |
11 .. A ◌⇠◔ A'
12 .. |/
13 .. ● O
14 .. }}}
15 ..
16 .. Marker exist from:
17 ..
18 .. * A' succeed to A
19 .. * B (prune)
20 ..
21 .. Command run:
22 ..
23 .. * hg push -r A'
24 .. * hg push
25 ..
26 .. Expected exchange:
27 ..
28 .. * `A ø⇠o A'`
29 .. * B (prune)
30
31 $ setuprepos D.1
32 creating test repo for test case D.1
33 - pulldest
34 - main
35 - pushdest
36 cd into `main` and proceed with env setup
37 $ cd main
38 $ mkcommit A0
39 $ mkcommit B
40 $ hg up -q 0
41 $ mkcommit A1
42 created new head
43 $ hg debugobsolete `getid 'desc(A0)'` `getid 'desc(A1)'`
44 $ hg prune -d '0 0' 'desc(B)'
45 1 changesets pruned
46 $ hg strip --hidden -q 'desc(A0)'
47 $ hg log -G --hidden
48 @ e5ea8f9c7314 (draft): A1
49 |
50 o a9bdc8b26820 (public): O
51
52 $ hg debugobsolete
53 28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {'date': '', 'user': 'test'}
54 06055a7959d4128e6e3bccfd01482e83a2db8a3a 0 {'date': '0 0', 'p1': '28b51eb45704506b5c603decd6bf7ac5e0f6a52f', 'user': 'test'}
55 $ cd ..
56 $ cd ..
57
58 Actual Test
59 -------------------------------------
60
61 $ dotest D.1 A1
62 ## Running testcase D.1
63 # testing echange of "A1" (e5ea8f9c7314)
64 ## initial state
65 # obstore: main
66 28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {'date': '', 'user': 'test'}
67 06055a7959d4128e6e3bccfd01482e83a2db8a3a 0 {'date': '0 0', 'p1': '28b51eb45704506b5c603decd6bf7ac5e0f6a52f', 'user': 'test'}
68 # obstore: pushdest
69 # obstore: pulldest
70 ## pushing "A1" from main to pushdest
71 pushing to pushdest
72 searching for changes
73 adding changesets
74 adding manifests
75 adding file changes
76 added 1 changesets with 1 changes to 1 files
77 OBSEXC: computing relevant nodes
78 OBSEXC: computing markers relevant to 2 nodes
79 OBSEXC: encoding 2 markers
80 OBSEXC: sending 1 pushkey payload (188 bytes)
81 OBSEXC: DONE
82 ## post push state
83 # obstore: main
84 28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {'date': '', 'user': 'test'}
85 06055a7959d4128e6e3bccfd01482e83a2db8a3a 0 {'date': '0 0', 'p1': '28b51eb45704506b5c603decd6bf7ac5e0f6a52f', 'user': 'test'}
86 # obstore: pushdest
87 28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {'date': '', 'user': 'test'}
88 06055a7959d4128e6e3bccfd01482e83a2db8a3a 0 {'date': '0 0', 'p1': '28b51eb45704506b5c603decd6bf7ac5e0f6a52f', 'user': 'test'}
89 # obstore: pulldest
90 ## pulling "e5ea8f9c7314" from main into pulldest
91 pulling from main
92 searching for changes
93 adding changesets
94 adding manifests
95 adding file changes
96 added 1 changesets with 1 changes to 1 files
97 OBSEXC: pull obsolescence markers
98 OBSEXC: merging obsolescence markers (150 bytes)
99 OBSEXC: 2 markers added
100 OBSEXC: DONE
101 (run 'hg update' to get a working copy)
102 ## post pull state
103 # obstore: main
104 28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {'date': '', 'user': 'test'}
105 06055a7959d4128e6e3bccfd01482e83a2db8a3a 0 {'date': '0 0', 'p1': '28b51eb45704506b5c603decd6bf7ac5e0f6a52f', 'user': 'test'}
106 # obstore: pushdest
107 28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {'date': '', 'user': 'test'}
108 06055a7959d4128e6e3bccfd01482e83a2db8a3a 0 {'date': '0 0', 'p1': '28b51eb45704506b5c603decd6bf7ac5e0f6a52f', 'user': 'test'}
109 # obstore: pulldest
110 28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {'date': '', 'user': 'test'}
111 06055a7959d4128e6e3bccfd01482e83a2db8a3a 0 {'date': '0 0', 'p1': '28b51eb45704506b5c603decd6bf7ac5e0f6a52f', 'user': 'test'}
112