svn: how to ignore deletion of files on update
Using svn, here is a little intro of my situation:
- My working copy is at revision XX.
- Someone added a directory and images at revision YY.
- On revision ZZ, I deleted those images (but not the directory) to add a property svn:ignore for all images.
Is there a way to update a working copy from re开发者_开发知识库vision XX to revision ZZ without deleting those images. The images are still used, but are not needed to be versionned.
the easiest is to copy them outside the directory, do your update, then copy them back in as now-unversioned files. The simplest solution is often the best.
Or you could just update and let the system delete them, then fetch them from where-ever the master versions of them are stored.
Lastly, I think you can update the directory with a sparse option to ignore children, then the directory gets the update state, but the contents are not affected. I imagine a further update to the directory (with a deeper operation) will keep the files afterwards as technically, they're already removed from the directory. Don't quote me on that one -try it.
精彩评论