Patchwork D1774: repoview: use named attributes on revlog index entries

login
register
mail settings
Submitter phabricator
Date Jan. 6, 2018, 8:26 a.m.
Message ID <3f9a00a80dfeda690b073387a2753753@localhost.localdomain>
Download mbox | patch
Permalink /patch/26586/
State Not Applicable
Headers show

Comments

phabricator - Jan. 6, 2018, 8:26 a.m.
indygreg updated this revision to Diff 4740.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D1774?vs=4635&id=4740

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

AFFECTED FILES
  mercurial/repoview.py

CHANGE DETAILS




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

Patch

diff --git a/mercurial/repoview.py b/mercurial/repoview.py
--- a/mercurial/repoview.py
+++ b/mercurial/repoview.py
@@ -217,7 +217,7 @@ 
         # bypass call to changelog.method
         unfiindex = unfichangelog.index
         unfilen = len(unfiindex) - 1
-        unfinode = unfiindex[unfilen - 1][7]
+        unfinode = unfiindex[unfilen - 1].node
 
         revs = filterrevs(unfi, self.filtername, self._visibilityexceptions)
         cl = self._clcache