FilteredIndexError on pull (related to tag being deleted?)

8 views
Skip to first unread message

Sanjay Vasandani

unread,
Feb 26, 2024, 8:32:21 PMFeb 26
to hg-git
The only thing I can think of that might be relevant is that a tag was added in the remote Git repository and deleted shortly thereafter as it was a mistake.

See the following output:

importing 1 git commits
updating bookmark main
transaction abort!
rollback completed
** Python 3.11.7 (main, Dec  8 2023, 14:22:46) [GCC 13.2.0]
** Mercurial Distributed SCM (version 6.3.2+hg223.e0c0545e2e55)
** Extensions loaded: absorb, amend, beautifygraph, blackbox, commitextras, evolve 11.0.1, extdiff, fix, githelp, hggit 1.1.0 (dulwich 0.21.5), hggittools, hgk, histedit, narrow, purge, rebase, remotefilelog, share, split, topic 1.0.1, uncommit
Traceback (most recent call last):
  File "/usr/bin/hg", line 59, in <module>
    dispatch.run()
  File "/usr/lib/python3/dist-packages/mercurial/dispatch.py", line 143, in run
    status = dispatch(req)
             ^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/mercurial/dispatch.py", line 232, in dispatch
    status = _rundispatch(req)
             ^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/mercurial/dispatch.py", line 281, in _rundispatch
    ret = _runcatch(req) or 0
          ^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/mercurial/dispatch.py", line 467, in _runcatch
    return _callcatch(ui, _runcatchfunc)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/mercurial/dispatch.py", line 477, in _callcatch
    return scmutil.callcatch(ui, func)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/mercurial/scmutil.py", line 153, in callcatch
    return func()
           ^^^^^^
  File "/usr/lib/python3/dist-packages/mercurial/dispatch.py", line 454, in _runcatchfunc
    return _dispatch(req)
           ^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/mercurial/dispatch.py", line 1282, in _dispatch
    return runcommand(
           ^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/hgext/remotefilelog/__init__.py", line 579, in runcommand
    return orig(lui, repo, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/mercurial/dispatch.py", line 915, in runcommand
    ret = _runcommand(ui, options, cmd, d)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/mercurial/dispatch.py", line 1294, in _runcommand
    return cmdfunc()
           ^^^^^^^^^
  File "/usr/lib/python3/dist-packages/mercurial/dispatch.py", line 1280, in <lambda>
    d = lambda: util.checksignature(func)(ui, *args, **strcmdopt)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/mercurial/util.py", line 1880, in check
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/mercurial/util.py", line 1880, in check
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/google/home/sanjayvas/.local/lib/python3.11/site-packages/hgext3rd/evolve/__init__.py", line 563, in wrapmayobsoletewc
    res = origfn(ui, repo, *args, **opts)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/mercurial/util.py", line 1880, in check
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/mercurial/util.py", line 1880, in check
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/hgext/rebase.py", line 2179, in pullrebase
    ret = orig(ui, repo, *args, **opts)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/mercurial/util.py", line 1880, in check
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/mercurial/util.py", line 1880, in check
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/hgext/remotefilelog/__init__.py", line 1048, in pull
    result = orig(ui, repo, *pats, **opts)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/mercurial/util.py", line 1880, in check
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/mercurial/util.py", line 1880, in check
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/hgext/narrow/narrowcommands.py", line 153, in pullnarrowcmd
    return orig(ui, repo, *args, **opts)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/mercurial/util.py", line 1880, in check
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/mercurial/commands.py", line 5491, in pull
    modheads = exchange.pull(
               ^^^^^^^^^^^^^^
  File "/usr/local/google/home/sanjayvas/.local/lib/python3.11/site-packages/hggit/util.py", line 100, in inner
    return f(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^
  File "/usr/local/google/home/sanjayvas/.local/lib/python3.11/site-packages/hggit/gitrepo.py", line 195, in exchangepull
    pullop.cgresult = repo.githandler.fetch(remote, heads)
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/google/home/sanjayvas/.local/lib/python3.11/site-packages/hggit/git_handler.py", line 382, in fetch
    imported = self.import_git_objects(
               ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/google/home/sanjayvas/.local/lib/python3.11/site-packages/hggit/git_handler.py", line 1094, in import_git_objects
    first = self.repo.changelog.node(oldtiprev + 1)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/mercurial/repoview.py", line 342, in node
    raise error.FilteredIndexError(rev)
mercurial.error.FilteredIndexError: 10590

Sanjay Vasandani

unread,
Feb 26, 2024, 8:39:58 PMFeb 26
to hg-git
I determined that 10590 was a revision number. Upon further inspection, it was my most recent shelved item. After I unshelved it and committed it somewhere temporarily, I was able to pull again.

Dan Villiom Podlaski Christiansen

unread,
Mar 4, 2024, 10:35:02 AMMar 4
to hg-...@googlegroups.com
Would it be possible for you to write a shell script or test that
reproduces this? That would make it much easier to fix 🙂

Den tirs. 27. feb. 2024 kl. 02.39 skrev 'Sanjay Vasandani' via hg-git
<hg-...@googlegroups.com>:
> --
> You received this message because you are subscribed to the Google Groups "hg-git" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to hg-git+un...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/hg-git/08a7510f-f1db-41b3-b586-f23a29962659n%40googlegroups.com.



--
Dan Villiom Podlaski Christiansen
dan...@gmail.com
Reply all
Reply to author
Forward
0 new messages