# HG changeset patch # User Pierre-Yves David # Date 1338937571 -7200 # Node ID 9852b3ef7234d926c5bee515ad77fa7730720879 # Parent 3ff969da57ef96426010dbef8e39b4bb6b7620fc evolve: update rebase usage to match 2.3 diff -r 3ff969da57ef -r 9852b3ef7234 hgext/evolve.py --- 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)