/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-06-03 23:48:08 UTC
  • mfrom: (7316 work)
  • mto: This revision was merged to the branch mainline in revision 7328.
  • Revision ID: jelmer@jelmer.uk-20190603234808-15yk5c7054tj8e2b
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
 
        with context_repo.lock_read():
 
582
        context_repo.lock_read()
 
583
        try:
583
584
            parent_map = context_repo.get_parent_map([base_revision_id])
 
585
        finally:
 
586
            context_repo.unlock()
584
587
        if base_revision_id not in parent_map:
585
588
            # Ghost, or unknown revision id
586
589
            raise errors.InvalidRevisionSpec(self.user_spec, context_branch,