3

I have a folder checked out using TortoiseSVN. If I copy a newer version of a file over the existing versioned file, TortoiseSVN correctly identifies that the file is modified. However when I do a "diff with previous version", it reports "no differences".

If I use WinMerge I can see that the files ARE different.

Does anyone know why the TortoiseSVN diff is failing?

3 Answers 3

3

Diff with previous is a different command than looking what changed in your workingcopy.

Previous is defined to be the version before the version you have in your workingcopy:

                 A revision argument can be one of:
                    NUMBER       revision number
                    '{' DATE '}' revision at start of the date
                    'HEAD'       latest in repository
                    'BASE'       base rev of item's working copy
                    'COMMITTED'  last commit at or before BASE
                    'PREV'       revision just before COMMITTED

If you don't see changes against PREVIOUS, your workingcopy reverted the changes of COMMITTED

1
  • Thanks Bert - that has identified the problem and a lesson learned for me! I used the TortoiseSVN 'diff' command rather than 'diff with previous version' and that highlighted the changes. So it must have been that the version before the HEAD was exactly the same as my workingcopy - hence that's why I saw no differences in 'diff with previous version'. Nov 20, 2008 at 16:41
2

It may be your 'ignore white space' settings. If one is set to true, and this other is not, this behaviour will occur.

0

Did the filename change in any way?

We had one case where someone copied a newer revision edited outside the working directory to the working directory. TortiseSVN marked the file has changed, but couldn't diff it. Turns out the original working copy was named "configfile.txt" and he renamed his "ConfigFile.txt" to make it more readable. When he named his file back to "configfile.txt" and copied that over, everything worked again.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.