Suppose a remote SVN repository has this structure:
/project
/src
/bulk
Now for some reason I already have a copy of bulk
(assumed unchanging or rarely changing) elsewhere on my machine. Can I somehow checkout a new copy of the repository, but pre-provide the bulk
directory so it doesn't get downloaded again?
To clarify, this hypothetical process should certainly check the checksums on the files in the bulk
directory and update those files which aren't correct, so that ultimately I'll have a complete, consistent checkout. I just want to shortcut past downloading those files which I already have verbatim.
Set the svn:ignore property of the parent directory: svn propset svn:ignore dirname . If you have multiple things to ignore, separate by newlines in the property value.
To ignore files in subversion you want to set the svn:ignore property. You can see more here http://svnbook.red-bean.com/en/1.8/svn.advanced.props.special.ignore.html about half way down. svn propset svn:ignore target .
Just delete your complete local checked-out working copy (including all . svn directories). This will not modify your repository as you are not committing your deletion.
To remove a file from a Subversion repository, change to the directory with its working copy and run the following command: svn delete file… Similarly, to remove a directory and all files that are in it, type: svn delete directory…
e.g.
svn checkout --depth empty http://svnserver/project/ project
svn update --set-depth infinity project/src
// copy your current /bulk into /project
Note - this takes advantage of the sparse directories feature introduced in Subversion 1.5.
Instructions when using TortoiseSVN 1.7 and newer:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With