3
votes

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

3 Answers

3
votes

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

2
votes

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

0
votes

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.