##// END OF EJS Templates
convert: only get history for requested revs when converting hg repo
Bryan O'Sullivan -
r5131:2f9edf6b default
parent child Browse files
Show More
@@ -134,7 +134,10 b' class mercurial_source(converter_source)'
134 return self.lastctx
134 return self.lastctx
135
135
136 def getheads(self):
136 def getheads(self):
137 return [hex(node) for node in self.repo.heads()]
137 if self.rev:
138 return [hex(self.repo.changectx(self.rev).node())]
139 else:
140 return [hex(node) for node in self.repo.heads()]
138
141
139 def getfile(self, name, rev):
142 def getfile(self, name, rev):
140 try:
143 try:
General Comments 0
You need to be logged in to leave comments. Login now