1 svn命令行生成补丁
svn diff -r old:new > diff.patch
例:
svn diff -r 26952:26975 > diff.patch
2 应用补丁
patch -p 0 < diff.patch
-p 后的数值根据补丁中的目录结构来定,表示需要去掉几级目录
3 用diff生成补丁
diff -ur old_dir new_dir > diff.patch
svn diff -r old:new > diff.patch
例:
svn diff -r 26952:26975 > diff.patch
patch -p 0 < diff.patch
-p 后的数值根据补丁中的目录结构来定,表示需要去掉几级目录
diff -ur old_dir new_dir > diff.patch