/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 breezy/revisionspec.py

  • Committer: Jelmer Vernooij
  • Date: 2019-08-11 13:21:03 UTC
  • mfrom: (7379 work)
  • mto: This revision was merged to the branch mainline in revision 7388.
  • Revision ID: jelmer@jelmer.uk-20190811132103-u3ne03yf37c1h57n
merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
579
579
            raise errors.InvalidRevisionSpec(self.user_spec, context_branch,
580
580
                                             'cannot go before the null: revision')
581
581
        context_repo = context_branch.repository
582
 
        context_repo.lock_read()
583
 
        try:
 
582
        with context_repo.lock_read():
584
583
            parent_map = context_repo.get_parent_map([base_revision_id])
585
 
        finally:
586
 
            context_repo.unlock()
587
584
        if base_revision_id not in parent_map:
588
585
            # Ghost, or unknown revision id
589
586
            raise errors.InvalidRevisionSpec(self.user_spec, context_branch,