Question Locked

Error running Mercurial

0 helpful
2 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hi,

I'm a new user of the Mercurial system. I am trying out the system the first time on my pc, and got some error messages when I try to "hg ci" my changes on my local repository.

This were the steps that I took

-create directory on unix system (Solaris)
-mv some txt files into the directory
-run hg init on that directory (successful)

-run hg ci -A
response:
HG: user: MT KHOO
HG: branch default
HG: changed x1.txt
~
~
~
~
"/tmp/hg-editor-fBtjNQ.txt" 4 lines, 80 characters

-Ctrl-z because no response from terminal
-run hg status
response:
cvsserv{b10971}116:hg status
A x1.txt

-vi x1.txt
-edit x1.txt (add some lines)
-hg status
response:
cvsserv{b10971}119:hg status
A x1.txt.

The respnse shows that I have not modified the file (the "A" before xi.txt), but in fact, I have already done so!!.

-when I run "hg ci" again, the response shows:
cvsserv{b10971}120:hg ci
waiting for lock on working directory of /user/b10971/test6 held by 'cvsserv:103
00'

Any idea whats going on??

2 replies

by b10971

Hi,

When I manage to run the hg ci command, i am getting this error message:

File "/user/r28629/usr/solaris-2.6/bin//hg", line 11, in ?
mercurial.commands.run()
File "/user/r28629/usr/solaris-2.6/ASpy24/lib/python2.4/site-packages/mercurial/commands.py", line 3052, in run
sys.exit(dispatch(sys.argv[1:]))
File "/user/r28629/usr/solaris-2.6/ASpy24/lib/python2.4/site-packages/mercurial/commands.py", line 3274, in dispatch
return d()
File "/user/r28629/usr/solaris-2.6/ASpy24/lib/python2.4/site-packages/mercurial/commands.py", line 3233, in
d = lambda: func(u, repo, *args, **cmdoptions)
File "/user/r28629/usr/solaris-2.6/ASpy24/lib/python2.4/site-packages/mercurial/commands.py", line 459, in commit
force_editor=opts.get('force_editor'))
File "/user/r28629/usr/solaris-2.6/ASpy24/lib/python2.4/site-packages/mercurial/localrepo.py", line 763, in commit
tr = self.transaction()
File "/user/r28629/usr/solaris-2.6/ASpy24/lib/python2.4/site-packages/mercurial/localrepo.py", line 569, in transaction
aftertrans(renames))
File "/user/r28629/usr/solaris-2.6/ASpy24/lib/python2.4/site-packages/mercurial/transaction.py", line 23, in __init__
raise AssertionError(_("journal already exists - run hg recover"))
AssertionError: journal already exists - run hg recover
cvsserv{b10971}46:

This discussion is closed to new replies.