compat: handle difference of signature for update destination hooks
The 'check' argument have been dropped in 11c253997b0e. So we make it optional
for compatibility.
--- a/hgext3rd/topic/destination.py Fri Oct 14 00:54:04 2016 +0200
+++ b/hgext3rd/topic/destination.py Thu Feb 23 13:58:52 2017 +0100
@@ -61,7 +61,7 @@
else:
return orig(repo)
-def _destupdatetopic(repo, clean, check):
+def _destupdatetopic(repo, clean, check=None):
"""decide on an update destination from current topic"""
movemark = node = None
topic = repo.currenttopic