Mercurial > hg > mercurial-crew-with-dirclash
diff hgext/convert/hg.py @ 5104:2f9edf6bae95
convert: only get history for requested revs when converting hg repo
author | Bryan O'Sullivan <bos@serpentine.com> |
---|---|
date | Mon, 06 Aug 2007 14:16:50 -0700 |
parents | ef338e34a906 |
children | d4fa6bafc43a |
line wrap: on
line diff
--- a/hgext/convert/hg.py +++ b/hgext/convert/hg.py @@ -134,7 +134,10 @@ class mercurial_source(converter_source) return self.lastctx def getheads(self): - return [hex(node) for node in self.repo.heads()] + if self.rev: + return [hex(self.repo.changectx(self.rev).node())] + else: + return [hex(node) for node in self.repo.heads()] def getfile(self, name, rev): try: