##// END OF EJS Templates
changectx: search manifest delta for filenode
Brendan Cully -
r3337:b02e6009 default
parent child Browse files
Show More
@@ -48,6 +48,10 b' class changectx(object):'
48 elif name == '_manifest':
48 elif name == '_manifest':
49 self._manifest = self._repo.manifest.read(self._changeset[0])
49 self._manifest = self._repo.manifest.read(self._changeset[0])
50 return self._manifest
50 return self._manifest
51 elif name == '_manifestdelta':
52 md = self._repo.manifest.readdelta(self._changeset[0])
53 self._manifestdelta = md
54 return self._manifestdelta
51 else:
55 else:
52 raise AttributeError, name
56 raise AttributeError, name
53
57
@@ -77,6 +81,9 b' class changectx(object):'
77 return self._manifest[path]
81 return self._manifest[path]
78 except KeyError:
82 except KeyError:
79 raise repo.LookupError(_("'%s' not found in manifest") % path)
83 raise repo.LookupError(_("'%s' not found in manifest") % path)
84 if '_manifestdelta' in self.__dict__ or path in self.files():
85 if path in self._manifestdelta:
86 return self._manifestdelta[path]
80 node, flag = self._repo.manifest.find(self._changeset[0], path)
87 node, flag = self._repo.manifest.find(self._changeset[0], path)
81 if not node:
88 if not node:
82 raise repo.LookupError(_("'%s' not found in manifest") % path)
89 raise repo.LookupError(_("'%s' not found in manifest") % path)
General Comments 0
You need to be logged in to leave comments. Login now