comparison hgext/obsolete.py @ 253:8ee6c5b98d73

[obsolete] fix new api: be more flexible on rebase's buildstate signature Introduced by `d1afbf03e69a@mercurial <http://selenic.com/repo/hg/rev/d1afbf03e69a>`_
author Alain Leufroy <alain.leufroy@logilab.fr>
date Tue, 29 May 2012 11:15:19 +0200
parents 470232cea503
children 3ff969da57ef
comparison
equal deleted inserted replaced
252:470232cea503 253:8ee6c5b98d73
214 214
215 ### Other Extension compat 215 ### Other Extension compat
216 ############################ 216 ############################
217 217
218 218
219 def buildstate(orig, repo, dest, rebaseset, detach): 219 def buildstate(orig, repo, dest, rebaseset, *ags, **kws):
220 """wrapper for rebase 's buildstate that exclude obsolete changeset""" 220 """wrapper for rebase 's buildstate that exclude obsolete changeset"""
221 rebaseset = repo.revs('%ld - extinct()', rebaseset) 221 rebaseset = repo.revs('%ld - extinct()', rebaseset)
222 return orig(repo, dest, rebaseset, detach) 222 return orig(repo, dest, rebaseset, *ags, **kws)
223 223
224 224
225 def concludenode(orig, repo, rev, *args, **kwargs): 225 def concludenode(orig, repo, rev, *args, **kwargs):
226 """wrapper for rebase 's concludenode that set obsolete relation""" 226 """wrapper for rebase 's concludenode that set obsolete relation"""
227 newrev = orig(repo, rev, *args, **kwargs) 227 newrev = orig(repo, rev, *args, **kwargs)