wrapping: fix a silly error were we checking on module and wrapping the other
authorPierre-Yves David <pierre-yves.david@octobus.net>
Mon, 23 Apr 2018 11:44:05 +0100
changeset 3705 bd236590d127
parent 3702 f6979d64b9fb
child 3706 47e6776c2ef0
child 3726 116ef60d4be6
wrapping: fix a silly error were we checking on module and wrapping the other ...
hgext3rd/evolve/__init__.py
--- a/hgext3rd/evolve/__init__.py	Sun Apr 22 11:40:17 2018 +0200
+++ b/hgext3rd/evolve/__init__.py	Mon Apr 23 11:44:05 2018 +0100
@@ -721,7 +721,7 @@
     ui.warn("(%s)\n" % solvemsg)
 
 if util.safehasattr(context, '_filterederror'): # <= hg-4.5
-    @eh.wrapfunction(scmutil, '_filterederror')
+    @eh.wrapfunction(context, '_filterederror')
     def evolve_filtererror(original, repo, changeid):
         """build an exception to be raised about a filtered changeid