I am using svn and on occasion I need to revert some changes that are not going well. I would like to make a zip of the changed files first. I would like the zip to have full paths. I am using TortoiseSVN for the most part, but I am not afraid to use a command line if need be.
Right click on the checked out folder, then use TortoiseSVN → Repo-Browser to bring up the repository browser. Find the sub-folder you would like to add to your working copy, then use Context Menu → Update item to revision....
Working copies A Subversion working copy is your own private working area, which looks like any other ordinary directory on your system. It contains a COPY of those files which you will have been editing on the website. You can edit these files however you wish, in the usual way.
The working copy will be located in a directory called trunk on your computer relative to the directory you issued the command in. If you wish to have a different name for your working copy you can add that as a parameter to the end of the command. e.g. This will create a working copy called MyProjectSource .
You can just use a simple bash one-liner (provided that you are a Linux happy user):
zip ~/modified.zip $(svn status | grep ^M | awk '{ print $2;}')
This extracts all files with the status of M so Modified.
In the TourtoiseSVN Check for Modifications dialog
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