/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 refs.py

  • Committer: Jelmer Vernooij
  • Date: 2018-03-02 01:59:40 UTC
  • mfrom: (0.200.1791 work)
  • mto: (0.200.1795 work)
  • mto: This revision was merged to the branch mainline in revision 6960.
  • Revision ID: jelmer@jelmer.uk-20180302015940-41gwnoymxc2go3bq
Merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
172
172
            target_branch = self.repo.create_branch(branch_name)
173
173
 
174
174
        rev_id = self.mapping.revision_id_foreign_to_bzr(sha)
175
 
        target_branch.lock_write()
176
 
        try:
 
175
        with target_branch.lock_write():
177
176
            target_branch.generate_revision_history(rev_id)
178
 
        finally:
179
 
            target_branch.unlock()
180
177
 
181
178
 
182
179
def get_refs_container(controldir, object_store):