Automatically reload the message left in svn-commit.tmp when retrying a failed commit?
Hallo,
this scenario happens to me often: I try to check in with svn commi开发者_Go百科t
, but for some reason the commit fails (because of conflict, locked files or whatnot). My commit message gets stored in svn-commit.tmp
. I fix the problem and try to check in again. I now have to enter the commit message from scratch. Wouldn't it be great if svn instead could load the message left in svn-commit.tmp
? Is there any way to make this happen?
It would be a bonus if it was possible to avoid the trails of svn-commit.tmp
files somehow.
I don't think there's any automated solution built into svn, but you can always invoke svn commit -F svn-commit.tmp
. Most of the time I use my editor to copy the message I had typed from svn-commit.tmp
to the new window.
You could make an editor script or a command-line script which would check for the presence of svn-commit.tmp
and, if found, pass it as argument and delete it after a successful commit.
精彩评论