messed up repo. can I recover?

581 views
Skip to first unread message

Michael Jay Lippert

unread,
Jun 11, 2012, 7:49:33 PM6/11/12
to Hg list
Hi,
I know the old tortoisehg 1.1.10 w/ hg 1.8.1 isn't really supported anymore, but I'm still using it.

I just did an mq pop from tortoisehg and then closed the explorer window.

And now I can't reopen the tortoisehg explorer window on that repository.

My hg repository now seems messed up.

hg status says "warning: ignoring unknown working parent 904462990da1!", and then lists a bunch of modified files.
hg log just returns "abort: 00changelog.i@904462990da1: no node!"

Is there a way to fix this repository? Even just removing this bogus node so that I may have lost the last changeset or 2 would be useful.

I'd like to know more for the future because I'm cloning a new repository, and I'll copy my mq patches over to it. But that's still more work and time than if I could quickly fix the broken repo.

Thanks,
Mike

This is the tortoisehg error when I try to open the explorer on this repo:
{{{
#!python
** Please report this bug to http://bitbucket.org/tortoisehg/stable/issues
** Mercurial version (1.8.1).  TortoiseHg version (1.1.10)
** Command: --nofork log
** CWD: D:\Development\PrimeHg
** Extensions loaded: fixfrozenexts, graphlog, hggit, rebase, mq
** Python 2.6.4 (r264:75708, Oct 26 2009, 08:23:19) [MSC v.1500 32 bit (Intel)]
** sys.getwindowsversion(): (6, 1, 7601, 2, 'Service Pack 1')
** Processor architecture: x64
Traceback (most recent call last):
  File "tortoisehg\hgtk\hgtk.pyo", line 74, in dispatch
  File "tortoisehg\hgtk\hgtk.pyo", line 202, in _runcatch
  File "tortoisehg\hgtk\hgtk.pyo", line 272, in runcommand
  File "tortoisehg\hgtk\hgtk.pyo", line 323, in _runcommand
  File "tortoisehg\hgtk\hgtk.pyo", line 277, in checkargs
  File "tortoisehg\hgtk\hgtk.pyo", line 271, in <lambda>
  File "mercurial\util.pyo", line 433, in check
  File "tortoisehg\hgtk\hgtk.pyo", line 435, in log
  File "tortoisehg\hgtk\hgtk.pyo", line 339, in gtkrun
  File "tortoisehg\hgtk\gdialog.pyo", line 257, in display
  File "tortoisehg\hgtk\gdialog.pyo", line 479, in _setup_gtk
  File "tortoisehg\hgtk\history.pyo", line 344, in get_menu_list
  File "tortoisehg\util\hglib.pyo", line 158, in getfilteredtags
  File "C:\Program Files\HgExtensions\hg-git\hggit\hgrepo.py", line 68, in tags
  File "mercurial\localrepo.pyo", line 333, in tags
  File "hgext\mq.pyo", line 2962, in _findtags
  File "mercurial\revlog.pyo", line 309, in rev
LookupError: 00changelog.i@904462990da1: no node

}}}

Michael Jay Lippert

unread,
Jun 11, 2012, 7:57:37 PM6/11/12
to Hg list
OK I think I just figured it out.
The problem was in the mq patches/status file. I just deleted the contents of that file, and things are ok again.

I then just have to update discarding any changes, and qpush the patches I want back.

Mike
Reply all
Reply to author
Forward
0 new messages