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
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.
In short: The remote helper of Git 1.9.3 is not compatible with hg 3.0
You can eiher downgrade hg, or rebuild Git and cherry-pick this commit:
commit 58aee0864adeeb5363f2a06728596f9c9315811f
Author: Felipe Contreras [off-list ref]
Date: Sat May 3 21:16:54 2014 -0500
remote-hg: add support for hg v3.0
HTH
/Torsten
Torsten Bögershausen wrote:
quoted
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.
In short: The remote helper of Git 1.9.3 is not compatible with hg 3.0
You can eiher downgrade hg, or rebuild Git and cherry-pick this commit:
No need to rebuild Git.
You can also use the latest version:
https://github.com/felipec/git-remote-hg
--
Felipe Contreras
Le 12 mai 2014 à 21:37, Felipe Contreras [off-list ref] a écrit :
Torsten Bögershausen wrote:
quoted
quoted
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.
In short: The remote helper of Git 1.9.3 is not compatible with hg 3.0
You can eiher downgrade hg, or rebuild Git and cherry-pick this commit:
No need to rebuild Git.
You can also use the latest version:
https://github.com/felipec/git-remote-hg
Thanks Felipe and Torsten, just using the HEAD version of git-remote-hg solved the problem.
Best regards,
Charles
(Please use reply-all and don't snip the important stuff)
On 2014-05-13 09.54, Charles Brossollet wrote:
Le 12 mai 2014 à 21:37, Felipe Contreras [off-list ref] a écrit :
quoted
Torsten Bögershausen wrote:
quoted
quoted
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.
In short: The remote helper of Git 1.9.3 is not compatible with hg 3.0
You can eiher downgrade hg, or rebuild Git and cherry-pick this commit:
quoted
No need to rebuild Git.
You can also use the latest version:
https://github.com/felipec/git-remote-hg
Thanks Felipe and Torsten, just using the HEAD version of git-remote-hg solved the problem.
Best regards,
Charles--
I did some testing with Git 2.0-rc3 + 58aee0864adeeb5363f.
The remote-helper tests for hg-git worked OK
with both hg version 2.9 and 3.0 under both Mac OS and Linux.
Should we consider 58aee086 to be included in Git 2.0 ?