equal
deleted
inserted
replaced
268 c = self.commits[rev] = self.base.getcommit(rev) |
268 c = self.commits[rev] = self.base.getcommit(rev) |
269 for p in c.parents: |
269 for p in c.parents: |
270 self.children[p] = self.children.get(p, 0) + 1 |
270 self.children[p] = self.children.get(p, 0) + 1 |
271 return c |
271 return c |
272 |
272 |
|
273 def numcommits(self): |
|
274 return self.base.numcommits() |
|
275 |
273 def _cachedcommit(self, rev): |
276 def _cachedcommit(self, rev): |
274 if rev in self.commits: |
277 if rev in self.commits: |
275 return self.commits[rev] |
278 return self.commits[rev] |
276 return self.base.getcommit(rev) |
279 return self.base.getcommit(rev) |
277 |
280 |