diff -r 44ff5e4ffc8c -r 3e37b479ce2f hgext/largefiles/lfcommands.py --- a/hgext/largefiles/lfcommands.py Sat Apr 01 02:32:31 2017 +0900 +++ b/hgext/largefiles/lfcommands.py Sat Apr 01 02:32:47 2017 +0900 @@ -474,7 +474,7 @@ shutil.copyfile(wvfs.join(rellfile), wvfs.join(rellfileorig)) wvfs.unlinkpath(relstandinorig) - expecthash = lfutil.readstandin(repo, lfile) + expecthash = lfutil.readasstandin(wctx[relstandin]) if expecthash != '': if lfile not in wctx: # not switched to normal file wvfs.unlinkpath(rellfile, ignoremissing=True)