pypa/pip — pull request #504 by wking (2012-04-05 21:04:52+00:00)
Title: Preserve the query portion of URL-type InstallRequirement URLs.

With this patch, install commands like:

pip install 'http://foo.com/?p=bar.git;a=snapshot;h=v0.3;sf=tgz'

will work as expected.

The naming scheme for Link properties is a bit confused at the moment, and I haven't done anything about that here. Link.url_fragment should probably renamed. Perhaps Link.url_without_query_or_fragment. If you don't mind sacrificing a bit of accuracy, Link.url_path would also work, especially since Link.url_fragment is currently only being used in Link.filename.