简体   繁体   中英

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).
  • I reverted any changes on this folder and exported SVN revisioned files.
  • I try to apply this patch on this exported files folder which is obviously not an SVN folder and utility gives this error, too. ("* is not a working copy")

So, is it possible to apply a patch to a non-SVN folder with same file/folder structure etc.

Yes, you can use the Unix patch command. If using SVN 1.8 or later, you may want to use the --patch-compatible switch when generating the patch.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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