mercurial/obsolete.py
changeset 19615 77d434760857
parent 19528 f4a0f6dd95a3
child 19618 6ac206fb6f27
--- 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