~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/export/__init__.py

  • Committer: Andrew Bennetts
  • Date: 2007-11-10 15:09:09 UTC
  • mfrom: (2916.2.17 streamable-containers)
  • mto: This revision was merged to the branch mainline in revision 3174.
  • Revision ID: andrew.bennetts@canonical.com-20071110150909-ik5254kgn930th10
Merge streamable-containers.

Show diffs side-by-side

added added

removed removed

Lines of Context:
92
92
 
93
93
    if format not in _exporters:
94
94
        raise errors.NoSuchExportFormat(format)
95
 
    return _exporters[format](tree, dest, root)
 
95
    tree.lock_read()
 
96
    try:
 
97
        return _exporters[format](tree, dest, root)
 
98
    finally:
 
99
        tree.unlock()
96
100
 
97
101
 
98
102
def get_root_name(dest):