~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/lockdir.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-04-19 08:31:08 UTC
  • mfrom: (1666.1.5 integration)
  • Revision ID: pqm@pqm.ubuntu.com-20060419083108-fab2970f4575b010
Change the default branch format to be metadir. (Robert Collins, Aaron Bentley).

Show diffs side-by-side

added added

removed removed

Lines of Context:
171
171
 
172
172
    is_held = property(lambda self: self._lock_held)
173
173
 
174
 
    def create(self):
 
174
    def create(self, mode=None):
175
175
        """Create the on-disk lock.
176
176
 
177
177
        This is typically only called when the object/directory containing the 
179
179
        """
180
180
        if self.transport.is_readonly():
181
181
            raise UnlockableTransport(self.transport)
182
 
        self.transport.mkdir(self.path)
 
182
        self.transport.mkdir(self.path, mode=mode)
183
183
 
184
184
    def attempt_lock(self):
185
185
        """Take the lock; fail if it's already held.