简体   繁体   English

是否可以将SVN补丁应用到普通(非svn)文件夹?

[英]Is it possible to apply SVN patch to plain (non-svn) folder?

For some reason, (please dont ask me why!), I wonder something. 由于某种原因,(请不要问我为什么!),我想知道些什么。

Suppose that; 假设

  • I have created a patch file for some changes on my project (which is a SVN folder). 我已经为项目中的某些更改创建了补丁文件(这是SVN文件夹)。
  • I reverted any changes on this folder and exported SVN revisioned files. 我恢复了对该文件夹的所有更改,并导出了SVN修订版文件。
  • I try to apply this patch on this exported files folder which is obviously not an SVN folder and utility gives this error, too. 我尝试将此修补程序应用到此导出的文件文件夹上,该文件夹显然不是SVN文件夹,并且实用程序也会出现此错误。 ("* is not a working copy") (“ *不是工作副本”)

So, is it possible to apply a patch to a non-SVN folder with same file/folder structure etc. 因此,可以将补丁程序应用到具有相同文件/文件夹结构等的非SVN文件夹中。

Yes, you can use the Unix patch command. 是的,您可以使用Unix patch命令。 If using SVN 1.8 or later, you may want to use the --patch-compatible switch when generating the patch. 如果使用SVN 1.8或更高版本,则在生成补丁时可能要使用--patch-compatible开关。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM