@@ -101,14 +101,14 @@ func TestCommitsParents(t *testing.T) {
101101 }{
102102 {
103103 name : "test commits parents 1" ,
104- hash : "e8d3ffab552895c19b9fcf7aa264d277cde33881 " ,
104+ hash : "6ecf0ef2c2dffb796033e5a02219af86ec6584e5 " ,
105105 parents : []string {
106106 "918c48b83bd081e863dbe1b80f8998f058cd8294" ,
107107 },
108108 },
109109 {
110110 name : "test commits parents 2" ,
111- hash : "6ecf0ef2c2dffb796033e5a02219af86ec6584e5 " ,
111+ hash : "e8d3ffab552895c19b9fcf7aa264d277cde33881 " ,
112112 parents : []string {
113113 "918c48b83bd081e863dbe1b80f8998f058cd8294" ,
114114 },
@@ -137,30 +137,30 @@ func TestCommitsParents(t *testing.T) {
137137 },
138138 {
139139 name : "test commits parents 6" ,
140- hash : "a5b8b09e2f8fcb0bb99d3ccb0958157b40890d69 " ,
140+ hash : "35e85108805c84807bc66a02d91535e1e24b38b9 " ,
141141 parents : []string {
142142 "b029517f6300c2da0f4b651b8642506cd6aaf45d" ,
143- "b8e471f58bcbca63b07bda20e428190409c2db47" ,
144143 },
145144 },
146145 {
147- name : "test commits parents 7" ,
148- hash : "b8e471f58bcbca63b07bda20e428190409c2db47" ,
149- parents : []string {
150- "b029517f6300c2da0f4b651b8642506cd6aaf45d" ,
151- },
146+ name : "test commits parents 7" ,
147+ hash : "b029517f6300c2da0f4b651b8642506cd6aaf45d" ,
148+ parents : []string {},
152149 },
153150 {
154151 name : "test commits parents 8" ,
155- hash : "35e85108805c84807bc66a02d91535e1e24b38b9 " ,
152+ hash : "a5b8b09e2f8fcb0bb99d3ccb0958157b40890d69 " ,
156153 parents : []string {
157154 "b029517f6300c2da0f4b651b8642506cd6aaf45d" ,
155+ "b8e471f58bcbca63b07bda20e428190409c2db47" ,
158156 },
159157 },
160158 {
161- name : "test commits parents 9" ,
162- hash : "b029517f6300c2da0f4b651b8642506cd6aaf45d" ,
163- parents : []string {},
159+ name : "test commits parents 9" ,
160+ hash : "b8e471f58bcbca63b07bda20e428190409c2db47" ,
161+ parents : []string {
162+ "b029517f6300c2da0f4b651b8642506cd6aaf45d" ,
163+ },
164164 },
165165 }
166166
@@ -188,65 +188,65 @@ func TestCommitsIndexKeyValueIter(t *testing.T) {
188188 assertEncodeKey (t , & packOffsetIndexKey {
189189 Repository : path ,
190190 Packfile : "323a4b6b5de684f9966953a043bc800154e5dbfa" ,
191- Offset : 682 ,
191+ Offset : 186 ,
192192 }),
193193 []interface {}{
194- "1669dce138d9b841a518c64b10914d88f5e488ea " ,
194+ "6ecf0ef2c2dffb796033e5a02219af86ec6584e5 " ,
195195196196 },
197197 },
198198 {
199199 assertEncodeKey (t , & packOffsetIndexKey {
200200 Repository : path ,
201201 Packfile : "323a4b6b5de684f9966953a043bc800154e5dbfa" ,
202- Offset : 1292 ,
202+ Offset : 12 ,
203203 }),
204204 []interface {}{
205- "35e85108805c84807bc66a02d91535e1e24b38b9 " ,
205+ "e8d3ffab552895c19b9fcf7aa264d277cde33881 " ,
206206207207 },
208208 },
209209 {
210210 assertEncodeKey (t , & packOffsetIndexKey {
211211 Repository : path ,
212212 Packfile : "323a4b6b5de684f9966953a043bc800154e5dbfa" ,
213- Offset : 186 ,
213+ Offset : 353 ,
214214 }),
215215 []interface {}{
216- "6ecf0ef2c2dffb796033e5a02219af86ec6584e5 " ,
216+ "918c48b83bd081e863dbe1b80f8998f058cd8294 " ,
217217218218 },
219219 },
220220 {
221221 assertEncodeKey (t , & packOffsetIndexKey {
222222 Repository : path ,
223223 Packfile : "323a4b6b5de684f9966953a043bc800154e5dbfa" ,
224- Offset : 353 ,
224+ Offset : 516 ,
225225 }),
226226 []interface {}{
227- "918c48b83bd081e863dbe1b80f8998f058cd8294 " ,
227+ "af2d6a6954d532f8ffb47615169c8fdf9d383a1a " ,
228228229229 },
230230 },
231231 {
232232 assertEncodeKey (t , & packOffsetIndexKey {
233233 Repository : path ,
234234 Packfile : "323a4b6b5de684f9966953a043bc800154e5dbfa" ,
235- Offset : 905 ,
235+ Offset : 682 ,
236236 }),
237237 []interface {}{
238- "a5b8b09e2f8fcb0bb99d3ccb0958157b40890d69 " ,
238+ "1669dce138d9b841a518c64b10914d88f5e488ea " ,
239239240240 },
241241 },
242242 {
243243 assertEncodeKey (t , & packOffsetIndexKey {
244244 Repository : path ,
245245 Packfile : "323a4b6b5de684f9966953a043bc800154e5dbfa" ,
246- Offset : 516 ,
246+ Offset : 1292 ,
247247 }),
248248 []interface {}{
249- "af2d6a6954d532f8ffb47615169c8fdf9d383a1a " ,
249+ "35e85108805c84807bc66a02d91535e1e24b38b9 " ,
250250251251 },
252252 },
@@ -265,22 +265,22 @@ func TestCommitsIndexKeyValueIter(t *testing.T) {
265265 assertEncodeKey (t , & packOffsetIndexKey {
266266 Repository : path ,
267267 Packfile : "323a4b6b5de684f9966953a043bc800154e5dbfa" ,
268- Offset : 1130 ,
268+ Offset : 905 ,
269269 }),
270270 []interface {}{
271- "b8e471f58bcbca63b07bda20e428190409c2db47 " ,
272- 271+ "a5b8b09e2f8fcb0bb99d3ccb0958157b40890d69 " ,
272+ 273273 },
274274 },
275275 {
276276 assertEncodeKey (t , & packOffsetIndexKey {
277277 Repository : path ,
278278 Packfile : "323a4b6b5de684f9966953a043bc800154e5dbfa" ,
279- Offset : 12 ,
279+ Offset : 1130 ,
280280 }),
281281 []interface {}{
282- "e8d3ffab552895c19b9fcf7aa264d277cde33881 " ,
283- 282+ "b8e471f58bcbca63b07bda20e428190409c2db47 " ,
283+ 284284 },
285285 },
286286 }
0 commit comments