hgext/largefiles/overrides.py
changeset 31621 10561eb97c7f
parent 31619 d5d0e6ca62ad
child 31622 1f6c932862e5
--- a/hgext/largefiles/overrides.py	Fri Mar 24 22:24:59 2017 +0900
+++ b/hgext/largefiles/overrides.py	Fri Mar 24 22:26:34 2017 +0900
@@ -1354,7 +1354,7 @@
                     data = repo.wwritedata(f, data)
                 fp.write(data)
             else:
-                hash = lfutil.readstandin(repo, lf, ctx.rev())
+                hash = lfutil.readstandin(repo, lf, ctx)
                 if not lfutil.inusercache(repo.ui, hash):
                     store = storefactory.openstore(repo)
                     success, missing = store.get([(lf, hash)])
@@ -1405,7 +1405,7 @@
             lfutil.writestandin(repo, standin, lfhash,
                                 lfutil.getexecutable(lfileabs))
             if (standin in pctx and
-                lfhash == lfutil.readstandin(repo, lfile, '.')):
+                lfhash == lfutil.readstandin(repo, lfile, pctx)):
                 oldclean.add(lfile)
         for lfile in s.added:
             lfutil.updatestandin(repo, lfutil.standin(lfile))