98 def _fileinfo(self, path): |
98 def _fileinfo(self, path): |
99 if '_manifest' in self.__dict__: |
99 if '_manifest' in self.__dict__: |
100 try: |
100 try: |
101 return self._manifest[path], self._manifest.flags(path) |
101 return self._manifest[path], self._manifest.flags(path) |
102 except KeyError: |
102 except KeyError: |
103 raise revlog.LookupError(path, _("'%s' not found in manifest") % path) |
103 raise revlog.LookupError(self._node, path, |
|
104 _('not found in manifest')) |
104 if '_manifestdelta' in self.__dict__ or path in self.files(): |
105 if '_manifestdelta' in self.__dict__ or path in self.files(): |
105 if path in self._manifestdelta: |
106 if path in self._manifestdelta: |
106 return self._manifestdelta[path], self._manifestdelta.flags(path) |
107 return self._manifestdelta[path], self._manifestdelta.flags(path) |
107 node, flag = self._repo.manifest.find(self._changeset[0], path) |
108 node, flag = self._repo.manifest.find(self._changeset[0], path) |
108 if not node: |
109 if not node: |
109 raise revlog.LookupError(path, _("'%s' not found in manifest") % path) |
110 raise revlog.LookupError(self._node, path, |
|
111 _('not found in manifest')) |
110 |
112 |
111 return node, flag |
113 return node, flag |
112 |
114 |
113 def filenode(self, path): |
115 def filenode(self, path): |
114 return self._fileinfo(path)[0] |
116 return self._fileinfo(path)[0] |