comparison tests/test-exchange-A6.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
56 | x 28b51eb45704 (draft): A0 56 | x 28b51eb45704 (draft): A0
57 |/ 57 |/
58 o a9bdc8b26820 (public): O 58 o a9bdc8b26820 (public): O
59 59
60 $ hg debugobsolete 60 $ hg debugobsolete
61 28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {'date': '', 'user': 'test'} 61 28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {'date': '0 0', 'user': 'test'}
62 $ cd .. 62 $ cd ..
63 $ cd .. 63 $ cd ..
64 64
65 $ cp -r A.6 A.6.a 65 $ cp -r A.6 A.6.a
66 $ cp -r A.6 A.6.b 66 $ cp -r A.6 A.6.b
71 $ dotest A.6.a A1 71 $ dotest A.6.a A1
72 ## Running testcase A.6.a 72 ## Running testcase A.6.a
73 # testing echange of "A1" (e5ea8f9c7314) 73 # testing echange of "A1" (e5ea8f9c7314)
74 ## initial state 74 ## initial state
75 # obstore: main 75 # obstore: main
76 28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {'date': '', 'user': 'test'} 76 28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {'date': '0 0', 'user': 'test'}
77 # obstore: pushdest 77 # obstore: pushdest
78 # obstore: pulldest 78 # obstore: pulldest
79 ## pushing "A1" from main to pushdest 79 ## pushing "A1" from main to pushdest
80 pushing to pushdest 80 pushing to pushdest
81 searching for changes 81 searching for changes
82 no changes found 82 no changes found
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 1 obsolescence markers (62 bytes) 85 OBSEXC: pushing 1 obsolescence markers (65 bytes)
86 OBSEXC: DONE 86 OBSEXC: DONE
87 ## post push state 87 ## post push state
88 # obstore: main 88 # obstore: main
89 28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {'date': '', 'user': 'test'} 89 28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {'date': '0 0', 'user': 'test'}
90 # obstore: pushdest 90 # obstore: pushdest
91 28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {'date': '', 'user': 'test'} 91 28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {'date': '0 0', 'user': 'test'}
92 # obstore: pulldest 92 # obstore: pulldest
93 ## pulling "e5ea8f9c7314" from main into pulldest 93 ## pulling "e5ea8f9c7314" from main into pulldest
94 pulling from main 94 pulling from main
95 no changes found 95 no changes found
96 OBSEXC: pull obsolescence markers 96 OBSEXC: pull obsolescence markers
97 OBSEXC: merging obsolescence markers (62 bytes) 97 OBSEXC: merging obsolescence markers (65 bytes)
98 OBSEXC: 1 obsolescence markers added 98 OBSEXC: 1 obsolescence markers added
99 OBSEXC: DONE 99 OBSEXC: DONE
100 ## post pull state 100 ## post pull state
101 # obstore: main 101 # obstore: main
102 28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {'date': '', 'user': 'test'} 102 28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {'date': '0 0', 'user': 'test'}
103 # obstore: pushdest 103 # obstore: pushdest
104 28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {'date': '', 'user': 'test'} 104 28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {'date': '0 0', 'user': 'test'}
105 # obstore: pulldest 105 # obstore: pulldest
106 28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {'date': '', 'user': 'test'} 106 28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {'date': '0 0', 'user': 'test'}
107 107
108 Actual Test (bare push version) 108 Actual Test (bare push version)
109 ------------------------------- 109 -------------------------------
110 110
111 $ dotest A.6.b 111 $ dotest A.6.b
112 ## Running testcase A.6.b 112 ## Running testcase A.6.b
113 ## initial state 113 ## initial state
114 # obstore: main 114 # obstore: main
115 28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {'date': '', 'user': 'test'} 115 28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {'date': '0 0', 'user': 'test'}
116 # obstore: pushdest 116 # obstore: pushdest
117 # obstore: pulldest 117 # obstore: pulldest
118 ## pushing from main to pushdest 118 ## pushing from main to pushdest
119 pushing to pushdest 119 pushing to pushdest
120 searching for changes 120 searching for changes
121 no changes found 121 no changes found
122 OBSEXC: computing relevant nodes 122 OBSEXC: computing relevant nodes
123 OBSEXC: computing markers relevant to 3 nodes 123 OBSEXC: computing markers relevant to 3 nodes
124 OBSEXC: pushing 1 obsolescence markers (62 bytes) 124 OBSEXC: pushing 1 obsolescence markers (65 bytes)
125 OBSEXC: DONE 125 OBSEXC: DONE
126 ## post push state 126 ## post push state
127 # obstore: main 127 # obstore: main
128 28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {'date': '', 'user': 'test'} 128 28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {'date': '0 0', 'user': 'test'}
129 # obstore: pushdest 129 # obstore: pushdest
130 28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {'date': '', 'user': 'test'} 130 28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {'date': '0 0', 'user': 'test'}
131 # obstore: pulldest 131 # obstore: pulldest
132 ## pulling from main into pulldest 132 ## pulling from main into pulldest
133 pulling from main 133 pulling from main
134 searching for changes 134 searching for changes
135 no changes found 135 no changes found
136 OBSEXC: pull obsolescence markers 136 OBSEXC: pull obsolescence markers
137 OBSEXC: merging obsolescence markers (62 bytes) 137 OBSEXC: merging obsolescence markers (65 bytes)
138 OBSEXC: 1 obsolescence markers added 138 OBSEXC: 1 obsolescence markers added
139 OBSEXC: DONE 139 OBSEXC: DONE
140 ## post pull state 140 ## post pull state
141 # obstore: main 141 # obstore: main
142 28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {'date': '', 'user': 'test'} 142 28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {'date': '0 0', 'user': 'test'}
143 # obstore: pushdest 143 # obstore: pushdest
144 28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {'date': '', 'user': 'test'} 144 28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {'date': '0 0', 'user': 'test'}
145 # obstore: pulldest 145 # obstore: pulldest
146 28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {'date': '', 'user': 'test'} 146 28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {'date': '0 0', 'user': 'test'}