/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/transport/__init__.py

  • Committer: Robert Collins
  • Date: 2007-11-18 19:56:39 UTC
  • mfrom: (3006 +trunk)
  • mto: This revision was merged to the branch mainline in revision 3038.
  • Revision ID: robertc@robertcollins.net-20071118195639-m6zf3d5ljjw88kkn
Merge bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1514
1514
 
1515
1515
        :return: A new transport or None if the connection cannot be shared.
1516
1516
        """
1517
 
        (scheme, user, password, host, port, path) = self._split_url(other_base)
 
1517
        try:
 
1518
            (scheme, user, password,
 
1519
             host, port, path) = self._split_url(other_base)
 
1520
        except errors.InvalidURL:
 
1521
            # No hope in trying to reuse an existing transport for an invalid
 
1522
            # URL
 
1523
            return None
 
1524
 
1518
1525
        transport = None
1519
1526
        # Don't compare passwords, they may be absent from other_base or from
1520
1527
        # self and they don't carry more information than user anyway.