Unable to commit new repository
Tim Post
tim.post at netkinetics.net
Tue Mar 27 09:18:57 UTC 2007
On Tue, 2007-03-27 at 10:04 +0200, Marcin Kasperski wrote:
> > 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"
That worked fine.
>
> 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).
Indeed was the case here. I was using a serial redirect which was
garbling my arrow keys in VI (and nano) which is why I tried nano to
begin with. Using a sensible terminal everything went just fine.
After just using Mercurial for an hour I'm already really beginning to
wrap around how it works. Its a really intuitive tool.
Thanks for the reply!
--Tim
More information about the Mercurial
mailing list