# HG changeset patch # User Pierre-Yves David # Date 1487854732 -3600 # Node ID dd1055f3839772de870b53df5ee4521dfe242e70 # Parent 192c9f92148d446bb2462714fe6be96190a633a5 compat: handle difference of signature for update destination hooks The 'check' argument have been dropped in 11c253997b0e. So we make it optional for compatibility. diff -r 192c9f92148d -r dd1055f38397 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