##// END OF EJS Templates
filemerge: add a before-merge callback to internal merge tools...
Siddharth Agarwal -
r26513:01224c28 default
parent child Browse files
Show More
@@ -38,7 +38,7 b' internals = {}'
38 # Merge tools to document.
38 # Merge tools to document.
39 internalsdoc = {}
39 internalsdoc = {}
40
40
41 def internaltool(name, trymerge, onfailure=None):
41 def internaltool(name, trymerge, onfailure=None, precheck=None):
42 '''return a decorator for populating internal merge tool table'''
42 '''return a decorator for populating internal merge tool table'''
43 def decorator(func):
43 def decorator(func):
44 fullname = ':' + name
44 fullname = ':' + name
@@ -48,6 +48,7 b' def internaltool(name, trymerge, onfailu'
48 internalsdoc[fullname] = func
48 internalsdoc[fullname] = func
49 func.trymerge = trymerge
49 func.trymerge = trymerge
50 func.onfailure = onfailure
50 func.onfailure = onfailure
51 func.precheck = precheck
51 return func
52 return func
52 return decorator
53 return decorator
53
54
General Comments 0
You need to be logged in to leave comments. Login now