/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/export/__init__.py

  • Committer: Alexander Belchenko
  • Date: 2007-11-06 07:30:29 UTC
  • mfrom: (2968 +trunk)
  • mto: This revision was merged to the branch mainline in revision 2971.
  • Revision ID: bialix@ukr.net-20071106073029-h4gqz55szi1motes
merge bzr.dev

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):