~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/config.py

  • Committer: Jelmer Vernooij
  • Date: 2011-07-23 16:33:38 UTC
  • mto: This revision was merged to the branch mainline in revision 6045.
  • Revision ID: jelmer@samba.org-20110723163338-mjox55g52kt3u922
Add get_transport_from_url and get_transport_from_path functions.

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