[obsolete] fix new api: be more flexible on rebase's buildstate signature
authorAlain Leufroy <alain.leufroy@logilab.fr>
Tue, 29 May 2012 11:15:19 +0200
changeset 253 8ee6c5b98d73
parent 252 470232cea503
child 254 3ff969da57ef
[obsolete] fix new api: be more flexible on rebase's buildstate signature Introduced by `d1afbf03e69a@mercurial <http://selenic.com/repo/hg/rev/d1afbf03e69a>`_
hgext/obsolete.py
--- a/hgext/obsolete.py	Tue May 29 10:27:33 2012 +0200
+++ b/hgext/obsolete.py	Tue May 29 11:15:19 2012 +0200
@@ -216,10 +216,10 @@
 ############################
 
 
-def buildstate(orig, repo, dest, rebaseset, detach):
+def buildstate(orig, repo, dest, rebaseset, *ags, **kws):
     """wrapper for rebase 's buildstate that exclude obsolete changeset"""
     rebaseset = repo.revs('%ld - extinct()', rebaseset)
-    return orig(repo, dest, rebaseset, detach)
+    return orig(repo, dest, rebaseset, *ags, **kws)
 
 
 def concludenode(orig, repo, rev, *args, **kwargs):