git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Error using git-remote-hg

From
CBCharles Brossollet <chbrosso@lltech.fr>
Date
May 12, 2014, 15:16 UTC
Message-ID
<ACDAFE7C-6615-4E44-AE6C-C12CD001EF4F@lltech.fr>
Hello,
I have the following error while pushing to an hg repository though the "remote translator":

$ git remote -v origin hg::ssh://charlesb05@hg.code.sf.net/u/charlesb05/lapdogapi (push) origin hg::ssh://charlesb05@hg.code.sf.net/u/charlesb05/lapdogapi (fetch)

$ git push origin
Password:
searching for changes
no changes found
searching for changes
Traceback (most recent call last):
  File "/usr/local/bin/git-remote-hg", line 1254, in <module>
    sys.exit(main(sys.argv))
  File "/usr/local/bin/git-remote-hg", line 1238, in main
    do_export(parser)
  File "/usr/local/bin/git-remote-hg", line 1119, in do_export
    if not push(parser.repo, peer, parsed_refs, p_revs):
  File "/usr/local/bin/git-remote-hg", line 1007, in push
    ret = push_unsafe(repo, remote, parsed_refs, p_revs)
  File "/usr/local/bin/git-remote-hg", line 984, in push_unsafe
    cg = repo.getbundle('push', heads=list(p_revs), common=common)
  File "/usr/local/lib/python2.7/site-packages/mercurial/repoview.py", line 217, in __getattr__
    return getattr(self._unfilteredrepo, attr)
AttributeError: 'localrepository' object has no attribute 'getbundle'
I'm using git 1.9.3 on Mac OS X 10.9.2, with hg 3.0 installed with brew.
It used to work before, on this same repository, since then git and hg were both upgraded.

Thanks for help, —- Charles

Next: Torsten Bögershausen
Message 1 of 13 in “Error using git-remote-hg”
  1. Charles BrossolletMay 12, 2014
  2. Torsten BögershausenMay 12, 2014
  3. Felipe ContrerasMay 12, 2014
  4. Charles BrossolletMay 13, 2014
  5. Torsten BögershausenMay 13, 2014
  6. Junio C HamanoMay 13, 2014
  7. Felipe ContrerasMay 13, 2014
  8. William GiokasMay 13, 2014
  9. Felipe ContrerasMay 13, 2014
  10. William GiokasMay 13, 2014
  11. Felipe ContrerasMay 13, 2014
  12. William GiokasMay 13, 2014
  13. Felipe ContrerasMay 13, 2014

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.