##// END OF EJS Templates
convert: import all branches from git repositories
Brendan Cully -
r4768:f52bfe56 default
parent child Browse files
Show More
@@ -20,9 +20,11 b' class convert_git(converter_source):'
20 self.encoding = 'utf-8'
20 self.encoding = 'utf-8'
21
21
22 def getheads(self):
22 def getheads(self):
23 rev = self.rev or 'HEAD'
23 if not self.rev:
24 fh = self.gitcmd("git-rev-parse --verify %s" % rev)
24 return self.gitcmd('git-rev-parse --branches').read().splitlines()
25 return [fh.read()[:-1]]
25 else:
26 fh = self.gitcmd("git-rev-parse --verify %s" % self.rev)
27 return [fh.read()[:-1]]
26
28
27 def catfile(self, rev, type):
29 def catfile(self, rev, type):
28 if rev == "0" * 40: raise IOError()
30 if rev == "0" * 40: raise IOError()
General Comments 0
You need to be logged in to leave comments. Login now