##// END OF EJS Templates
clone: save hardlink state of util.copyfiles()...
Adrian Buehlmann -
r11255:e4dbaa40 stable
parent child Browse files
Show More
@@ -277,6 +277,7 b' def clone(ui, source, dest=None, pull=Fa'
277 % dest)
277 % dest)
278 raise
278 raise
279
279
280 hardlink = None
280 for f in src_repo.store.copylist():
281 for f in src_repo.store.copylist():
281 src = os.path.join(src_repo.sharedpath, f)
282 src = os.path.join(src_repo.sharedpath, f)
282 dst = os.path.join(dest_path, f)
283 dst = os.path.join(dest_path, f)
@@ -287,7 +288,7 b' def clone(ui, source, dest=None, pull=Fa'
287 if dst.endswith('data'):
288 if dst.endswith('data'):
288 # lock to avoid premature writing to the target
289 # lock to avoid premature writing to the target
289 dest_lock = lock.lock(os.path.join(dstbase, "lock"))
290 dest_lock = lock.lock(os.path.join(dstbase, "lock"))
290 util.copyfiles(src, dst)
291 hardlink = util.copyfiles(src, dst, hardlink)
291
292
292 # we need to re-init the repo after manually copying the data
293 # we need to re-init the repo after manually copying the data
293 # into it
294 # into it
General Comments 0
You need to be logged in to leave comments. Login now