hgext/convert/filemap.py
changeset 41179 77088fa862df
parent 36589 41c0e7b7869c
child 41180 69804c040a04
equal deleted inserted replaced
41178:53327bfbf35d 41179:77088fa862df
   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