Show More
@@ -213,8 +213,10 b' def copystore(ui, srcrepo, destpath):' | |||||
213 | dstvfs.mkdir(dstbase) |
|
213 | dstvfs.mkdir(dstbase) | |
214 | if srcvfs.exists(f): |
|
214 | if srcvfs.exists(f): | |
215 | if f.endswith('data'): |
|
215 | if f.endswith('data'): | |
|
216 | # 'dstbase' may be empty (e.g. revlog format 0) | |||
|
217 | lockfile = os.path.join(dstbase, "lock") | |||
216 | # lock to avoid premature writing to the target |
|
218 | # lock to avoid premature writing to the target | |
217 |
destlock = lock.lock(dstvfs, |
|
219 | destlock = lock.lock(dstvfs, lockfile) | |
218 | hardlink, n = util.copyfiles(srcvfs.join(f), dstvfs.join(f), |
|
220 | hardlink, n = util.copyfiles(srcvfs.join(f), dstvfs.join(f), | |
219 | hardlink) |
|
221 | hardlink) | |
220 | num += n |
|
222 | num += n |
@@ -621,3 +621,17 b' re-enable perm to allow deletion' | |||||
621 | #endif |
|
621 | #endif | |
622 |
|
622 | |||
623 | $ cd .. |
|
623 | $ cd .. | |
|
624 | ||||
|
625 | Test clone from the repository in (emulated) revlog format 0 (issue4203): | |||
|
626 | ||||
|
627 | $ mkdir issue4203 | |||
|
628 | $ mkdir -p src/.hg | |||
|
629 | $ echo foo > src/foo | |||
|
630 | $ hg -R src add src/foo | |||
|
631 | $ hg -R src commit -m '#0' | |||
|
632 | $ hg -R src log -q | |||
|
633 | 0:e1bab28bca43 | |||
|
634 | $ hg clone -U -q src dst | |||
|
635 | $ hg -R dst log -q | |||
|
636 | 0:e1bab28bca43 | |||
|
637 | $ cd .. |
General Comments 0
You need to be logged in to leave comments.
Login now