##// END OF EJS Templates
filemerge: move :merge-local/other symlink check to precheck...
Siddharth Agarwal -
r26893:19c4b93c default
parent child Browse files
Show More
@@ -308,16 +308,12 b' def _imergeauto(repo, mynode, orig, fcd,'
308 """
308 """
309 assert localorother is not None
309 assert localorother is not None
310 tool, toolpath, binary, symlink = toolconf
310 tool, toolpath, binary, symlink = toolconf
311 if symlink:
312 repo.ui.warn(_('warning: :merge-%s cannot merge symlinks '
313 'for %s\n') % (localorother, fcd.path()))
314 return False, 1
315 a, b, c, back = files
311 a, b, c, back = files
316 r = simplemerge.simplemerge(repo.ui, a, b, c, label=labels,
312 r = simplemerge.simplemerge(repo.ui, a, b, c, label=labels,
317 localorother=localorother)
313 localorother=localorother)
318 return True, r
314 return True, r
319
315
320 @internaltool('merge-local', mergeonly)
316 @internaltool('merge-local', mergeonly, precheck=_symlinkcheck)
321 def _imergelocal(*args, **kwargs):
317 def _imergelocal(*args, **kwargs):
322 """
318 """
323 Like :merge, but resolve all conflicts non-interactively in favor
319 Like :merge, but resolve all conflicts non-interactively in favor
@@ -325,7 +321,7 b' def _imergelocal(*args, **kwargs):'
325 success, status = _imergeauto(localorother='local', *args, **kwargs)
321 success, status = _imergeauto(localorother='local', *args, **kwargs)
326 return success, status
322 return success, status
327
323
328 @internaltool('merge-other', mergeonly)
324 @internaltool('merge-other', mergeonly, precheck=_symlinkcheck)
329 def _imergeother(*args, **kwargs):
325 def _imergeother(*args, **kwargs):
330 """
326 """
331 Like :merge, but resolve all conflicts non-interactively in favor
327 Like :merge, but resolve all conflicts non-interactively in favor
@@ -118,7 +118,7 b' Symlink is other parent, executable is l'
118 picked tool ':merge-local' for a (binary False symlink True)
118 picked tool ':merge-local' for a (binary False symlink True)
119 merging a
119 merging a
120 my a@3574f3e69b1c+ other a@521a1e40188f ancestor a@c334dc3be0da
120 my a@3574f3e69b1c+ other a@521a1e40188f ancestor a@c334dc3be0da
121 warning: :merge-local cannot merge symlinks for a
121 warning: internal :merge-local cannot merge symlinks for a
122 0 files updated, 0 files merged, 0 files removed, 1 files unresolved
122 0 files updated, 0 files merged, 0 files removed, 1 files unresolved
123 use 'hg resolve' to retry unresolved file merges or 'hg update -C .' to abandon
123 use 'hg resolve' to retry unresolved file merges or 'hg update -C .' to abandon
124 [1]
124 [1]
@@ -140,7 +140,7 b' Symlink is other parent, executable is l'
140 picked tool ':merge-other' for a (binary False symlink True)
140 picked tool ':merge-other' for a (binary False symlink True)
141 merging a
141 merging a
142 my a@3574f3e69b1c+ other a@521a1e40188f ancestor a@c334dc3be0da
142 my a@3574f3e69b1c+ other a@521a1e40188f ancestor a@c334dc3be0da
143 warning: :merge-other cannot merge symlinks for a
143 warning: internal :merge-other cannot merge symlinks for a
144 0 files updated, 0 files merged, 0 files removed, 1 files unresolved
144 0 files updated, 0 files merged, 0 files removed, 1 files unresolved
145 use 'hg resolve' to retry unresolved file merges or 'hg update -C .' to abandon
145 use 'hg resolve' to retry unresolved file merges or 'hg update -C .' to abandon
146 [1]
146 [1]
General Comments 0
You need to be logged in to leave comments. Login now