subversion command

hmagnanao
hmagnanao
Hi,    Is there a subversion command that will cleanup the previous workspace before checking out the new workspace ?

Last updated

orbrey
orbrey
Nothing specific, all you should need to do is delete the old working copy folder if you don't need it any more. If you've tried that and you're getting errors for some reason please reply back with details and we'll see what we can do.
hmagnanao
hmagnanao
Thanks. That's what I was thinking. Are there any plans to add that as an option to the current command line ? What we want is an option to basically delete the current working copy and overwrite it with all the versions in the repository. For example, if my last workspace has a file that was deleted in the repo, I want that file deleted in my workspace the next time, I bring down the repo.
orbrey
orbrey
In that case you'd need to remove the file from the working copy (using the subversion delete command, either from command line or whichever frontend tool you're using) and then commit it to the repo before you delete the working copy - that way you'll get another revision with that file removed. Once that's done you can safely delete the working copy folder.  That way, next time you check out a fresh working copy from the latest (head) revision of the repository the file won't be there, but you still have the option to check out previous revisions if it turns out you needed the file after all :)
hmagnanao
hmagnanao
I guess I always have to remove the old workspace before getting a new checkout or export.  I have a new question. How can I put an output of any svn command to a log file in windows ?
orbrey
orbrey
hmagnanao;167880I guess I always have to remove the old workspace before getting a new checkout or export.[/QUOTE] Not necessarily, you could always check out to a new folder with a different name if you needed to. Just an option though.  [QUOTE=hmagnanao;167880]I have a new question. How can I put an output of any svn command to a log file in windows ?
 I believe if you use the > option to send the output of the command to a file that will work? e.g:  svn update > C:\Users\Username\My Documents\SVNUpdateOutput.txt 2>&1  The bit on the end makes sure the error outputs also end up in the text file.  If you wanted to capture all the output in a single file, use two greater than symbols and the same file name each time:  svn update >> C:\Users\Username\My Documents\SVNUpdateOutput.txt 2>&1  That appends the output to the end of the file.  Hope that helps :)
hmagnanao
hmagnanao
Thanks for your responses.

1-7 of 7

Reply to this discussion

You cannot edit posts or make replies: You should be logged in before you can post.