Patchwork D7341: index: use `index.get_rev` in `discovery._postprocessobsolete`

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

Comments

phabricator - Nov. 9, 2019, 3:58 p.m.
Closed by commit rHG8ab1295dda6b: index: use `index.get_rev` in `discovery._postprocessobsolete` (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/D7341?vs=17764&id=17897

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

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

AFFECTED FILES
  mercurial/discovery.py

CHANGE DETAILS




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

Patch

diff --git a/mercurial/discovery.py b/mercurial/discovery.py
--- a/mercurial/discovery.py
+++ b/mercurial/discovery.py
@@ -499,7 +499,7 @@ 
     repo = pushop.repo
     unfi = repo.unfiltered()
     tonode = unfi.changelog.node
-    torev = unfi.changelog.nodemap.get
+    torev = unfi.changelog.index.get_rev
     public = phases.public
     getphase = unfi._phasecache.phase
     ispublic = lambda r: getphase(unfi, r) == public