--- a/hgext/sparse.py Thu Jul 06 12:14:03 2017 -0700
+++ b/hgext/sparse.py Thu Jul 06 12:14:12 2017 -0700
@@ -431,7 +431,7 @@
visited.add(profile)
try:
- raw = self.getrawprofile(profile, rev)
+ raw = sparse.readprofile(self, profile, rev)
except error.ManifestLookupError:
msg = (
"warning: sparse profile '%s' not found "
@@ -455,11 +455,6 @@
includes.add('.hg*')
return includes, excludes, profiles
- def getrawprofile(self, profile, changeid):
- # TODO add some kind of cache here because this incurs a manifest
- # resolve and can be slow.
- return self.filectx(profile, changeid=changeid).data()
-
def _sparsechecksum(self, path):
data = self.vfs.read(path)
return hashlib.sha1(data).hexdigest()