Discussion:
hg 4.6 breaks hg-git and evolve plugins?
Augie Fackler
2018-05-20 02:10:07 UTC
Permalink
I'm getting the following error on plugins. Was FreeBSD a bit too hasty
in upgrading ports to 4.6?
I’d argue no, as (for good or ill) hg-git and evolve are less common.

I’d expect evolve tip to work fine: https://www.mercurial-scm.org/repo/evolve/ <https://www.mercurial-scm.org/repo/evolve/> (but I haven’t tested myself)
** Unknown exception encountered with possibly-broken third-party extension hggit
** which supports versions 4.5 of Mercurial.
** Please disable hggit and try your action again.
** If that fixes the bug please report it to https://bitbucket.org/durin42/hg-git/issues
** Python 2.7.15 (default, May 12 2018, 01:27:55) [GCC 4.2.1 Compatible FreeBSD Clang 6.0.0 (tags/RELEASE_600/final 326565)]
** Mercurial Distributed SCM (version 4.6)
** Extensions loaded: convert, hggit, strip
File "/usr/local/bin/hg", line 41, in <module>
dispatch.run()
File "/usr/local/lib/python2.7/site-packages/mercurial/dispatch.py", line 90, in run
status = (dispatch(req) or 0)
File "/usr/local/lib/python2.7/site-packages/mercurial/dispatch.py", line 210, in dispatch
ret = _runcatch(req)
File "/usr/local/lib/python2.7/site-packages/mercurial/dispatch.py", line 351, in _runcatch
return _callcatch(ui, _runcatchfunc)
File "/usr/local/lib/python2.7/site-packages/mercurial/dispatch.py", line 359, in _callcatch
return scmutil.callcatch(ui, func)
File "/usr/local/lib/python2.7/site-packages/mercurial/scmutil.py", line 160, in callcatch
return func()
File "/usr/local/lib/python2.7/site-packages/mercurial/dispatch.py", line 341, in _runcatchfunc
return _dispatch(req)
File "/usr/local/lib/python2.7/site-packages/mercurial/dispatch.py", line 971, in _dispatch
cmdpats, cmdoptions)
File "/usr/local/lib/python2.7/site-packages/mercurial/dispatch.py", line 727, in runcommand
ret = _runcommand(ui, options, cmd, d)
File "/usr/local/lib/python2.7/site-packages/mercurial/dispatch.py", line 979, in _runcommand
return cmdfunc()
File "/usr/local/lib/python2.7/site-packages/mercurial/dispatch.py", line 968, in <lambda>
d = lambda: util.checksignature(func)(ui, *args, **strcmdopt)
File "/usr/local/lib/python2.7/site-packages/mercurial/util.py", line 1553, in check
return func(*args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/mercurial/commands.py", line 1467, in clone
shareopts=opts.get('shareopts'))
File "/usr/local/lib/python2.7/site-packages/mercurial/hg.py", line 544, in clone
srcpeer = peer(ui, peeropts, source)
File "/usr/home/orbitz/.local/lib/python2.7/site-packages/hggit/__init__.py", line 325, in peer
newpeer = orig(uiorrepo, *args, **opts)
File "/usr/local/lib/python2.7/site-packages/mercurial/hg.py", line 189, in peer
return _peerorrepo(rui, path, create, intents=intents).peer()
File "/usr/local/lib/python2.7/site-packages/mercurial/hg.py", line 163, in _peerorrepo
obj = _peerlookup(path).instance(ui, path, create, intents=intents)
TypeError: __init__() got an unexpected keyword argument 'intents'
_______________________________________________
Mercurial mailing list
https://www.mercurial-scm.org/mailman/listinfo/mercurial
Paul Morelle
2018-05-20 10:59:40 UTC
Permalink
Post by Augie Fackler
I'm getting the following error on plugins.  Was FreeBSD a bit too hasty
in upgrading ports to 4.6?
I’d argue no, as (for good or ill) hg-git and evolve are less common.
I’d expect evolve tip to work
fine: https://www.mercurial-scm.org/repo/evolve/ (but I haven’t tested
myself)
hg-git is probably going to be more work. You’d need to ask on their
Hello,

I have proposed these patches to hg-git to fix the problems that I was
having with the new hg version, but they haven't been merged yet.

https://groups.google.com/forum/#!topic/hg-git/XDQrbr4FhA0    [PATCH 1
of 2] gitrepo: add missing 'intents' keyword (from hg 4.6) to
gitrepo.__init__
https://groups.google.com/forum/#!topic/hg-git/5lcPUzlxEFc     [PATCH 2
of 2] git_handler: use repo.__getitem__ instead of (removed) repo.changectx

It is probably not exhaustive, but this allows me to use hg-git with the
new version. Hope that it helps!

Paul
Jesus Cea
2018-08-08 13:38:56 UTC
Permalink
Post by Paul Morelle
I have proposed these patches to hg-git to fix the problems that I was
having with the new hg version, but they haven't been merged yet.
https://groups.google.com/forum/#!topic/hg-git/XDQrbr4FhA0    [PATCH 1
of 2] gitrepo: add missing 'intents' keyword (from hg 4.6) to
gitrepo.__init__
https://groups.google.com/forum/#!topic/hg-git/5lcPUzlxEFc     [PATCH 2
of 2] git_handler: use repo.__getitem__ instead of (removed) repo.changectx
Thanks for the patches, Paul.

I actually think that "hg-git" deserves more love. For some of us, it is
what allows us to keep using Mercurial instead of "downgrading" to git.
It should be better maintained and follow current Mercurial better.

I appreciate the effort and gives me value every day, all of us are
volunteers, but breaking constantly is... stressful. And it is painfully
slow too :(.

Maybe some mercurial core devels, knowing that hg-git provides huge
value to mercurial ecosystem, could help hg-git to cope with mercurial
API churning.
--
Jesús Cea Avión _/_/ _/_/_/ _/_/_/
***@jcea.es - http://www.jcea.es/ _/_/ _/_/ _/_/ _/_/ _/_/
Twitter: @jcea _/_/ _/_/ _/_/_/_/_/
jabber / xmpp:***@jabber.org _/_/ _/_/ _/_/ _/_/ _/_/
"Things are not so easy" _/_/ _/_/ _/_/ _/_/ _/_/ _/_/
"My name is Dump, Core Dump" _/_/_/ _/_/_/ _/_/ _/_/
"El amor es poner tu felicidad en la felicidad de otro" - Leibniz
Matt Harbison
2018-08-17 04:16:39 UTC
Permalink
Post by Jesus Cea
Post by Paul Morelle
I have proposed these patches to hg-git to fix the problems that I was
having with the new hg version, but they haven't been merged yet.
https://groups.google.com/forum/#!topic/hg-git/XDQrbr4FhA0 [PATCH 1
of 2] gitrepo: add missing 'intents' keyword (from hg 4.6) to
gitrepo.__init__
https://groups.google.com/forum/#!topic/hg-git/5lcPUzlxEFc [PATCH 2
of 2] git_handler: use repo.__getitem__ instead of (removed)
repo.changectx
Thanks for the patches, Paul.
I actually think that "hg-git" deserves more love. For some of us, it is
what allows us to keep using Mercurial instead of "downgrading" to git.
It should be better maintained and follow current Mercurial better.
I appreciate the effort and gives me value every day, all of us are
volunteers, but breaking constantly is... stressful. And it is painfully
slow too :(.
Maybe some mercurial core devels, knowing that hg-git provides huge
value to mercurial ecosystem, could help hg-git to cope with mercurial
API churning.
I'm not sure that much can be done about API churn, without bundling it as
a built in extension. I don't follow the development on that, so I'm not
sure if there's a reason it hasn't been bundled. It might even make it a
little easier to tie together with LFS.

But someone at work enabled it in our setup scripts, and I tend to be the
first to upgrade, so I feel your pain about it not always working on
upgrades.

David Douard
2018-05-22 07:38:21 UTC
Permalink
Post by Augie Fackler
I'm getting the following error on plugins.  Was FreeBSD a bit too hasty
in upgrading ports to 4.6?
I’d argue no, as (for good or ill) hg-git and evolve are less common.
I’d expect evolve tip to work
fine: https://www.mercurial-scm.org/repo/evolve/ (but I haven’t tested
myself)
evole 8.0.0 should work fine (we use it with no major problem at logilab).

https://www.mercurial-scm.org/repo/evolve/rev/8.0.0
Post by Augie Fackler
hg-git is probably going to be more work. You’d need to ask on their
** Unknown exception encountered with possibly-broken third-party extension hggit
** which supports versions 4.5 of Mercurial.
** Please disable hggit and try your action again.
** If that fixes the bug please report it to
https://bitbucket.org/durin42/hg-git/issues
** Python 2.7.15 (default, May 12 2018, 01:27:55) [GCC 4.2.1
Compatible FreeBSD Clang 6.0.0 (tags/RELEASE_600/final 326565)]
** Mercurial Distributed SCM (version 4.6)
** Extensions loaded: convert, hggit, strip
 File "/usr/local/bin/hg", line 41, in <module>
   dispatch.run()
 File "/usr/local/lib/python2.7/site-packages/mercurial/dispatch.py",
line 90, in run
   status = (dispatch(req) or 0)
 File "/usr/local/lib/python2.7/site-packages/mercurial/dispatch.py",
line 210, in dispatch
   ret = _runcatch(req)
 File "/usr/local/lib/python2.7/site-packages/mercurial/dispatch.py",
line 351, in _runcatch
   return _callcatch(ui, _runcatchfunc)
 File "/usr/local/lib/python2.7/site-packages/mercurial/dispatch.py",
line 359, in _callcatch
   return scmutil.callcatch(ui, func)
 File "/usr/local/lib/python2.7/site-packages/mercurial/scmutil.py",
line 160, in callcatch
   return func()
 File "/usr/local/lib/python2.7/site-packages/mercurial/dispatch.py",
line 341, in _runcatchfunc
   return _dispatch(req)
 File "/usr/local/lib/python2.7/site-packages/mercurial/dispatch.py",
line 971, in _dispatch
   cmdpats, cmdoptions)
 File "/usr/local/lib/python2.7/site-packages/mercurial/dispatch.py",
line 727, in runcommand
   ret = _runcommand(ui, options, cmd, d)
 File "/usr/local/lib/python2.7/site-packages/mercurial/dispatch.py",
line 979, in _runcommand
   return cmdfunc()
 File "/usr/local/lib/python2.7/site-packages/mercurial/dispatch.py",
line 968, in <lambda>
   d = lambda: util.checksignature(func)(ui, *args, **strcmdopt)
 File "/usr/local/lib/python2.7/site-packages/mercurial/util.py",
line 1553, in check
   return func(*args, **kwargs)
 File "/usr/local/lib/python2.7/site-packages/mercurial/commands.py",
line 1467, in clone
   shareopts=opts.get('shareopts'))
 File "/usr/local/lib/python2.7/site-packages/mercurial/hg.py", line
544, in clone
   srcpeer = peer(ui, peeropts, source)
 File
"/usr/home/orbitz/.local/lib/python2.7/site-packages/hggit/__init__.py",
line 325, in peer
   newpeer = orig(uiorrepo, *args, **opts)
 File "/usr/local/lib/python2.7/site-packages/mercurial/hg.py", line
189, in peer
   return _peerorrepo(rui, path, create, intents=intents).peer()
 File "/usr/local/lib/python2.7/site-packages/mercurial/hg.py", line
163, in _peerorrepo
   obj = _peerlookup(path).instance(ui, path, create, intents=intents)
TypeError: __init__() got an unexpected keyword argument 'intents'
_______________________________________________
Mercurial mailing list
https://www.mercurial-scm.org/mailman/listinfo/mercurial
_______________________________________________
Mercurial mailing list
https://www.mercurial-scm.org/mailman/listinfo/mercurial
--
David DOUARD LOGILAB
Directeur du département Outils & SystÚmes

+33 1 45 32 03 12 ***@logilab.fr
http://www.logilab.fr/id/david.douard

Formations - http://www.logilab.fr/formations
Développements - http://www.logilab.fr/services
Gestion de connaissances - http://www.cubicweb.org/
David Demelier
2018-05-22 07:48:38 UTC
Permalink
I'm getting the following error on plugins. Was FreeBSD a bit too
hasty
in upgrading ports to 4.6?
Yes,

Not having compatibility rules in Mercurial API is one of the biggest
frustration. Mercurial 4.6 also broke compatibility with Redmine, so I
must stick with 4.5 at the moment.

And also note that Fedora also ships hg-git package that is also not
working at the moment.
--
David
Loading...