/breezy-hg/trunk

To get this branch, use:
bzr branch https://code.breezy-vcs.org/breezy-hg/trunk

« back to all changes in this revision

Viewing changes to fetch.py

  • Committer: Jelmer Vernooij
  • Date: 2018-09-29 08:12:07 UTC
  • Revision ID: jelmer@jelmer.uk-20180929081207-ol8c5exqqakpu1l3
Fix a bunch of tests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
740
740
 
741
741
        To date the basis parameter is not supported.
742
742
        """
743
 
        with self.lock_tree_write():
 
743
        with self.lock_write():
744
744
            if basis is not None:
745
745
                trace.mutter('Ignoring basis argument %r', basis)
746
746
            self.target.fetch(self.source, revision_id=revision_id)
748
748
    def fetch(self, revision_id=None, pb=None, find_ghosts=False,
749
749
              fetch_spec=None, limit=None):
750
750
        """Fetch revisions. """
751
 
        with self.lock_tree_write():
 
751
        with self.lock_write():
752
752
            heads = self.heads(fetch_spec, revision_id)
753
753
            missing = self.findmissing(heads)
754
754
            if not missing: