Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse & SVN: How to Rename Files to Uppercase?

I'm using Eclipse and plugin Subeclipse for SVN. I just wanted to rename a file to uppercase the name. Example: "file_a.txt" to "FILE_A.TXT" What should be my best practice?

I tried to right-click on the file and select "Rename"(F2) to rename then commit to SVN. But I encountered an error:

Problems encountered while moving resources.
SVN: '0x00000118: Move' operation finished with error
Move 'file_a.txt' to '/project/package' was failed.
svn: File 'C:\eclipse\project\package\FILE_A.TXT' already exists

Thank you very much in advance.

like image 656
Jemru Avatar asked Dec 20 '22 23:12

Jemru


1 Answers

Here's my workaround:
For example, I want rename abc.txt to Abc.txt

  1. svn rename abc.txt abc.txt.temp
  2. svn commit
  3. svn rename abc.txt.temp Abc.txt
  4. svn commit

rename is same as copy then delete
You won't lost any commit history,
the time line of the file still trackable from the very beginning to now

like image 50
fantouch Avatar answered Dec 31 '22 05:12

fantouch