Mercurial > hg-stable
diff hgext/largefiles/lfcommands.py @ 31740:3e37b479ce2f
largefiles: replace readstandin() by readasstandin()
These code paths already (or should, for efficiency at repetition)
know the target changectx and path of standin file.
author | FUJIWARA Katsunori <foozy@lares.dti.ne.jp> |
---|---|
date | Sat, 01 Apr 2017 02:32:47 +0900 |
parents | 1af4a1641bdb |
children | a40e979b9d97 |
line wrap: on
line diff
--- 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)