changeset 2793:fb317d218af0

topic: wrap 'update' in a more flexible way This ensure compatibility with mercurial 4.1 and below
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Tue, 25 Jul 2017 04:16:00 +0200
parents cf09d608ff0c
children 5595fb96d922
files hgext3rd/topic/__init__.py
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/hgext3rd/topic/__init__.py	Mon Jul 24 05:50:43 2017 +0200
+++ b/hgext3rd/topic/__init__.py	Tue Jul 25 04:16:00 2017 +0200
@@ -653,15 +653,14 @@
     finally:
         wlock.release()
 
-def checkt0(orig, ui, repo, node=None, rev=None, clean=False, date=None,
-            check=False, merge=None, tool=None):
+def checkt0(orig, ui, repo, node=None, rev=None, *args, **kwargs):
 
     thezeros = set(['t0', 'b0'])
     overrides = {}
     if node in thezeros or rev in thezeros:
         overrides[('_internal', 'keep-topic')] = 'yes'
     with repo.ui.configoverride(overrides, source='topic-extension'):
-        return orig(ui, repo, node, rev, clean, date, check, merge, tool)
+        return orig(ui, repo, node, rev, *args, **kwargs)
 
 def _fixrebase(loaded):
     if not loaded: