-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mercurial 3.2 breaks git-remote-hg #27
Comments
If you look at the mercurial changelog, they mention it, but unfortunately without any migration instructions. And, they also removed the LocalRepository.push method, but it fortunately appears not to be used anywhere. |
Some of the changes are documented at http://mercurial.selenic.com/wiki/ApiChanges:
getbundle to getchangegroup rename is not documented, but here it is: |
With Mercuail 3.2.3 and the patch from #28 applied, I'm seeing
Which is slightly different, but perhaps related? |
This looks as if the patch is not actually applied -- perhaps you have multiple copies of git-remote-hg on your system and patched the wrong one? |
Yeah, you're right. Ebuild error on my part. Sorry for the noise. |
#28 Works for me on Fedora Rawhide, FWIW (I'm backporting it to the Fedora package now). |
I just cloned right from github and got this: git clone "hg::https://code.google.com/p/pychess/" |
@theking42 the fix has not been merged yet, you have to check out the branch from #28 or apply the fix to your master checkout. |
@theking42 you could also just use my fork, which fixes this issue and a few other minor things: https://github.com/fingolfin/git-remote-hg |
@fingolfin I used your fork to solve this bug. Thanks. |
Please to merge. |
You can also use mercurial<3.2 as a workaround. |
Is @fingolfin's changes not merged? I just pulled today and got the same error. Will try @fingolfin's fork |
👍 for @fingolfin's fork. Is there a discussion of what needs to be done for a merge? |
@pcn For a merge to happen, Felipe would have to do it, i.e. resurface. But it seems that currently he is busy with other things. Anyway, as long as my fork works for you, that should do it, right? (That said, I don't really use git-remote-hg myself very mich right now, so it indeed would be nice if there was somebody to properly maintain this project). |
@DanielGGordon No it is not merged. Rest assured, if it ever gets merged, this issue will get a comment clearly stating so ;-) |
Worth noting that
https://github.com/glandium/git-cinnabar
may be a useful substitute given the apparent abandonment of this project.
Dustin
|
@djmitche git-cinnabar seems not quite active. The last commit is in April. Have you used it in real projects? |
I haven't as I've begun using hg directly, but I've heard good things from
|
@nengxu The 'next' branch had its last commit on 28 August. I've used Cinnabar, it works fine but doesn't support merges at the moment, which is quite a limitation. |
same error as of today. thks @djmitche |
@nrolland So, have you tried my fork, as suggested? |
no, I went to the one mentioned by @djmitche no deep reason though.. is this better to use this fork ? I find it absolutely idiotic that people would do "innovation" on the source control front, anything that makes hg get out of my way is good |
Well, |
for noobs like me you recommend this over cinnabar ? On Fri, Oct 30, 2015 at 6:28 PM, Max Horn notifications@github.com wrote:
Nicolas Rolland |
git-remote-hg stopped working after I upgraded Mercurial to 3.6.3: 2016-01-12 09:20:59 sunny@linode:~/src/hggit/mutt (home-sunny *) $ PYTHONPATH=/usr/local/lib/python2.7/site-packages git clone hg::http://dev.mutt.org/hg/mutt Cloning into 'mutt'... Traceback (most recent call last): File "/home/sunny/bin/git-remote-hg", line 1322, in <module> sys.exit(main(sys.argv)) File "/home/sunny/bin/git-remote-hg", line 1286, in main repo = get_repo(url, alias) File "/home/sunny/bin/git-remote-hg", line 433, in get_repo repo.pull(peer, heads=None, force=True) File "/usr/local/lib/python2.7/site-packages/mercurial/repoview.py", line 339, in __getattr__ return getattr(self._unfilteredrepo, attr) AttributeError: 'localrepository' object has no attribute 'pull' 2016-01-12 09:21:02 sunny@linode:~/src/hggit/mutt (home-sunny *) $ According to <felipec/git-remote-hg#27> it's broken by Mercurial 3.2 . github.com/felipec/git-remote-hg.git hasn't been updated since 2014-06-03, but this fork at <git@github.com:fingolfin/git-remote-hg.git> fixes this problem and seems to work great out of the box. Synced against the newest commit bd8c46e1ea29d192bb8ad67708b33ea59d396b7a from 2015-12-07. Also update synced.sql with the new location and timestamp when it was updated. a22c32c2-b90a-11e5-9ca0-fefdb24f8e10
@felipec how come @fingolfin's patch is not merged yet? |
@fingolfin is not patch, its actual fork against this, which depricated. |
@nrolland sorry, didn't see your last question. I have never tried What I can say is that my fork of this project has been working well for me for some years now. However, that doesn't mean it will work perfectly for you -- perhaps you will use it quite differently from the way I use it, uncovering problems I never noticed myself... who knows... |
@fingolfin I'm using your fork now, and it's working great :) Thanks |
Fixed in 1e27907. |
The home page clearly states: Contributing Send your patches to the mailing list git-fc@googlegroups.com (no need to subscribe). Nobody sent any patches. |
Upgrading to Mercurial 3.2 appears to break git-remote-hg.
I get the following upon running
git fetch
:Downgrading to Mercurial 3.1.2 resolves the issue.
The text was updated successfully, but these errors were encountered: