Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 375433 - dev-vcs/hg-git-0.2.6 incompatible with dev-vcs/mercurial-1.9
Summary: dev-vcs/hg-git-0.2.6 incompatible with dev-vcs/mercurial-1.9
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Dirkjan Ochtman (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-17 08:30 UTC by Fabian Groffen
Modified: 2011-08-29 18:38 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Fabian Groffen gentoo-dev 2011-07-17 08:30:16 UTC
% qlist -IUv mercurial hg-git
dev-vcs/hg-git-0.2.6
dev-vcs/mercurial-1.9
% hg root
*** failed to import extension hggit: 'module' object has no attribute 'findoutgoing'
** unknown exception encountered, please report by visiting
**  http://mercurial.selenic.com/wiki/BugTracker
** Python 2.7.2 (default, Jun 28 2011, 17:46:36) [GCC 4.2.1 (Gentoo 4.2.1_p5666, Apple Inc. build 5666) (dot 3)]
** Mercurial Distributed SCM (version 1.9)
** Extensions loaded: graphlog, progress, mq, record, transplant, convert, rebase, patchbomb, purge
Traceback (most recent call last):
  File "/Library/Gentoo/usr/bin/hg-2.7", line 38, in <module>
    mercurial.dispatch.run()
  File "/Library/Gentoo/usr/lib/python2.7/site-packages/mercurial/dispatch.py", line 27, in run
    sys.exit(dispatch(request(sys.argv[1:])))
  File "/Library/Gentoo/usr/lib/python2.7/site-packages/mercurial/dispatch.py", line 64, in dispatch
    return _runcatch(req)
  File "/Library/Gentoo/usr/lib/python2.7/site-packages/mercurial/dispatch.py", line 87, in _runcatch
    return _dispatch(req)
  File "/Library/Gentoo/usr/lib/python2.7/site-packages/mercurial/dispatch.py", line 646, in _dispatch
    repo = hg.repository(ui, path=path)
  File "/Library/Gentoo/usr/lib/python2.7/site-packages/mercurial/hg.py", line 93, in repository
    repo = _peerlookup(path).instance(ui, path, create)
  File "/Library/Gentoo/usr/lib/python2.7/site-packages/mercurial/hg.py", line 78, in _peerlookup
    return thing(path)
  File "/Library/Gentoo/usr/lib/python2.7/site-packages/hggit/__init__.py", line 45, in _local
    p = hgutil.drop_scheme('file', path)
AttributeError: 'NoneType' object has no attribute 'drop_scheme'

It works fine with 1.8*, I suggest adding a dependency of "<dev-vcs/mercurial-1.9" for the moment.

% qlist -IUv mercurial hg-git
dev-vcs/hg-git-0.2.6
dev-vcs/mercurial-1.8.3
% hg root
/private/var/automount/nfs/ra/export/gentoo/portage-hg
Comment 1 Fabian Groffen gentoo-dev 2011-08-27 17:19:10 UTC
The following four patches are necessary to make hg-git-0.2.6 work with mercurial-1.9 (in this order):

https://bitbucket.org/durin42/hg-git/changeset/61865ad88740/raw
https://bitbucket.org/durin42/hg-git/changeset/bcc79fa3fe09/raw
https://bitbucket.org/durin42/hg-git/changeset/5fdff9b8e742/raw
https://bitbucket.org/durin42/hg-git/changeset/6867b01d1379/raw

Since a 0.2.7 seems to be far away, please provide a 0.2.6-r1 with these patches, or allow me to commit it.
Comment 2 Dirkjan Ochtman (RETIRED) gentoo-dev 2011-08-29 11:30:45 UTC
Sorry I haven't gotten to it. By all means go ahead and add the patches.

Perhaps you want to co-maintain? Maybe the python team doesn't make too much sense on this one.
Comment 3 Fabian Groffen gentoo-dev 2011-08-29 11:34:04 UTC
Since I'm using this plugin at the moment, I don't mind co-maintaining it.  I'll push out a -r1 tonight.  Thanks.
Comment 4 Fabian Groffen gentoo-dev 2011-08-29 18:38:09 UTC
ok, committed now, registered myself as co-maintainer.