MAC Config svn diff tool Diffmerge

Source: Internet
Author: User
Tags diff

Reference text https://semicrazy.wordpress.com/2009/10/08/using-diffmerge-as-your-subversion-external-merge-tool/

1. Prepare 2 sh files for SVN call

~/scripts/diffmerge/diffmerge-svndiff.sh:

~/scripts/diffmerge/diffmerge-svnmerge.sh:

Reference Sample:

Merge

#!/bin/bashdiffmerge_path=/applications/diffmerge/diffmerge.appdiffmerge_exec=${diffmerge_path}/contents/macos /diffmerge# SVN would invoke this with a bunch of arguments.  These are:# $1-path to the file, that's the original# $2-path to the file, that's the incoming merge version# $3-path To the file that's the latest from trunk (current working copy) # $4-path to where SVN expects the merged output to be W Ritten${diffmerge_exec}--nosplash-m-t1= "Incoming Merge changes"  -t2= "Original (merged)"-t3= "Current working Copy changes "-r=" $4 "$" "$" "$"



Diff is basically a different parameter:


${diffmerge_exec}  -u-t1= "$"  -t2= "$" $6 $7



To set the SVN configuration file (. subversion/config):


Diff-cmd =/users/xxxx/scripts/diffmerge/diffmerge-svndiff.shmerge-tool-cmd =/users/xxx/scripts/diffmerge/ diffmerge-svnmerge.sh


MAC Config svn diff tool Diffmerge

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.