Patchwork D7336: index: use `index.get_rev` in `obsolete._computephasedivergentset`

login
register
mail settings
Submitter phabricator
Date Nov. 9, 2019, 3:58 p.m.
Message ID <0b5e27f470ba289fca5d7a782ddf9413@localhost.localdomain>
Download mbox | patch
Permalink /patch/43080/
State Not Applicable
Headers show

Comments

phabricator - Nov. 9, 2019, 3:58 p.m.
Closed by commit rHG8accdc297ba3: index: use `index.get_rev` in `obsolete._computephasedivergentset` (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/D7336?vs=17843&id=17895

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

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

AFFECTED FILES
  mercurial/obsolete.py

CHANGE DETAILS




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

Patch

diff --git a/mercurial/obsolete.py b/mercurial/obsolete.py
--- a/mercurial/obsolete.py
+++ b/mercurial/obsolete.py
@@ -980,7 +980,7 @@ 
     phase = repo._phasecache.phase  # would be faster to grab the full list
     public = phases.public
     cl = repo.changelog
-    torev = cl.nodemap.get
+    torev = cl.index.get_rev
     tonode = cl.node
     obsstore = repo.obsstore
     for rev in repo.revs(b'(not public()) and (not obsolete())'):