Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Fixing a direct rename instead of svn rename

Tags:

svn

I wanted to rename a file called test.py to main.py. test.py is under subversion version control. I renamed the file directly, but realized later that I should have used svn rename instead. Now svn status shows the following:

? main.py
! test.py

Any way to fix this ?

like image 400
Joe Avatar asked Mar 28 '11 10:03

Joe


2 Answers

Rename it back, then use svn rename?

like image 108
Andrew Aylett Avatar answered Oct 10 '22 17:10

Andrew Aylett


If you just renamed it but don't change it use: svn revert and then svn rename. In other case do svn delete main.py and svn add test.py

P.S. The advantage of the svn rename is that file history will be saved. When you do delete and the add the file history will be lost.

like image 27
maverik Avatar answered Oct 10 '22 17:10

maverik