/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/bundle/commands.py

  • Committer: John Arbash Meinel
  • Date: 2006-08-15 20:19:08 UTC
  • mto: This revision was merged to the branch mainline in revision 1941.
  • Revision ID: john@arbash-meinel.com-20060815201908-ab4a6eb897df5bc2
Lock the repository more often

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