~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/branch.py

  • Committer: Martin Pool
  • Date: 2005-05-05 05:34:55 UTC
  • Revision ID: mbp@sourcefrog.net-20050505053454-98d837eef1a965fe
doc

Show diffs side-by-side

added added

removed removed

Lines of Context:
134
134
            else:
135
135
                raise BzrError("invalid locking mode %r" % mode)
136
136
 
 
137
            # XXX: Old branches might not have the lock file, and
 
138
            # won't get one until someone does a write-mode command on
 
139
            # them or creates it by hand.
 
140
 
137
141
            lockfile = os.open(self.controlfilename('branch-lock'), om)
138
142
            fcntl.lockf(lockfile, lm)
139
143
            def unlock(self):