如何在 svn repo 上应用 diff linux 命令生成的补丁
how to apply patch generated with diff linux command on svn repo
我有一个用 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
.
我有一个用 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 copyWCPATH
. IfWCPATH
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 ofPATCHFILE
is ignored, except for Subversion property diffs as produced bysvn diff
.