Opened 13 years ago

Closed 13 years ago

#27196 closed defect (fixed)

hg-forest @20090409 +attribute error httprepository object has no attribute do_read

Reported by: nhojpatrick (John Patrick) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.9.2
Keywords: mercurial extension Cc: codethought, olexandr.voloshyn@…, khepler
Port: hg-forest

Description (last modified by jmroot (Joshua Root))

I've just installed mercurial and hg-forest and get the following error when trying to use it.

$ hg fclone http://hg.openjdk.java.net/bsd-port/bsd-port
** unknown exception encountered, please report by visiting
**  http://mercurial.selenic.com/wiki/BugTracker
** Python 2.6.6 (r266:84292, Sep  4 2010, 23:04:14) [GCC 4.2.1 (Apple Inc. build 5664)]
** Mercurial Distributed SCM (version 1.7)
** Extensions loaded: fetch, forest
Traceback (most recent call last):
  File "/opt/local/bin/hg", line 38, in <module>
    mercurial.dispatch.run()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/mercurial/dispatch.py", line 16, in run
    sys.exit(dispatch(sys.argv[1:]))
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/mercurial/dispatch.py", line 36, in dispatch
    return _runcatch(u, args)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/mercurial/dispatch.py", line 58, in _runcatch
    return _dispatch(ui, args)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/mercurial/dispatch.py", line 590, in _dispatch
    cmdpats, cmdoptions)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/mercurial/dispatch.py", line 401, in runcommand
    ret = _runcommand(ui, options, cmd, d)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/mercurial/dispatch.py", line 641, in _runcommand
    return checkargs()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/mercurial/dispatch.py", line 595, in checkargs
    return cmdfunc()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/mercurial/dispatch.py", line 588, in <lambda>
    d = lambda: util.checksignature(func)(ui, *args, **cmdoptions)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/mercurial/util.py", line 427, in check
    return func(*args, **kwargs)
  File "/Users/john/projects/opensource/bitbucket.org/hgforest-crew/forest.py", line 858, in clone
    forests = toprepo.forests(walkhgenabled(ui, opts['walkhg']))
  File "/Users/john/projects/opensource/bitbucket.org/hgforest-crew/forest.py", line 277, in _httprepo_forests
    data = self.do_read("forests", walkhg=("", "True")[walkhg])
AttributeError: 'httprepository' object has no attribute 'do_read'
$

Attachments (3)

hgforest-crew.hg-1.7-0.patch (3.6 KB) - added by olexandr.voloshyn@… 13 years ago.
Patch for 1.7
hgforest-crew.hg-1.7-1.patch (550 bytes) - added by olexandr.voloshyn@… 13 years ago.
Patch for 1.7.1
hgforest-crew.hg-1.7-1.2.patch (550 bytes) - added by olexandr.voloshyn@… 13 years ago.
Patch for 1.7.1

Download all attachments as: .zip

Change History (12)

comment:1 Changed 13 years ago by jmroot (Joshua Root)

Description: modified (diff)
Keywords: hg-forest forest removed
Priority: HighNormal

Please remember to preview and use WikiFormatting (or better, use an attachment for lengthy output). As per the ticket guidelines, the High priority is reserved for the use of MacPorts team members.

comment:2 Changed 13 years ago by henri.gomez@…

Same problem here. I tried with OS/X Mercurial 1.7 dmg and it's the same problem.

comment:3 Changed 13 years ago by henri.gomez@…

More on this :

Apple Python 2.6.1 + Mercurial 1.7 (from mercurial site) + forest from hgforest-crew/forest.py (md5 = ea0208e8eedc90354ce8ca4d03bd0b17)

** unknown exception encountered, please report by visiting
**  http://mercurial.selenic.com/wiki/BugTracker
** Python 2.6.1 (r261:67515, Feb 11 2010, 00:51:29) [GCC 4.2.1 (Apple Inc. build 5646)]
** Mercurial version 1.7+20101101, système de gestion de sources distribué
** Extensions chargées : forest
Traceback (most recent call last):
  File "/usr/local/bin/hg", line 38, in <module>
    mercurial.dispatch.run()
  File "/Library/Python/2.6/site-packages/mercurial/dispatch.py", line 16, in run
    sys.exit(dispatch(sys.argv[1:]))
  File "/Library/Python/2.6/site-packages/mercurial/dispatch.py", line 36, in dispatch
    return _runcatch(u, args)
  File "/Library/Python/2.6/site-packages/mercurial/dispatch.py", line 58, in _runcatch
    return _dispatch(ui, args)
  File "/Library/Python/2.6/site-packages/mercurial/dispatch.py", line 590, in _dispatch
    cmdpats, cmdoptions)
  File "/Library/Python/2.6/site-packages/mercurial/dispatch.py", line 401, in runcommand
    ret = _runcommand(ui, options, cmd, d)
  File "/Library/Python/2.6/site-packages/mercurial/dispatch.py", line 641, in _runcommand
    return checkargs()
  File "/Library/Python/2.6/site-packages/mercurial/dispatch.py", line 595, in checkargs
    return cmdfunc()
  File "/Library/Python/2.6/site-packages/mercurial/dispatch.py", line 588, in <lambda>
    d = lambda: util.checksignature(func)(ui, *args, **cmdoptions)
  File "/Library/Python/2.6/site-packages/mercurial/util.py", line 427, in check
    return func(*args, **kwargs)
  File "/Users/henri/hgforest-crew/forest.py", line 858, in clone
    forests = toprepo.forests(walkhgenabled(ui, opts['walkhg']))
  File "/Users/henri/hgforest-crew/forest.py", line 277, in _httprepo_forests
    data = self.do_read("forests", walkhg=("", "True")[walkhg])
AttributeError: 'httprepository' object has no attribute 'do_read'

MacPorts Python 2.6.6 + Mercurial 1.7 (from MacPorts hg-forest) + forest from hgforest-crew/forest.py (md5 = ea0208e8eedc90354ce8ca4d03bd0b17)

** unknown exception encountered, please report by visiting
**  http://mercurial.selenic.com/wiki/BugTracker
** Python 2.6.6 (r266:84292, Nov  7 2010, 22:50:29) [GCC 4.2.1 (Apple Inc. build 5664)]
** Mercurial version 1.7, système de gestion de sources distribué
** Extensions chargées : forest
Traceback (most recent call last):
  File "/opt/local/bin/hg", line 38, in <module>
    mercurial.dispatch.run()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/mercurial/dispatch.py", line 16, in run
    sys.exit(dispatch(sys.argv[1:]))
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/mercurial/dispatch.py", line 36, in dispatch
    return _runcatch(u, args)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/mercurial/dispatch.py", line 58, in _runcatch
    return _dispatch(ui, args)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/mercurial/dispatch.py", line 590, in _dispatch
    cmdpats, cmdoptions)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/mercurial/dispatch.py", line 401, in runcommand
    ret = _runcommand(ui, options, cmd, d)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/mercurial/dispatch.py", line 641, in _runcommand
    return checkargs()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/mercurial/dispatch.py", line 595, in checkargs
    return cmdfunc()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/mercurial/dispatch.py", line 588, in <lambda>
    d = lambda: util.checksignature(func)(ui, *args, **cmdoptions)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/mercurial/util.py", line 427, in check
    return func(*args, **kwargs)
  File "/Users/henri/hgforest-crew/forest.py", line 858, in clone
    forests = toprepo.forests(walkhgenabled(ui, opts['walkhg']))
  File "/Users/henri/hgforest-crew/forest.py", line 277, in _httprepo_forests
    data = self.do_read("forests", walkhg=("", "True")[walkhg])
AttributeError: 'httprepository' object has no attribute 'do_read'

MacPorts Python 2.6.6 + Mercurial 1.7 (from MacPorts hg-forest) + forest (from MacPorts hg-forest)

** unknown exception encountered, please report by visiting
**  http://mercurial.selenic.com/wiki/BugTracker
** Python 2.6.6 (r266:84292, Nov  7 2010, 22:50:29) [GCC 4.2.1 (Apple Inc. build 5664)]
** Mercurial version 1.7, système de gestion de sources distribué
** Extensions chargées : forest
Traceback (most recent call last):
  File "/opt/local/bin/hg", line 38, in <module>
    mercurial.dispatch.run()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/mercurial/dispatch.py", line 16, in run
    sys.exit(dispatch(sys.argv[1:]))
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/mercurial/dispatch.py", line 36, in dispatch
    return _runcatch(u, args)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/mercurial/dispatch.py", line 58, in _runcatch
    return _dispatch(ui, args)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/mercurial/dispatch.py", line 590, in _dispatch
    cmdpats, cmdoptions)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/mercurial/dispatch.py", line 401, in runcommand
    ret = _runcommand(ui, options, cmd, d)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/mercurial/dispatch.py", line 641, in _runcommand
    return checkargs()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/mercurial/dispatch.py", line 595, in checkargs
    return cmdfunc()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/mercurial/dispatch.py", line 588, in <lambda>
    d = lambda: util.checksignature(func)(ui, *args, **cmdoptions)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/mercurial/util.py", line 427, in check
    return func(*args, **kwargs)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/hgext/forest.py", line 830, in clone
    forests = toprepo.forests(walkhgenabled(ui, opts['walkhg']))
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/hgext/forest.py", line 246, in _httprepo_forests
    data = self.do_read("forests", walkhg=("", "True")[walkhg])
AttributeError: 'httprepository' object has no attribute 'do_read'

comment:4 Changed 13 years ago by codethought

Cc: davido@… added

Cc Me!

comment:5 in reply to:  2 Changed 13 years ago by olexandr.voloshyn@…

Replying to henri.gomez@…:

Same problem here. I tried with OS/X Mercurial 1.7 dmg and it's the same problem.

This link must bu useful for you http://bitbucket.org/pmezard/hgforest-crew/issue/11

Changed 13 years ago by olexandr.voloshyn@…

Patch for 1.7

Changed 13 years ago by olexandr.voloshyn@…

Patch for 1.7.1

Changed 13 years ago by olexandr.voloshyn@…

Patch for 1.7.1

comment:6 Changed 13 years ago by olexandr.voloshyn@…

Cc: olexandr.voloshyn@… added

Cc Me!

comment:7 Changed 13 years ago by nhojpatrick (John Patrick)

Yes I also raised this issue at bitbucket. I wanted to fix the upstream and then get macports to bring down that version instead of creating another fork.

I've raised issues and supplied patches to both projects on bitbucket (hgforest and hgforest-crew). If don't hear anything back regarding accepting the patch or not, I'll fork the forest extension myself and then get macports to pull from their instead.

John

comment:8 Changed 13 years ago by khepler

Cc: khepler@… added

Cc Me!

comment:9 Changed 13 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: newclosed

Looks like this was fixed by r75014.

Note: See TracTickets for help on using tickets.