~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/__init__.py

  • Committer: Martin Pool
  • Date: 2006-01-12 08:37:10 UTC
  • mto: (1185.65.25 storage)
  • mto: This revision was merged to the branch mainline in revision 1550.
  • Revision ID: mbp@sourcefrog.net-20060112083710-642730d8ae44f906
Various updates to make storage branch mergeable:

 * remove duplication of needs_read_lock, needs_write_lock decorators, 
   and move them into bzrlib.decorators

 * add Branch.peek_lock_mode

 * some docs

 * fix up merge flux in tests

Show diffs side-by-side

added added

removed removed

Lines of Context:
382
382
 
383
383
 
384
384
def get_transport(base):
 
385
    """Open a transport to access a URL or directory.
 
386
 
 
387
    base is either a URL or a directory name.  
 
388
    """
385
389
    global _protocol_handlers
386
390
    if base is None:
387
391
        base = u'.'