Beyond Compare 3 merge script(bc的脚本模板)

BC3提供了使用脚本进行merge的方法,下面是个简单的例子!它让你可以做任意两个目录间的合并,对于版本控制工具的合并功能不强或需要同步两个目录之类的场景很合适! 我用它来解决SVN库内容之间合并的问题。

文件syncMerge.txt的内容(调用方法就是第二行注释符后面的语句,当然得先装BC3!):

#svnserve -d -r d:\svn_repository

#"C:\Program Files\Beyond Compare 3\BCompare.exe" @D:\MyDocuments\svn\syncMerge.txt

# Turn logging on

log normal "d:\MyDocuments\Synclog.txt"

# Load the default session and exclude all but certain file types

load <default>

#filter "*.html;*.htm;*.png;*.jpg"

# Load the base folders

load "E:\svn\SVN-Remote\trunk" "E:\svn\SVN-Center\trunk"

# Copy different files left to right, delete orphans on right

sync mirror:left->right

原文地址:https://www.cnblogs.com/dongzhiquan/p/2354995.html