make -e work better with hg (#14)

This commit is contained in:
Ian Bicking 2009-02-03 13:21:57 -06:00
parent 0112cd7f79
commit 940c779044
2 changed files with 7 additions and 0 deletions

View File

@ -1,6 +1,11 @@
News for pip
============
hg tip
------
* Make ``-e`` work better with local hg repositories
0.3.1
-----

2
pip.py
View File

@ -2987,6 +2987,8 @@ class Mercurial(VersionControl):
url = call_subprocess(
['hg', 'showconfig', 'paths.default'],
show_stdout=False, cwd=location)
if url.startswith('/') or url.startswith('\\'):
url = filename_to_url(url)
return url.strip()
def get_tip_revision(self, location):