compat: handle difference of signature for update destination hooks
authorPierre-Yves David <pierre-yves.david@ens-lyon.org>
Thu, 23 Feb 2017 13:58:52 +0100
changeset 2017 dd1055f38397
parent 2016 192c9f92148d
child 2018 de3304f76fa6
compat: handle difference of signature for update destination hooks The 'check' argument have been dropped in 11c253997b0e. So we make it optional for compatibility.
hgext3rd/topic/destination.py
--- 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