qimport patches from our bugzilla instance is returning the incorrect contents. E.g., hg qimport -n aname "https://bugzilla.mozilla.org/attachment.cgi?id=546853" will return that page minus the ?id=546853 portion of the URL.
I bisected hg-stable: The first bad revision is: changeset: 13896:bf6156bab41b user: Brodie Rao <brodie@bitheap.org> date: Wed Mar 30 20:01:34 2011 -0700 summary: url: use url.url in url.open()
The issue appears to be with util.py's url class, which ends up encoding the "=" in the query string incorrectly when stringifying - in the example, we end up trying to load "https://bugzilla.mozilla.org/attachment.cgi?id%3D546853".
I'll take a look.
Fixed by http://selenic.com/repo/hg/rev/e6730f9e13bc Benoit Boissinot <benoit.boissinot@ens-lyon.org> url: store and assume the query part of an url is in escaped form (issue2921) (please test the fix)
--- Bug imported by bugzilla@serpentine.com 2012-05-12 09:22 EDT --- This bug was previously known as _bug_ 2921 at http://mercurial.selenic.com/bts/issue2921