topic: wrap 'update' in a more flexible way
This ensure compatibility with mercurial 4.1 and below
--- 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: