Mercurial > hg
changeset 37361:e45545f7895e
convert: use repo.lookup() for converting to nodeid
This is a list of revs that come from the CLI (opts['rev']). Perhaps
we should allow any revset, but I'll leave that for someone else to
improve if they care.
Differential Revision: https://phab.mercurial-scm.org/D3089
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Wed, 04 Apr 2018 09:03:17 -0700 |
parents | d0d55980ffa7 |
children | c16b55edd408 |
files | hgext/convert/hg.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/convert/hg.py Wed Apr 04 22:36:21 2018 -0700 +++ b/hgext/convert/hg.py Wed Apr 04 09:03:17 2018 -0700 @@ -481,7 +481,7 @@ else: self.keep = util.always if revs: - self._heads = [self.repo[r].node() for r in revs] + self._heads = [self.repo.lookup(r) for r in revs] else: self._heads = self.repo.heads() else: