equal
deleted
inserted
replaced
261 |
261 |
262 c = commit(parents=parents, date=date, author=author, desc=message, |
262 c = commit(parents=parents, date=date, author=author, desc=message, |
263 rev=version) |
263 rev=version) |
264 return c |
264 return c |
265 |
265 |
|
266 def numcommits(self): |
|
267 return len([None for _ in self.gitopen('git rev-list --all')]) |
|
268 |
266 def gettags(self): |
269 def gettags(self): |
267 tags = {} |
270 tags = {} |
268 alltags = {} |
271 alltags = {} |
269 fh = self.gitopen('git ls-remote --tags "%s"' % self.path, |
272 fh = self.gitopen('git ls-remote --tags "%s"' % self.path, |
270 err=subprocess.STDOUT) |
273 err=subprocess.STDOUT) |
340 return bookmarks |
343 return bookmarks |
341 |
344 |
342 def checkrevformat(self, revstr, mapname='splicemap'): |
345 def checkrevformat(self, revstr, mapname='splicemap'): |
343 """ git revision string is a 40 byte hex """ |
346 """ git revision string is a 40 byte hex """ |
344 self.checkhexformat(revstr, mapname) |
347 self.checkhexformat(revstr, mapname) |
345 |
|