# HG changeset patch # User FUJIWARA Katsunori # Date 1490362162 -32400 # Node ID 1f6c932862e5f9e6e5e03fe808e7028197a159c7 # Parent 10561eb97c7f0d2824750e4423def1dd2927e9a3 largefiles: replace hashrepofile by hashfile (API) There is only one user for the former, and repo.wjoin()-ed value is alread known by that user. diff -r 10561eb97c7f -r 1f6c932862e5 hgext/largefiles/lfutil.py --- a/hgext/largefiles/lfutil.py Fri Mar 24 22:26:34 2017 +0900 +++ b/hgext/largefiles/lfutil.py Fri Mar 24 22:29:22 2017 +0900 @@ -370,9 +370,6 @@ outfile.write(data) return hasher.hexdigest() -def hashrepofile(repo, file): - return hashfile(repo.wjoin(file)) - def hashfile(file): if not os.path.exists(file): return '' diff -r 10561eb97c7f -r 1f6c932862e5 hgext/largefiles/overrides.py --- a/hgext/largefiles/overrides.py Fri Mar 24 22:26:34 2017 +0900 +++ b/hgext/largefiles/overrides.py Fri Mar 24 22:29:22 2017 +0900 @@ -1400,7 +1400,7 @@ lfileabs = repo.wvfs.join(lfile) if not repo.wvfs.exists(lfileabs): continue - lfhash = lfutil.hashrepofile(repo, lfile) + lfhash = lfutil.hashfile(lfileabs) standin = lfutil.standin(lfile) lfutil.writestandin(repo, standin, lfhash, lfutil.getexecutable(lfileabs))