changeset 2017:dd1055f38397

compat: handle difference of signature for update destination hooks The 'check' argument have been dropped in 11c253997b0e. So we make it optional for compatibility.
author Pierre-Yves David <pierre-yves.david@ens-lyon.org>
date Thu, 23 Feb 2017 13:58:52 +0100
parents 192c9f92148d
children de3304f76fa6
files hgext3rd/topic/destination.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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