changeset 26525:abc2327e382a

filemerge: add some merge types We're going to turn the 'trymerge' boolean into a 'mergetype' enum with these three possible values.
author Siddharth Agarwal <sid0@fb.com>
date Wed, 07 Oct 2015 15:13:41 -0700
parents 61c295d9d402
children 7fa3560443fd
files mercurial/filemerge.py
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/filemerge.py	Thu Oct 08 01:41:30 2015 +0900
+++ b/mercurial/filemerge.py	Wed Oct 07 15:13:41 2015 -0700
@@ -38,6 +38,11 @@
 # Merge tools to document.
 internalsdoc = {}
 
+# internal tool merge types
+nomerge = None
+mergeonly = 'mergeonly'  # just the full merge, no premerge
+fullmerge = 'fullmerge'  # both premerge and merge
+
 def internaltool(name, trymerge, onfailure=None, precheck=None):
     '''return a decorator for populating internal merge tool table'''
     def decorator(func):