I am playing around with SVN trying to get a better feel for how it works. I added some files to my repository and checked them out into 2 separate working directories. For working directory 1 I am using my SQL client software (Aqua Data Studio) to modify the file and working directory 2 I am just using Windows Explorer with TortoiseSVN.
My question is, does SVN or the clients built on top of it, never show when a file in your working copy is out of date? If I make a change in working directory 1 and commit I would expect to see working directory 2 notify me that my working copy is out of date with the repository. Is this ever the case? Is there any way to tell which files in my working directories are out of date or do I just need to be careful to always update prior to making a change to a file?
By far the easiest way to revert the changes from one or more revisions, is to use the revision log dialog. Select the file or folder in which you need to revert the changes. If you want to revert all changes, this should be the top level folder. Select TortoiseSVN → Show Log to display a list of revisions.
If you right-drag the folder and use "SVN move versioned item(s) here", then you keep the history. Even the history of the files within the folder. But, the log dialog won't show the history unless you uncheck the box "Stop on copy/rename".
To get an overview of your changes, use the svn status command. You may use svn status more than any other Subversion command. If you run svn status at the top of your working copy with no arguments, it detects all file and tree changes you've made.
An svn commit of the file will fail with an “out-of-date” error. The file should be updated first; an svn update command will attempt to merge the public changes with the local changes. If Subversion can't complete the merge in a plausible way automatically, it leaves it to the user to resolve the conflict.
Try svn status --show-updates
[EDIT] I didn't notice at first that you were using Windows, but this command should work for others running OSX or Linux
With TortoiseSVN, use the "Check for Modifications" command, then hit the "Check Repository" button.
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