/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/doc/api/transport.txt

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-03-08 14:34:42 UTC
  • mfrom: (1551.2.25 Aaron's mergeable stuff)
  • Revision ID: pqm@pqm.ubuntu.com-20060308143442-fc633cddf3574063
Stop using deprecated methods in merge and revert

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
The Transport API in bzrlib provides URL based access to network resources.
 
2
 
 
3
   >>> import os
 
4
   >>> import bzrlib.transport as transport
 
5
   >>> root = transport.get_transport("file:///")
 
6
   >>>
 
7
 
 
8
Each Transport instance represents a single logical directory.
 
9
 
 
10
   >>> dir = transport.get_transport(".")
 
11
   >>> dir.base == os.getcwdu() + '/'
 
12
   True
 
13
 
 
14
You can change directories via the clone method:
 
15
 
 
16
   >>> parent = dir.clone('..')
 
17
   >>> parent.base == os.path.dirname(os.getcwdu()) + '/'
 
18
   True