Mercurial > evolve
comparison tests/test-exchange-C2.t @ 1060:f6e0cfca1bf0 stable
test: work around a bug in debugobsolete
The defautl date was wrong all along. So we use a fixed date for all tests.
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Fri, 15 Aug 2014 16:54:32 -0700 |
parents | 640f3280559e |
children | f355bbc124fc |
comparison
equal
deleted
inserted
replaced
1057:168dfc839eca | 1060:f6e0cfca1bf0 |
---|---|
52 |/ | 52 |/ |
53 o a9bdc8b26820 (public): O | 53 o a9bdc8b26820 (public): O |
54 | 54 |
55 $ hg debugobsolete | 55 $ hg debugobsolete |
56 06055a7959d4128e6e3bccfd01482e83a2db8a3a 0 {'date': '0 0', 'p1': '28b51eb45704506b5c603decd6bf7ac5e0f6a52f', 'user': 'test'} | 56 06055a7959d4128e6e3bccfd01482e83a2db8a3a 0 {'date': '0 0', 'p1': '28b51eb45704506b5c603decd6bf7ac5e0f6a52f', 'user': 'test'} |
57 28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {'date': '', 'user': 'test'} | 57 28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {'date': '0 0', 'user': 'test'} |
58 $ cd .. | 58 $ cd .. |
59 $ cd .. | 59 $ cd .. |
60 | 60 |
61 $ cp -r C.2 C.2.a | 61 $ cp -r C.2 C.2.a |
62 $ cp -r C.2 C.2.b | 62 $ cp -r C.2 C.2.b |
68 ## Running testcase C.2.a | 68 ## Running testcase C.2.a |
69 # testing echange of "A1" (e5ea8f9c7314) | 69 # testing echange of "A1" (e5ea8f9c7314) |
70 ## initial state | 70 ## initial state |
71 # obstore: main | 71 # obstore: main |
72 06055a7959d4128e6e3bccfd01482e83a2db8a3a 0 {'date': '0 0', 'p1': '28b51eb45704506b5c603decd6bf7ac5e0f6a52f', 'user': 'test'} | 72 06055a7959d4128e6e3bccfd01482e83a2db8a3a 0 {'date': '0 0', 'p1': '28b51eb45704506b5c603decd6bf7ac5e0f6a52f', 'user': 'test'} |
73 28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {'date': '', 'user': 'test'} | 73 28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {'date': '0 0', 'user': 'test'} |
74 # obstore: pushdest | 74 # obstore: pushdest |
75 # obstore: pulldest | 75 # obstore: pulldest |
76 ## pushing "A1" from main to pushdest | 76 ## pushing "A1" from main to pushdest |
77 pushing to pushdest | 77 pushing to pushdest |
78 searching for changes | 78 searching for changes |
80 adding manifests | 80 adding manifests |
81 adding file changes | 81 adding file changes |
82 added 1 changesets with 1 changes to 1 files | 82 added 1 changesets with 1 changes to 1 files |
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: pushing 2 obsolescence markers (150 bytes) | 85 OBSEXC: pushing 2 obsolescence markers (153 bytes) |
86 OBSEXC: DONE | 86 OBSEXC: DONE |
87 ## post push state | 87 ## post push state |
88 # obstore: main | 88 # obstore: main |
89 06055a7959d4128e6e3bccfd01482e83a2db8a3a 0 {'date': '0 0', 'p1': '28b51eb45704506b5c603decd6bf7ac5e0f6a52f', 'user': 'test'} | 89 06055a7959d4128e6e3bccfd01482e83a2db8a3a 0 {'date': '0 0', 'p1': '28b51eb45704506b5c603decd6bf7ac5e0f6a52f', 'user': 'test'} |
90 28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {'date': '', 'user': 'test'} | 90 28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {'date': '0 0', 'user': 'test'} |
91 # obstore: pushdest | 91 # obstore: pushdest |
92 06055a7959d4128e6e3bccfd01482e83a2db8a3a 0 {'date': '0 0', 'p1': '28b51eb45704506b5c603decd6bf7ac5e0f6a52f', 'user': 'test'} | 92 06055a7959d4128e6e3bccfd01482e83a2db8a3a 0 {'date': '0 0', 'p1': '28b51eb45704506b5c603decd6bf7ac5e0f6a52f', 'user': 'test'} |
93 28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {'date': '', 'user': 'test'} | 93 28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {'date': '0 0', 'user': 'test'} |
94 # obstore: pulldest | 94 # obstore: pulldest |
95 ## pulling "e5ea8f9c7314" from main into pulldest | 95 ## pulling "e5ea8f9c7314" from main into pulldest |
96 pulling from main | 96 pulling from main |
97 searching for changes | 97 searching for changes |
98 adding changesets | 98 adding changesets |
99 adding manifests | 99 adding manifests |
100 adding file changes | 100 adding file changes |
101 added 1 changesets with 1 changes to 1 files | 101 added 1 changesets with 1 changes to 1 files |
102 OBSEXC: pull obsolescence markers | 102 OBSEXC: pull obsolescence markers |
103 OBSEXC: merging obsolescence markers (150 bytes) | 103 OBSEXC: merging obsolescence markers (153 bytes) |
104 OBSEXC: 2 obsolescence markers added | 104 OBSEXC: 2 obsolescence markers added |
105 OBSEXC: DONE | 105 OBSEXC: DONE |
106 (run 'hg update' to get a working copy) | 106 (run 'hg update' to get a working copy) |
107 ## post pull state | 107 ## post pull state |
108 # obstore: main | 108 # obstore: main |
109 06055a7959d4128e6e3bccfd01482e83a2db8a3a 0 {'date': '0 0', 'p1': '28b51eb45704506b5c603decd6bf7ac5e0f6a52f', 'user': 'test'} | 109 06055a7959d4128e6e3bccfd01482e83a2db8a3a 0 {'date': '0 0', 'p1': '28b51eb45704506b5c603decd6bf7ac5e0f6a52f', 'user': 'test'} |
110 28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {'date': '', 'user': 'test'} | 110 28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {'date': '0 0', 'user': 'test'} |
111 # obstore: pushdest | 111 # obstore: pushdest |
112 06055a7959d4128e6e3bccfd01482e83a2db8a3a 0 {'date': '0 0', 'p1': '28b51eb45704506b5c603decd6bf7ac5e0f6a52f', 'user': 'test'} | 112 06055a7959d4128e6e3bccfd01482e83a2db8a3a 0 {'date': '0 0', 'p1': '28b51eb45704506b5c603decd6bf7ac5e0f6a52f', 'user': 'test'} |
113 28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {'date': '', 'user': 'test'} | 113 28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {'date': '0 0', 'user': 'test'} |
114 # obstore: pulldest | 114 # obstore: pulldest |
115 06055a7959d4128e6e3bccfd01482e83a2db8a3a 0 {'date': '0 0', 'p1': '28b51eb45704506b5c603decd6bf7ac5e0f6a52f', 'user': 'test'} | 115 06055a7959d4128e6e3bccfd01482e83a2db8a3a 0 {'date': '0 0', 'p1': '28b51eb45704506b5c603decd6bf7ac5e0f6a52f', 'user': 'test'} |
116 28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {'date': '', 'user': 'test'} | 116 28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {'date': '0 0', 'user': 'test'} |
117 | 117 |
118 Actual Test (bare push) | 118 Actual Test (bare push) |
119 ------------------------------------- | 119 ------------------------------------- |
120 | 120 |
121 $ dotest C.2.b | 121 $ dotest C.2.b |
122 ## Running testcase C.2.b | 122 ## Running testcase C.2.b |
123 ## initial state | 123 ## initial state |
124 # obstore: main | 124 # obstore: main |
125 06055a7959d4128e6e3bccfd01482e83a2db8a3a 0 {'date': '0 0', 'p1': '28b51eb45704506b5c603decd6bf7ac5e0f6a52f', 'user': 'test'} | 125 06055a7959d4128e6e3bccfd01482e83a2db8a3a 0 {'date': '0 0', 'p1': '28b51eb45704506b5c603decd6bf7ac5e0f6a52f', 'user': 'test'} |
126 28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {'date': '', 'user': 'test'} | 126 28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {'date': '0 0', 'user': 'test'} |
127 # obstore: pushdest | 127 # obstore: pushdest |
128 # obstore: pulldest | 128 # obstore: pulldest |
129 ## pushing from main to pushdest | 129 ## pushing from main to pushdest |
130 pushing to pushdest | 130 pushing to pushdest |
131 searching for changes | 131 searching for changes |
133 adding manifests | 133 adding manifests |
134 adding file changes | 134 adding file changes |
135 added 1 changesets with 1 changes to 1 files | 135 added 1 changesets with 1 changes to 1 files |
136 OBSEXC: computing relevant nodes | 136 OBSEXC: computing relevant nodes |
137 OBSEXC: computing markers relevant to 2 nodes | 137 OBSEXC: computing markers relevant to 2 nodes |
138 OBSEXC: pushing 2 obsolescence markers (150 bytes) | 138 OBSEXC: pushing 2 obsolescence markers (153 bytes) |
139 OBSEXC: DONE | 139 OBSEXC: DONE |
140 ## post push state | 140 ## post push state |
141 # obstore: main | 141 # obstore: main |
142 06055a7959d4128e6e3bccfd01482e83a2db8a3a 0 {'date': '0 0', 'p1': '28b51eb45704506b5c603decd6bf7ac5e0f6a52f', 'user': 'test'} | 142 06055a7959d4128e6e3bccfd01482e83a2db8a3a 0 {'date': '0 0', 'p1': '28b51eb45704506b5c603decd6bf7ac5e0f6a52f', 'user': 'test'} |
143 28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {'date': '', 'user': 'test'} | 143 28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {'date': '0 0', 'user': 'test'} |
144 # obstore: pushdest | 144 # obstore: pushdest |
145 06055a7959d4128e6e3bccfd01482e83a2db8a3a 0 {'date': '0 0', 'p1': '28b51eb45704506b5c603decd6bf7ac5e0f6a52f', 'user': 'test'} | 145 06055a7959d4128e6e3bccfd01482e83a2db8a3a 0 {'date': '0 0', 'p1': '28b51eb45704506b5c603decd6bf7ac5e0f6a52f', 'user': 'test'} |
146 28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {'date': '', 'user': 'test'} | 146 28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {'date': '0 0', 'user': 'test'} |
147 # obstore: pulldest | 147 # obstore: pulldest |
148 ## pulling from main into pulldest | 148 ## pulling from main into pulldest |
149 pulling from main | 149 pulling from main |
150 searching for changes | 150 searching for changes |
151 adding changesets | 151 adding changesets |
152 adding manifests | 152 adding manifests |
153 adding file changes | 153 adding file changes |
154 added 1 changesets with 1 changes to 1 files | 154 added 1 changesets with 1 changes to 1 files |
155 OBSEXC: pull obsolescence markers | 155 OBSEXC: pull obsolescence markers |
156 OBSEXC: merging obsolescence markers (150 bytes) | 156 OBSEXC: merging obsolescence markers (153 bytes) |
157 OBSEXC: 2 obsolescence markers added | 157 OBSEXC: 2 obsolescence markers added |
158 OBSEXC: DONE | 158 OBSEXC: DONE |
159 (run 'hg update' to get a working copy) | 159 (run 'hg update' to get a working copy) |
160 ## post pull state | 160 ## post pull state |
161 # obstore: main | 161 # obstore: main |
162 06055a7959d4128e6e3bccfd01482e83a2db8a3a 0 {'date': '0 0', 'p1': '28b51eb45704506b5c603decd6bf7ac5e0f6a52f', 'user': 'test'} | 162 06055a7959d4128e6e3bccfd01482e83a2db8a3a 0 {'date': '0 0', 'p1': '28b51eb45704506b5c603decd6bf7ac5e0f6a52f', 'user': 'test'} |
163 28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {'date': '', 'user': 'test'} | 163 28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {'date': '0 0', 'user': 'test'} |
164 # obstore: pushdest | 164 # obstore: pushdest |
165 06055a7959d4128e6e3bccfd01482e83a2db8a3a 0 {'date': '0 0', 'p1': '28b51eb45704506b5c603decd6bf7ac5e0f6a52f', 'user': 'test'} | 165 06055a7959d4128e6e3bccfd01482e83a2db8a3a 0 {'date': '0 0', 'p1': '28b51eb45704506b5c603decd6bf7ac5e0f6a52f', 'user': 'test'} |
166 28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {'date': '', 'user': 'test'} | 166 28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {'date': '0 0', 'user': 'test'} |
167 # obstore: pulldest | 167 # obstore: pulldest |
168 06055a7959d4128e6e3bccfd01482e83a2db8a3a 0 {'date': '0 0', 'p1': '28b51eb45704506b5c603decd6bf7ac5e0f6a52f', 'user': 'test'} | 168 06055a7959d4128e6e3bccfd01482e83a2db8a3a 0 {'date': '0 0', 'p1': '28b51eb45704506b5c603decd6bf7ac5e0f6a52f', 'user': 'test'} |
169 28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {'date': '', 'user': 'test'} | 169 28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {'date': '0 0', 'user': 'test'} |