Patchwork D7357: index: use `index.get_rev` in `remotefilelog`

login
register
mail settings
Submitter phabricator
Date Nov. 9, 2019, 4 p.m.
Message ID <45f2dafcda3a6701a43b1cc81f173696@localhost.localdomain>
Download mbox | patch
Permalink /patch/43091/
State Not Applicable
Headers show

Comments

phabricator - Nov. 9, 2019, 4 p.m.
Closed by commit rHGb9831609ba0d: index: use `index.get_rev` in `remotefilelog` (authored by marmoute).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D7357?vs=17858&id=17907

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D7357/new/

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

AFFECTED FILES
  hgext/remotefilelog/remotefilectx.py

CHANGE DETAILS




To: marmoute, #hg-reviewers, indygreg
Cc: mercurial-devel

Patch

diff --git a/hgext/remotefilelog/remotefilectx.py b/hgext/remotefilelog/remotefilectx.py
--- a/hgext/remotefilelog/remotefilectx.py
+++ b/hgext/remotefilelog/remotefilectx.py
@@ -83,7 +83,7 @@ 
 
         ancestormap = self.ancestormap()
         p1, p2, linknode, copyfrom = ancestormap[self._filenode]
-        rev = self._repo.changelog.nodemap.get(linknode)
+        rev = self._repo.changelog.index.get_rev(linknode)
         if rev is not None:
             return rev