Gilson PJ
Gilson PJ

Reputation: 3600

Is there any difference between SVN rename and delete, add

I have renamed a file from file explorer then I added the new file to SVN and deleted the previous file from terminal. and then the svn showing

D <FileName>
A <NewFileName>

Once I did svn rename I found that svn is also doing the same thing

D <FileName>
A <NewFileName>

Is there any difference between svn rename and svn delete, add?

Upvotes: 3

Views: 865

Answers (1)

bahrep
bahrep

Reputation: 30662

Yes, there is. Subversion records moves and renames as svn copy followed by svn delete, and beginning with SVN 1.9 saves a link between the source and target file.

Upvotes: 5

Related Questions