hgext/convert/git.py
changeset 41759 aaad36b88298
parent 41478 8e0dd36f7a97
child 43076 2372284d9457
equal deleted inserted replaced
41758:15d3facfa40a 41759:aaad36b88298
   385         return c
   385         return c
   386 
   386 
   387     def numcommits(self):
   387     def numcommits(self):
   388         output, ret = self.gitrunlines('rev-list', '--all')
   388         output, ret = self.gitrunlines('rev-list', '--all')
   389         if ret:
   389         if ret:
   390             raise error.Abort(_('cannot retrieve number of commits in %s') \
   390             raise error.Abort(_('cannot retrieve number of commits in %s')
   391                               % self.path)
   391                               % self.path)
   392         return len(output)
   392         return len(output)
   393 
   393 
   394     def gettags(self):
   394     def gettags(self):
   395         tags = {}
   395         tags = {}