Mercurial > hg
comparison mercurial/obsutil.py @ 43557:acaff50079ff
index: use `index.get_rev` in `obsutil.getobsoleted`
Differential Revision: https://phab.mercurial-scm.org/D7335
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Sat, 09 Nov 2019 13:23:52 +0100 |
parents | 1944aaaecabf |
children | 32048206e7be |
comparison
equal
deleted
inserted
replaced
43556:505a2bc53759 | 43557:acaff50079ff |
---|---|
476 return effects | 476 return effects |
477 | 477 |
478 | 478 |
479 def getobsoleted(repo, tr): | 479 def getobsoleted(repo, tr): |
480 """return the set of pre-existing revisions obsoleted by a transaction""" | 480 """return the set of pre-existing revisions obsoleted by a transaction""" |
481 torev = repo.unfiltered().changelog.nodemap.get | 481 torev = repo.unfiltered().changelog.index.get_rev |
482 phase = repo._phasecache.phase | 482 phase = repo._phasecache.phase |
483 succsmarkers = repo.obsstore.successors.get | 483 succsmarkers = repo.obsstore.successors.get |
484 public = phases.public | 484 public = phases.public |
485 addedmarkers = tr.changes[b'obsmarkers'] | 485 addedmarkers = tr.changes[b'obsmarkers'] |
486 origrepolen = tr.changes[b'origrepolen'] | 486 origrepolen = tr.changes[b'origrepolen'] |