Unable to commit new repository

Tim Post tim.post at netkinetics.net
Tue Mar 27 06:45:46 UTC 2007


Hello to all,

I'm just getting going with Mercurial and found the documentation on the
Wiki. So far I've gone through the basic use tutorials and the quick
start found here :

http://www.selenic.com/mercurial/wiki/index.cgi/QuickStart

I've installed Mercurial and its working, I just can't get a repository
going.

I've created a project in /usr/src/project, which contains a .hgignore
file that looks like this :

syntax: glob
*~
*.o
*.tmp
*.err
*.db

My ~/.hgrc file looks like this:

[ui]
username = Tim Post <tim.post at netkinetics.net>
editor = nano

I am able to do a hg init and hg status to double check my hgignore
file, everything I'd like to appear is appearing. I run a hg add and
then hg status, all of my files have been marked for adding on the next
commit. 

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

The file names are being passed to the editor, the latest one was :

/tmp/hg-editor-TCNMXL.txt

But mercurial is always thinking something went wrong. Has anyone else
experienced the problem, if so .. how did you fix it? I have saved the
file manually and even double checked it was open in /tmp via lsof from
another shell. Can't understand why it isn't working correctly.

Running on Ubuntu LTS.

Thanks in advance.
--Tim




More information about the Mercurial mailing list