Unable to commit new repository

Marcin Kasperski Marcin.Kasperski at softax.com.pl
Tue Mar 27 08:04:02 UTC 2007


> Then I try hg commit, everything goes great, nano comes up 
> and I make my edits / notes. This is where I run into trouble.
> No matter what I do, or what editor I use (nano , vi , etc), my
>  commit fails with this message:
> 
> transaction abort!
> rollback completed

It seems for some reason you fail to pass commit message to the 
mercurial. Try the following:

1) Give commit message as param instead of spawning editor:

   hg commit -m "My first commit"

2) If the above works, ensure you write sensible commit message 
and this message is not written in the lines with HG: prefix, 
ensure also you save the file before exiting the editor.

(The transaction abort usually happens when for some reason 
mercurial does not find the commit message in the file just 
edited).



More information about the Mercurial mailing list