##// END OF EJS Templates
manifest: don't store None in fulltextcache...
Martin von Zweigbergk -
r30209:9d06b65c default
parent child Browse files
Show More
@@ -1210,7 +1210,8 b' class manifestrevlog(revlog.revlog):'
1210 n = self.addrevision(text, transaction, link, p1, p2)
1210 n = self.addrevision(text, transaction, link, p1, p2)
1211 arraytext = array.array('c', text)
1211 arraytext = array.array('c', text)
1212
1212
1213 self.fulltextcache[n] = arraytext
1213 if arraytext is not None:
1214 self.fulltextcache[n] = arraytext
1214
1215
1215 return n
1216 return n
1216
1217
@@ -1506,7 +1507,8 b' class manifest(manifestrevlog):'
1506 m = self._newmanifest(text)
1507 m = self._newmanifest(text)
1507 arraytext = array.array('c', text)
1508 arraytext = array.array('c', text)
1508 self._mancache[node] = m
1509 self._mancache[node] = m
1509 self.fulltextcache[node] = arraytext
1510 if arraytext is not None:
1511 self.fulltextcache[node] = arraytext
1510 return m
1512 return m
1511
1513
1512 def readshallow(self, node):
1514 def readshallow(self, node):
General Comments 0
You need to be logged in to leave comments. Login now