##// END OF EJS Templates
manifest: throw LookupError if node not in revlog...
Durham Goode -
r30290:1a0c1ad5 default
parent child Browse files
Show More
@@ -1262,8 +1262,8 b' class manifestlog(object):'
1262 self._mancache = self._oldmanifest._mancache
1262 self._mancache = self._oldmanifest._mancache
1263
1263
1264 def __getitem__(self, node):
1264 def __getitem__(self, node):
1265 """Retrieves the manifest instance for the given node. Throws a KeyError
1265 """Retrieves the manifest instance for the given node. Throws a
1266 if not found.
1266 LookupError if not found.
1267 """
1267 """
1268 if node in self._mancache:
1268 if node in self._mancache:
1269 cachemf = self._mancache[node]
1269 cachemf = self._mancache[node]
@@ -1273,6 +1273,9 b' class manifestlog(object):'
1273 isinstance(cachemf, treemanifestctx)):
1273 isinstance(cachemf, treemanifestctx)):
1274 return cachemf
1274 return cachemf
1275
1275
1276 if node not in self._revlog.nodemap:
1277 raise LookupError(node, self._revlog.indexfile,
1278 _('no node'))
1276 if self._treeinmem:
1279 if self._treeinmem:
1277 m = treemanifestctx(self._repo, '', node)
1280 m = treemanifestctx(self._repo, '', node)
1278 else:
1281 else:
General Comments 0
You need to be logged in to leave comments. Login now