Mercurial > public > mercurial-scm > hg
diff mercurial/obsolete.py @ 19615:77d434760857
obsolete: allow passing a revision to successorssets()
author | Dan Villiom Podlaski Christiansen <danchr@gmail.com> |
---|---|
date | Sun, 04 Aug 2013 13:43:39 +0200 |
parents | f4a0f6dd95a3 |
children | 6ac206fb6f27 |
line wrap: on
line diff
--- a/mercurial/obsolete.py Mon Aug 12 17:44:31 2013 -0500 +++ b/mercurial/obsolete.py Sun Aug 04 13:43:39 2013 +0200 @@ -496,6 +496,9 @@ for its live spawn. Code that makes multiple calls to `successorssets` *must* use this cache mechanism or suffer terrible performances.""" + if isinstance(initialnode, int): + initialnode = repo.unfiltered().changelog.node(initialnode) + succmarkers = repo.obsstore.successors # Stack of nodes we search successors sets for