##// END OF EJS Templates
remotefilelog: acquire lock before writing requirements on clone...
Pulkit Goyal -
r46053:bddc4f2e default
parent child Browse files
Show More
@@ -362,7 +362,10 b' def cloneshallow(orig, ui, repo, *args, '
362 self.unfiltered().__class__,
362 self.unfiltered().__class__,
363 )
363 )
364 self.requirements.add(constants.SHALLOWREPO_REQUIREMENT)
364 self.requirements.add(constants.SHALLOWREPO_REQUIREMENT)
365 scmutil.writereporequirements(self)
365 with self.lock():
366 # acquire store lock before writing requirements as some
367 # requirements might be written to .hg/store/requires
368 scmutil.writereporequirements(self)
366
369
367 # Since setupclient hadn't been called, exchange.pull was not
370 # Since setupclient hadn't been called, exchange.pull was not
368 # wrapped. So we need to manually invoke our version of it.
371 # wrapped. So we need to manually invoke our version of it.
General Comments 0
You need to be logged in to leave comments. Login now