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

marmoute (Pierre-Yves David) phabricator at mercurial-scm.org
Sat Nov 9 11:00:05 EST 2019


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

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
 



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


More information about the Mercurial-devel mailing list