diff options
author | Jannis Leidel <jannis@leidel.info> | 2012-02-16 21:09:00 +0100 |
---|---|---|
committer | Jannis Leidel <jannis@leidel.info> | 2012-02-16 21:09:00 +0100 |
commit | ee554dd82b8bc6ed9a3cf989b353126580fcc082 (patch) | |
tree | b0604f39ed465673316fe94ffa29046ed868aafc /pip/vcs/bazaar.py | |
parent | 47f1b2c2b2523469e6107cb2ef325eb61fa8fcf1 (diff) | |
parent | 40ac381fad2cc31f75014f02d3e8bf755d933abb (diff) | |
download | pip-1.1.tar.gz |
Merge branch 'release/1.1'1.1
Diffstat (limited to 'pip/vcs/bazaar.py')
-rw-r--r-- | pip/vcs/bazaar.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/pip/vcs/bazaar.py b/pip/vcs/bazaar.py index 9f5389835..5d5277771 100644 --- a/pip/vcs/bazaar.py +++ b/pip/vcs/bazaar.py @@ -2,6 +2,7 @@ import os import tempfile import re from pip import call_subprocess +from pip.backwardcompat import urlparse from pip.log import logger from pip.util import rmtree, display_path from pip.vcs import vcs, VersionControl @@ -13,10 +14,15 @@ class Bazaar(VersionControl): dirname = '.bzr' repo_name = 'branch' bundle_file = 'bzr-branch.txt' - schemes = ('bzr', 'bzr+http', 'bzr+https', 'bzr+ssh', 'bzr+sftp', 'bzr+ftp') + schemes = ('bzr', 'bzr+http', 'bzr+https', 'bzr+ssh', 'bzr+sftp', 'bzr+ftp', 'bzr+lp') guide = ('# This was a Bazaar branch; to make it a branch again run:\n' 'bzr branch -r %(rev)s %(url)s .\n') + def __init__(self, url=None, *args, **kwargs): + super(Bazaar, self).__init__(url, *args, **kwargs) + urlparse.non_hierarchical.extend(['lp']) + urlparse.uses_fragment.extend(['lp']) + def parse_vcs_bundle_file(self, content): url = rev = None for line in content.splitlines(): |