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

login
register
mail settings
Submitter phabricator
Date Nov. 9, 2019, 5:20 a.m.
Message ID <79704dce92b03d1b90129853c5ab3bcb@localhost.localdomain>
Download mbox | patch
Permalink /patch/43040/
State Not Applicable
Headers show

Comments

phabricator - Nov. 9, 2019, 5:20 a.m.
marmoute updated this revision to Diff 17858.

REPOSITORY
  rHG Mercurial

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

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