~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/bundle/commands.py

Merge updated set_parents api.

Show diffs side-by-side

added added

removed removed

Lines of Context:
142
142
            fileobj = file(output, 'wb')
143
143
        else:
144
144
            fileobj = sys.stdout
145
 
        write_bundle(target_branch.repository, target_revision, base_revision,
146
 
                     fileobj)
 
145
        target_branch.repository.lock_read()
 
146
        try:
 
147
            write_bundle(target_branch.repository, target_revision,
 
148
                         base_revision, fileobj)
 
149
        finally:
 
150
            target_branch.repository.unlock()
147
151
 
148
152
 
149
153
class cmd_verify_changeset(Command):