~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/config.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2011-07-25 14:01:28 UTC
  • mfrom: (6039.1.9 transport-from-url)
  • Revision ID: pqm@pqm.ubuntu.com-20110725140128-croovh96z0rs57yy
(jelmer) Add get_transport_from_url and get_transport_from_path functions.
 (Jelmer Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
2562
2562
class GlobalStore(LockableIniFileStore):
2563
2563
 
2564
2564
    def __init__(self, possible_transports=None):
2565
 
        t = transport.get_transport(config_dir(),
 
2565
        t = transport.get_transport_from_path(config_dir(),
2566
2566
                                    possible_transports=possible_transports)
2567
2567
        super(GlobalStore, self).__init__(t, 'bazaar.conf')
2568
2568
 
2570
2570
class LocationStore(LockableIniFileStore):
2571
2571
 
2572
2572
    def __init__(self, possible_transports=None):
2573
 
        t = transport.get_transport(config_dir(),
 
2573
        t = transport.get_transport_from_path(config_dir(),
2574
2574
                                    possible_transports=possible_transports)
2575
2575
        super(LocationStore, self).__init__(t, 'locations.conf')
2576
2576