comparison tests/test-exchange-A2.t @ 831:a6af6919888d

exchange: automate the testing process too we now have: dotest TESTNAME [TARGETNODE]
author Pierre-Yves David <pierre-yves.david@fb.com>
date Mon, 03 Mar 2014 14:03:41 -0800
parents f3b3a09ba312
children 010c7e4aa820
comparison
equal deleted inserted replaced
830:f3b3a09ba312 831:a6af6919888d
62 62
63 63
64 Actual Test 64 Actual Test
65 --------------- 65 ---------------
66 66
67 $ cd A.2 67 $ dotest A.2 A
68 $ hg -R main id -r 'desc(A)' 68 ## Running testcase A.2
69 f5bc6836db60 69 # testing echange of "A" (f5bc6836db60)
70 $ hg -R main debugobsolete 70 ## initial state
71 # obstore: main
71 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa f5bc6836db60e308a17ba08bf050154ba9c4fad7 0 {'date': '', 'user': 'test'} 72 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa f5bc6836db60e308a17ba08bf050154ba9c4fad7 0 {'date': '', 'user': 'test'}
72 bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb 35b1839966785d5703a01607229eea932db42f87 0 {'date': '', 'user': 'test'} 73 bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb 35b1839966785d5703a01607229eea932db42f87 0 {'date': '', 'user': 'test'}
73 $ hg -R pushdest debugobsolete 74 # obstore: pushdest
74 $ hg -R pulldest debugobsolete 75 # obstore: pulldest
75 76 ## pushing "A" from main to pushdest
76 $ hg -R main push -r 'desc(A)' pushdest
77 pushing to pushdest 77 pushing to pushdest
78 searching for changes 78 searching for changes
79 adding changesets 79 adding changesets
80 adding manifests 80 adding manifests
81 adding file changes 81 adding file changes
83 OBSEXC: computing relevant nodes 83 OBSEXC: computing relevant nodes
84 OBSEXC: computing markers relevant to 2 nodes 84 OBSEXC: computing markers relevant to 2 nodes
85 OBSEXC: encoding 1 markers 85 OBSEXC: encoding 1 markers
86 OBSEXC: sending 1 pushkey payload (78 bytes) 86 OBSEXC: sending 1 pushkey payload (78 bytes)
87 OBSEXC: DONE 87 OBSEXC: DONE
88 $ hg -R main debugobsolete 88 ## post push state
89 # obstore: main
89 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa f5bc6836db60e308a17ba08bf050154ba9c4fad7 0 {'date': '', 'user': 'test'} 90 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa f5bc6836db60e308a17ba08bf050154ba9c4fad7 0 {'date': '', 'user': 'test'}
90 bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb 35b1839966785d5703a01607229eea932db42f87 0 {'date': '', 'user': 'test'} 91 bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb 35b1839966785d5703a01607229eea932db42f87 0 {'date': '', 'user': 'test'}
91 $ hg -R pushdest debugobsolete 92 # obstore: pushdest
92 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa f5bc6836db60e308a17ba08bf050154ba9c4fad7 0 {'date': '', 'user': 'test'} 93 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa f5bc6836db60e308a17ba08bf050154ba9c4fad7 0 {'date': '', 'user': 'test'}
93 $ hg -R pulldest debugobsolete 94 # obstore: pulldest
94 $ hg -R pulldest pull -r 'f5bc6836db60' main 95 ## pulling "f5bc6836db60" from main into pulldest
95 pulling from main 96 pulling from main
96 searching for changes 97 searching for changes
97 adding changesets 98 adding changesets
98 adding manifests 99 adding manifests
99 adding file changes 100 adding file changes
101 OBSEXC: pull obsolescence markers 102 OBSEXC: pull obsolescence markers
102 OBSEXC: merging obsolescence markers (62 bytes) 103 OBSEXC: merging obsolescence markers (62 bytes)
103 OBSEXC: 1 markers added 104 OBSEXC: 1 markers added
104 OBSEXC: DONE 105 OBSEXC: DONE
105 (run 'hg update' to get a working copy) 106 (run 'hg update' to get a working copy)
106 $ hg -R main debugobsolete 107 ## post pull state
108 # obstore: main
107 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa f5bc6836db60e308a17ba08bf050154ba9c4fad7 0 {'date': '', 'user': 'test'} 109 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa f5bc6836db60e308a17ba08bf050154ba9c4fad7 0 {'date': '', 'user': 'test'}
108 bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb 35b1839966785d5703a01607229eea932db42f87 0 {'date': '', 'user': 'test'} 110 bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb 35b1839966785d5703a01607229eea932db42f87 0 {'date': '', 'user': 'test'}
109 $ hg -R pushdest debugobsolete 111 # obstore: pushdest
110 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa f5bc6836db60e308a17ba08bf050154ba9c4fad7 0 {'date': '', 'user': 'test'} 112 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa f5bc6836db60e308a17ba08bf050154ba9c4fad7 0 {'date': '', 'user': 'test'}
111 $ hg -R pulldest debugobsolete 113 # obstore: pulldest
112 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa f5bc6836db60e308a17ba08bf050154ba9c4fad7 0 {'date': '', 'user': 'test'} 114 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa f5bc6836db60e308a17ba08bf050154ba9c4fad7 0 {'date': '', 'user': 'test'}
113 115
116
114 $ cd .. 117 $ cd ..