##// END OF EJS Templates
filemerge: switch the default name for internal tools from internal:x to :x
Mads Kiilerich -
r22707:38e0363d default
parent child Browse files
Show More
@@ -25,10 +25,10 internals = {}
25 def internaltool(name, trymerge, onfailure=None):
25 def internaltool(name, trymerge, onfailure=None):
26 '''return a decorator for populating internal merge tool table'''
26 '''return a decorator for populating internal merge tool table'''
27 def decorator(func):
27 def decorator(func):
28 fullname = 'internal:' + name
28 fullname = ':' + name
29 func.__doc__ = "``%s``\n" % fullname + func.__doc__.strip()
29 func.__doc__ = "``%s``\n" % fullname + func.__doc__.strip()
30 internals[fullname] = func
30 internals[fullname] = func
31 internals[':' + name] = func
31 internals['internal:' + name] = func
32 func.trymerge = trymerge
32 func.trymerge = trymerge
33 func.onfailure = onfailure
33 func.onfailure = onfailure
34 return func
34 return func
@@ -112,8 +112,8 def _picktool(repo, ui, path, binary, sy
112
112
113 # internal merge or prompt as last resort
113 # internal merge or prompt as last resort
114 if symlink or binary:
114 if symlink or binary:
115 return "internal:prompt", None
115 return ":prompt", None
116 return "internal:merge", None
116 return ":merge", None
117
117
118 def _eoltype(data):
118 def _eoltype(data):
119 "Guess the EOL type of a file"
119 "Guess the EOL type of a file"
@@ -247,7 +247,7 def _imerge3(repo, mynode, orig, fcd, fc
247
247
248 @internaltool('tagmerge', True,
248 @internaltool('tagmerge', True,
249 _("automatic tag merging of %s failed! "
249 _("automatic tag merging of %s failed! "
250 "(use 'hg resolve --tool internal:merge' or another merge "
250 "(use 'hg resolve --tool :merge' or another merge "
251 "tool of your choice)\n"))
251 "tool of your choice)\n"))
252 def _itagmerge(repo, mynode, orig, fcd, fco, fca, toolconf, files, labels=None):
252 def _itagmerge(repo, mynode, orig, fcd, fco, fca, toolconf, files, labels=None):
253 """
253 """
@@ -68,7 +68,7 6. If a program named ``hgmerge`` can be
68 it will by default not be used for symlinks and binary files.
68 it will by default not be used for symlinks and binary files.
69
69
70 7. If the file to be merged is not binary and is not a symlink, then
70 7. If the file to be merged is not binary and is not a symlink, then
71 ``internal:merge`` is used.
71 internal ``:merge`` is used.
72
72
73 8. The merge of the file fails and must be resolved before commit.
73 8. The merge of the file fails and must be resolved before commit.
74
74
@@ -106,7 +106,7 Update to link with local change should
106 a: versions differ -> m
106 a: versions differ -> m
107 updating: a 1/1 files (100.00%)
107 updating: a 1/1 files (100.00%)
108 (couldn't find merge tool hgmerge|tool hgmerge can't handle symlinks) (re)
108 (couldn't find merge tool hgmerge|tool hgmerge can't handle symlinks) (re)
109 picked tool 'internal:prompt' for a (binary False symlink True)
109 picked tool ':prompt' for a (binary False symlink True)
110 no tool found to merge a
110 no tool found to merge a
111 keep (l)ocal or take (o)ther? l
111 keep (l)ocal or take (o)ther? l
112 0 files updated, 1 files merged, 0 files removed, 0 files unresolved
112 0 files updated, 1 files merged, 0 files removed, 0 files unresolved
@@ -517,7 +517,7 detect merge tag conflicts
517 merging .hgtags
517 merging .hgtags
518 automatic .hgtags merge failed
518 automatic .hgtags merge failed
519 the following 1 tags are in conflict: t7
519 the following 1 tags are in conflict: t7
520 automatic tag merging of .hgtags failed! (use 'hg resolve --tool internal:merge' or another merge tool of your choice)
520 automatic tag merging of .hgtags failed! (use 'hg resolve --tool :merge' or another merge tool of your choice)
521 2 files updated, 0 files merged, 0 files removed, 1 files unresolved
521 2 files updated, 0 files merged, 0 files removed, 1 files unresolved
522 use 'hg resolve' to retry unresolved file merges or 'hg update -C .' to abandon
522 use 'hg resolve' to retry unresolved file merges or 'hg update -C .' to abandon
523 [1]
523 [1]
General Comments 0
You need to be logged in to leave comments. Login now