mercurial/hg.py
changeset 20091 abfe6a8e619b
parent 20089 2d0ab571b822
child 20116 9e0219967e38
--- a/mercurial/hg.py	Tue Nov 12 16:23:52 2013 +0900
+++ b/mercurial/hg.py	Tue Nov 12 16:23:52 2013 +0900
@@ -213,7 +213,7 @@
             if srcvfs.exists(f):
                 if f.endswith('data'):
                     # lock to avoid premature writing to the target
-                    destlock = lock.lock(dstvfs.join(dstbase + "/lock"))
+                    destlock = lock.lock(dstvfs, dstbase + "/lock")
                 hardlink, n = util.copyfiles(srcvfs.join(f), dstvfs.join(f),
                                              hardlink)
                 num += n