diff -r 88d8e568add1 -r abfe6a8e619b mercurial/hg.py --- 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