traceback while doing an 'hg status'
Matt Mackall
mpm at selenic.com
Mon Jul 25 21:03:50 UTC 2005
On Mon, Jul 25, 2005 at 10:09:42AM +0530, Anupam Kapoor wrote:
> hi all,
>
> i have recently started playing with mercurial. on a repository (which
> stores all the configuration), i get this traceback while running an 'hg
> status':
>
> ,----
> | anupam at seldon settings % hg status
> | Traceback (most recent call last):
> | File "/usr/bin/hg", line 13, in ?
> | commands.run()
> | File "/usr/lib/python2.3/site-packages/mercurial/commands.py", line 847, in run
> | sys.exit(dispatch(sys.argv[1:]))
> | File "/usr/lib/python2.3/site-packages/mercurial/commands.py", line 913, in dispatch
> | return d()
> | File "/usr/lib/python2.3/site-packages/mercurial/commands.py", line 898, in <lambda>
> | d = lambda: i[0](u, repo, *args, **cmdoptions)
> | File "/usr/lib/python2.3/site-packages/mercurial/commands.py", line 673, in status
> | (c, a, d, u) = repo.changes(None, None)
> | File "/usr/lib/python2.3/site-packages/mercurial/hg.py", line 705, in changes
> | change = self.changelog.read(self.dirstate.parents()[0])
> | File "/usr/lib/python2.3/site-packages/mercurial/hg.py", line 160, in read
> | return self.extract(self.revision(node))
> | File "/usr/lib/python2.3/site-packages/mercurial/revlog.py", line 236, in revision
> | rev = self.rev(node)
> | File "/usr/lib/python2.3/site-packages/mercurial/revlog.py", line 160, in rev
> | def rev(self, node): return self.nodemap[node]
> | KeyError: 'R\x02\x17$\xb1{\xb3\xc2\xceL@\xfd\x9b\xee\x9b+\x0e\xeb\xf6\x8a'
> | anupam at seldon settings %
> `----
>
> sequence of events leading to this (as best as i remember) is :
>
> - i ran hg status to get a list of all new mozilla files:
> ,----
> | anupam at seldon settings % firefox_uncomitted_files=`hg status | grep
> | '.*dot-mozilla.*' | cut -f2 -d' '`
> `----
That's kind of an odd way to do things. And you probably don't want to
commit your cache.
> - running 'hg commit --text "regular updates of firefox control files"
> `echo $firefox_uncomitted_files`', then produces this message:
> ,----
> | abort: No such file or directory: /home/anupam/settings/dot-mozilla/firefox/wk44f5ax.default/Cache/00EE314Dd01
> | transaction abort!
> | rollback completed
> `----
This file disappeared after commit had decided what files to commit,
but before it could commit it. So then it undid everything.
> - then i ran an 'hg undo'.
This will have undone your _previous_ commit. Which seems to be where
the problem occurs.
--
Mathematics is the supreme nostalgia of our time.
More information about the Mercurial
mailing list