Mercurial > hgsubversion
changeset 1361:d227cf8d0860 stable
exchangepush: accept kwargs and just forward them
author | Sean Farley <sean@farley.io> |
---|---|
date | Thu, 15 Oct 2015 13:42:22 -0700 |
parents | 129f4ad088c2 |
children | a279eb7185d4 3c213ca49f7e |
files | hgsubversion/wrappers.py |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/hgsubversion/wrappers.py +++ b/hgsubversion/wrappers.py @@ -369,7 +369,7 @@ def push(repo, dest, force, revs): return 1 # so we get a sane exit status, see hg's commands.push def exchangepush(orig, repo, remote, force=False, revs=None, newbranch=False, - bookmarks=()): + bookmarks=(), **kwargs): capable = getattr(remote, 'capable', lambda x: False) if capable('subversion'): pushop = exchange.pushoperation(repo, remote, force, revs, newbranch, @@ -377,7 +377,8 @@ def exchangepush(orig, repo, remote, for pushop.cgresult = push(repo, remote, force, revs) return pushop else: - return orig(repo, remote, force, revs, newbranch, bookmarks=bookmarks) + return orig(repo, remote, force, revs, newbranch, bookmarks=bookmarks, + **kwargs) def pull(repo, source, heads=[], force=False, meta=None): """pull new revisions from Subversion"""