~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/doc/api/transport.txt

  • Committer: Wouter van Heyst
  • Date: 2006-06-06 22:37:30 UTC
  • mto: This revision was merged to the branch mainline in revision 1752.
  • Revision ID: larstiq@larstiq.dyndns.org-20060606223730-a308c5429fc6c617
change branch.{get,set}_parent to store a relative path but return full urls

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
The Transport API in bzrlib provides URL based access to network resources.
2
2
 
3
3
   >>> import os
4
 
   >>> import sys
5
4
   >>> from bzrlib.osutils import getcwd, dirname
6
5
   >>> from bzrlib.urlutils import local_path_from_url
7
6
   >>> import bzrlib.transport as transport
8
 
   >>> if sys.platform == 'win32':
9
 
   ...     root = transport.get_transport('file:///C:/')
10
 
   ... else:
11
 
   ...     root = transport.get_transport('file:///')
 
7
   >>> root = transport.get_transport("file:///")
12
8
   >>>
13
9
 
14
10
Each Transport instance represents a single logical directory.