compat: accept "success" argument to lock._afterlock callback stable
authorMartin von Zweigbergk <martinvonz@google.com>
Tue, 03 Dec 2019 09:43:10 -0800
branchstable
changeset 4981 60be1bd580c7
parent 4973 f3faafa1e064
child 4982 ba683c5fe932
child 4984 b779b40f996e
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).
hgext3rd/evolve/__init__.py
--- 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: