[issue2982] 'hg fetch' does not handle #branch syntax

Jesse Glick bugs at mercurial.selenic.com
Thu Sep 1 11:23:34 CDT 2011


New submission from Jesse Glick <jesse.glick at oracle.com>:

Noticed some time ago but still true in 1.9.2:

$ hg --traceback fetch 'https://...whatever.../#default'
Traceback (most recent call last):
...
  File ".../hgext/fetch.py", line 66, in fetch
    other = hg.peer(repo, opts, ui.expandpath(source))
  File ".../mercurial/hg.py", line 104, in peer
    return repository(rui, path, create)
  File ".../mercurial/hg.py", line 93, in repository
    repo = _peerlookup(path).instance(ui, path, create)
  File ".../mercurial/httprepo.py", line 225, in instance
    inst = httpsrepository(ui, path)
  File ".../mercurial/httprepo.py", line 218, in __init__
    httprepository.__init__(self, ui, path)
  File ".../mercurial/httprepo.py", line 34, in __init__
    (u.query or u.fragment))
Abort: unsupported URL component: "default"
abort: unsupported URL component: "default"
Exception AttributeError: "'httpsrepository' object has no attribute
'urlopener'" in <bound method httpsrepository.__del__ of
<mercurial.httprepo.httpsrepository object at 0xc84050c>> ignored

Annoying because it prevents you using the usual branch syntax in [paths] if
you use the Fetch extension.

----------
messages: 17293
nosy: jglick
priority: bug
status: unread
title: 'hg fetch' does not handle #branch syntax
topic: named branches

____________________________________________________
Mercurial issue tracker <bugs at mercurial.selenic.com>
<http://mercurial.selenic.com/bts/issue2982>
____________________________________________________


More information about the Mercurial-devel mailing list