Doug Chamberlain
Doug Chamberlain

Reputation: 11341

How can I compare a file with previous revision after moving the file to another folder and renaming it using svn?

I have a file in Rev 123, I move the file to another folder and do a commit. Now I rename the page an do another commit. Subversion seems to forget about the file, and I can only diff back to when I moved the file to another folder and renamed it.

I have to rename it, because the old name is terrible.

Upvotes: 0

Views: 181

Answers (2)

Petr Kozelka
Petr Kozelka

Reputation: 7990

Just go to the new directory (where you moved it) and diff it as usually:

cd .../targetdir
svn -r124:123 theFileName.txt

Alternatively, you can use url to the target directory:

svn -r124:123 http://example.com/svn/repo/trunk/targetdir/theFileName.txt

Upvotes: 0

JB Nizet
JB Nizet

Reputation: 691765

If you're using TortoiseSVN, uncheck the "Stop on copy/rename" checkbox in the log window.

If you're using the svn command I don't see this behavior.

If you're using some other SVN client, there must be some equivalent of the STop on copy/rename" option somewhere.

Upvotes: 1

Related Questions