Show More
@@ -322,6 +322,7 b' class cg1unpacker(object):' | |||
|
322 | 322 | changesets = files = revisions = 0 |
|
323 | 323 | |
|
324 | 324 | tr = repo.transaction("\n".join([srctype, util.hidepassword(url)])) |
|
325 | try: | |
|
325 | 326 | # The transaction could have been created before and already |
|
326 | 327 | # carries source information. In this case we use the top |
|
327 | 328 | # level data. We overwrite the argument because we need to use |
@@ -329,12 +330,11 b' class cg1unpacker(object):' | |||
|
329 | 330 | srctype = tr.hookargs.setdefault('source', srctype) |
|
330 | 331 | url = tr.hookargs.setdefault('url', url) |
|
331 | 332 | |
|
332 |
# write changelog data to temp files so concurrent readers |
|
|
333 | # inconsistent view | |
|
333 | # write changelog data to temp files so concurrent readers | |
|
334 | # will not see an inconsistent view | |
|
334 | 335 | cl = repo.changelog |
|
335 | 336 | cl.delayupdate(tr) |
|
336 | 337 | oldheads = cl.heads() |
|
337 | try: | |
|
338 | 338 | repo.hook('prechangegroup', throw=True, **tr.hookargs) |
|
339 | 339 | |
|
340 | 340 | trp = weakref.proxy(tr) |
General Comments 0
You need to be logged in to leave comments.
Login now