##// END OF EJS Templates
filemerge: add a precheck for symlinks...
Siddharth Agarwal -
r26515:0ffa7fe1 default
parent child Browse files
Show More
@@ -228,6 +228,14 b' def _premerge(repo, toolconf, files, lab'
228 util.copyfile(back, a) # restore from backup and try again
228 util.copyfile(back, a) # restore from backup and try again
229 return 1 # continue merging
229 return 1 # continue merging
230
230
231 def _symlinkcheck(repo, mynode, orig, fcd, fco, fca, toolconf):
232 tool, toolpath, binary, symlink = toolconf
233 if symlink:
234 repo.ui.warn(_('warning: internal :merge cannot merge symlinks '
235 'for %s\n') % fcd.path())
236 return False
237 return True
238
231 def _merge(repo, mynode, orig, fcd, fco, fca, toolconf, files, labels, mode):
239 def _merge(repo, mynode, orig, fcd, fco, fca, toolconf, files, labels, mode):
232 """
240 """
233 Uses the internal non-interactive simple merge algorithm for merging
241 Uses the internal non-interactive simple merge algorithm for merging
General Comments 0
You need to be logged in to leave comments. Login now