--- a/hgext/evolve.py Tue Jun 05 20:43:39 2012 +0200
+++ b/hgext/evolve.py Wed Jun 06 01:06:11 2012 +0200
@@ -156,7 +156,14 @@
assert orig.p2().rev() == node.nullrev, 'no support yet'
destbookmarks = repo.nodebookmarks(dest.node())
cmdutil.duplicatecopies(repo, orig.node(), dest.node())
- rebase.rebasenode(repo, orig.node(), dest.node(), {node.nullrev: node.nullrev})
+ if rebase.rebasenode.func_code.co_argcount == 5:
+ # rebasenode collapse argument was introduced by
+ # d1afbf03e69a (2.3)
+ rebase.rebasenode(repo, orig.node(), dest.node(),
+ {node.nullrev: node.nullrev}, False)
+ else:
+ rebase.rebasenode(repo, orig.node(), dest.node(),
+ {node.nullrev: node.nullrev})
nodenew = rebase.concludenode(repo, orig.node(), dest.node(), node.nullid)
nodesrc = orig.node()
repo.addobsolete(nodenew, nodesrc)