linux - 如何在 svn 存储库上应用 diff linux 命令生成的补丁

标签 linux svn patch

我有一个使用 diff 命令生成的补丁:

diff -ruN orig/ new/ > file.patch

我想使用 svn 实用程序在 svn repo 上应用此补丁。 如何做到这一点?

最佳答案

$ svn help patch

patch: Apply a patch to a working copy.

usage: patch PATCHFILE [WCPATH]

Apply a unidiff patch in PATCHFILE to the working copy WCPATH. If WCPATH is omitted, '.' is assumed.

A unidiff patch suitable for application to a working copy can be produced with the svn diff command or third-party diffing tools. Any non-unidiff content of PATCHFILE is ignored, except for Subversion property diffs as produced by svn diff.

关于linux - 如何在 svn 存储库上应用 diff linux 命令生成的补丁,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41632091/

相关文章:

java - super 计算机提交脚本以运行 NetLogo 的问题

svn - 几个开发人员和一个 Subversion 的工作文件夹

java - 如何在 Eclipse 中导入两个项目,就像一个

delphi - 如何处理与版本控制相关但经常以无关方式更改的文件?

linux - 向文件部分添加一行,除非它存在

c++ - 在嵌入式 Linux 上使用 C++ Std Lib 时出现异常段错误

linux - 我想通过 bash 文件发送 Enter 命令来运行 bin 文件

linux - 无法为 git 匹配 ssh key 。改为制作本地指纹?

upgrade - 软件升级可以是非增量的吗?

python - 夏娃框架: on_update hook