~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/branch.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-02-13 07:46:08 UTC
  • mfrom: (2279.1.3 push_readonly)
  • Revision ID: pqm@pqm.ubuntu.com-20070213074608-337e1db89805f74d
(John Arbash Meinel) Fix pushing branches within the same repository by using a read lock on the source.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1446
1446
            if master_branch:
1447
1447
                master_branch.unlock()
1448
1448
 
1449
 
    @needs_write_lock
 
1449
    @needs_read_lock
1450
1450
    def push(self, target, overwrite=False, stop_revision=None):
1451
1451
        """Updates branch.push to be bound branch aware."""
1452
1452
        bound_location = target.get_bound_location()