Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What to do with a svn-commit.tmp

Tags:

svn

Every time I do a status on svn using terminal I get this file. ? svn-commit.8.tmp

I know its a failed commit comment file but how do I get rid of it. I don't know if I should rm it or how to deal with it.

like image 315
Chapsterj Avatar asked Aug 18 '11 22:08

Chapsterj


People also ask

What does svn commit mean?

svn commit will send any lock tokens that it finds and will release locks on all PATH s committed (recursively) unless --no-unlock is passed. Tip. If you begin a commit and Subversion launches your editor to compose the commit message, you can still abort without committing your changes.

What is svn commit and update?

Commit uploads your changes on the CVS / SVN server, and Update overwrites the files on your localhost with the ones on the server.


2 Answers

Removing it is just fine; it's unversioned and all of the text is stored in the SVN log anyways. If your commit fails, you can reuse it by calling:

svn commit -F svn-commit.tmp 

subversion will then automatically remove your svn-commit.tmp file.

like image 194
RustyTheBoyRobot Avatar answered Sep 21 '22 15:09

RustyTheBoyRobot


Just rm it.

The reason it's left behind when a commit fails is so that you don't lose the (potentially long) commit message that you just wrote -- you can open the file in a text editor and paste the text as the commit message of your next commit when you fix the problem that prevented your first commit.

like image 34
Ken Bloom Avatar answered Sep 21 '22 15:09

Ken Bloom