hgext/largefiles/overrides.py
changeset 31735 3e37b479ce2f
parent 31659 0eec36112e58
child 31740 a40e979b9d97
--- a/hgext/largefiles/overrides.py	Sat Apr 01 02:32:31 2017 +0900
+++ b/hgext/largefiles/overrides.py	Sat Apr 01 02:32:47 2017 +0900
@@ -1357,7 +1357,7 @@
                     data = repo.wwritedata(f, data)
                 fp.write(data)
             else:
-                hash = lfutil.readstandin(repo, lf, ctx)
+                hash = lfutil.readasstandin(ctx[f])
                 if not lfutil.inusercache(repo.ui, hash):
                     store = storefactory.openstore(repo)
                     success, missing = store.get([(lf, hash)])
@@ -1409,7 +1409,7 @@
             lfutil.writestandin(repo, standin, lfhash,
                                 lfutil.getexecutable(lfileabs))
             if (standin in pctx and
-                lfhash == lfutil.readstandin(repo, lfile, pctx)):
+                lfhash == lfutil.readasstandin(pctx[standin])):
                 oldclean.add(lfile)
         for lfile in s.added:
             fstandin = lfutil.standin(lfile)