Permalink
Browse files

bugfix: closed ticket #132 - Bazaar backend does not show bzr+file://…

… in `freeze` command
  • Loading branch information...
1 parent a971072 commit 37334994816927534342b1388000a6b4e5ab287f @hltbra hltbra committed Jun 9, 2010
Showing with 5 additions and 3 deletions.
  1. +5 −2 pip/vcs/bazaar.py
  2. +0 −1 setup.cfg
View
@@ -4,7 +4,7 @@
import re
from pip import call_subprocess
from pip.log import logger
-from pip.util import rmtree, display_path
+from pip.util import rmtree, display_path, path_to_url
from pip.vcs import vcs, VersionControl
@@ -93,7 +93,10 @@ def get_url(self, location):
for x in ('checkout of branch: ',
'parent branch: '):
if line.startswith(x):
- return line.split(x)[1]
+ repo = line.split(x)[1]
+ if repo.startswith('/') or repo.startswith('\\'):
+ return path_to_url(repo)
+ return repo
return None
def get_revision(self, location):
View
@@ -1,3 +1,2 @@
[nosetests]
where=tests
-tests=test_freeze.py

0 comments on commit 3733499

Please sign in to comment.