1. TortoiseHg
  2. TortoiseHg
  3. thg
  4. Issues
Issue #2574 invalid

After updating to 2.7.2 my repo is useless and I get the error below

Anonymous created an issue
** Mercurial version (2.5.4).  TortoiseHg version (2.7.2)
** Command: 
** CWD: C:\Windows
** Encoding: cp1252
** Extensions loaded: bigfiles, patchbomb, rebase, transplant, mq, purge
** Python version: 2.7.3 (default, Apr 10 2012, 23:24:47) [MSC v.1500 64 bit (AMD64)]
** Windows version: sys.getwindowsversion(major=6, minor=1, build=7601, platform=2, service_pack='Service Pack 1')
** Processor architecture: x64
** Qt-4.8.4 PyQt-4.9.6 QScintilla-2.7
Traceback (most recent call last):
  File "tortoisehg\hgqt\qtlib.pyo", line 1123, in showEvent
  File "tortoisehg\hgqt\qtlib.pyo", line 1135, in get
  File "tortoisehg\hgqt\repowidget.pyo", line 375, in createCommitWidget
  File "tortoisehg\hgqt\commit.pyo", line 353, in commitSetupButton
  File "tortoisehg\hgqt\commit.pyo", line 268, in _getPreferredActionName
  File "mercurial\context.pyo", line 205, in tags
  File "mercurial\localrepo.pyo", line 616, in nodetags
  File "mercurial\util.pyo", line 246, in __get__
  File "mercurial\localrepo.pyo", line 539, in _tagscache
  File "hgext\mq.pyo", line 3441, in _findtags
  File "mercurial\localrepo.pyo", line 576, in _findtags
  File "mercurial\tags.pyo", line 53, in findglobaltags
  File "mercurial\context.pyo", line 549, in data
  File "mercurial\util.pyo", line 246, in __get__
  File "mercurial\context.pyo", line 457, in _filenode
  File "mercurial\revlog.pyo", line 791, in lookup
LookupError: data/.hgtags.i@62a7fc5e9cb6: no match found

Comments (3)

  1. Steve Borho

    Mercurial itself is busted, thg is just communicating this to you. Looks like your .hgtags file references a revision which does not exist.

    Mercurial used to capture these errors and not allow them to trigger tracebacks, but this is often re-broken.

    If you delete the line in .hgtags which starts with 62a7fc5e9cb6, the problem should be fixed

  2. Anis Limaiem

    Thanks Steve. I tried your workaround but I cannot find 62a7fc5e9cb6 in .hgtags. It is really becoming very frustrating as I am getting this error frequently and the only solution I have is to re-clone again my repo which takes a very long time...

  3. Log in to comment