changeset 4981:60be1bd580c7 stable

compat: accept "success" argument to lock._afterlock callback The callback gets a new "success" argument since Mercurial commit 888bd39ed555 (lock: pass "success" boolean to _afterlock callbacks, 2019-11-19).
author Martin von Zweigbergk <martinvonz@google.com>
date Tue, 03 Dec 2019 09:43:10 -0800
parents f3faafa1e064
children ba683c5fe932 b779b40f996e
files hgext3rd/evolve/__init__.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hgext3rd/evolve/__init__.py	Fri Nov 22 17:13:46 2019 +0700
+++ b/hgext3rd/evolve/__init__.py	Tue Dec 03 09:43:10 2019 -0800
@@ -763,7 +763,7 @@
     node = ctx.node()
     isobs = ctx.obsolete()
 
-    def warnobsolete():
+    def warnobsolete(*args):
         _warnobsoletewc(ui, repo, node, isobs)
     wlock = None
     try: