Patchwork D3089: convert: use repo.lookup() for converting to nodeid

login
register
mail settings
Submitter phabricator
Date April 5, 2018, 1:29 p.m.
Message ID <f377fa9f326f13e3563f1defe24b6dba@localhost.localdomain>
Download mbox | patch
Permalink /patch/30362/
State Not Applicable
Headers show

Comments

phabricator - April 5, 2018, 1:29 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGe45545f7895e: convert: use repo.lookup() for converting to nodeid (authored by martinvonz, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D3089?vs=7663&id=7720

REVISION DETAIL
  https://phab.mercurial-scm.org/D3089

AFFECTED FILES
  hgext/convert/hg.py

CHANGE DETAILS




To: martinvonz, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/hgext/convert/hg.py b/hgext/convert/hg.py
--- a/hgext/convert/hg.py
+++ b/hgext/convert/hg.py
@@ -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: