Mercurial > public > mercurial-scm > hg-stable
diff hgext/largefiles/lfutil.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 | 44ff5e4ffc8c |
children | dd2079fae003 |
line wrap: on
line diff
--- a/hgext/largefiles/lfutil.py Sat Apr 01 02:32:31 2017 +0900 +++ b/hgext/largefiles/lfutil.py Sat Apr 01 02:32:47 2017 +0900 @@ -434,10 +434,11 @@ def getstandinsstate(repo): standins = [] matcher = getstandinmatcher(repo) + wctx = repo[None] for standin in repo.dirstate.walk(matcher, [], False, False): lfile = splitstandin(standin) try: - hash = readstandin(repo, lfile) + hash = readasstandin(wctx[standin]) except IOError: hash = None standins.append((lfile, hash))