-=[ Mr. Bumblebee ]=-
_Indonesia_
ó
¹àíNc @@ sp d d l m Z d d l m Z e e ƒ d ƒ d d l m Z d e f d „ ƒ YZ d e f d „ ƒ YZ d S(
i ( t absolute_import( t lazy_imports‚
import warnings
from bzrlib import (
counted_lock,
errors,
lock,
osutils,
transactions,
urlutils,
)
( t only_raisest
LockableFilesc B@ sÑ e Z d Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z
d „ Z d d
„ Z
d „ Z d „ Z d
„ Z e e j e j ƒ d „ ƒ Z d „ Z d „ Z d „ Z d „ Z d „ Z RS( sT Object representing a set of related files locked within the same scope.
This coordinates access to the lock along with providing a transaction.
LockableFiles manage a lock count and can be locked repeatedly by
a single caller. (The underlying lock implementation generally does not
support this.)
Instances of this class are often called control_files.
This class is now deprecated; code should move to using the Transport
directly for file operations and using the lock or CountedLock for
locking.
:ivar _lock: The real underlying lock (e.g. a LockDir)
:ivar _lock_count: If _lock_mode is true, a positive count of the number
of times the lock has been taken (and not yet released) *by this
process*, through this particular object instance.
:ivar _lock_mode: None, or 'r' or 'w'
c C@ sƒ | | _ | | _ d | _ d | _ d | _ | j ƒ | j | ƒ } | | | d | j d | j ƒ| _
t j | j
ƒ | _
d S( sF Create a LockableFiles group
:param transport: Transport pointing to the directory holding the
control files and lock.
:param lock_name: Name of the lock guarding these files.
:param lock_class: Class of lock strategy to use: typically
either LockDir or TransportLock.
i t
file_modebitst dir_modebitsN( t
_transportt lock_namet Nonet _transactiont
_lock_modet _lock_countt _find_modest _escapet
_file_modet _dir_modet _lockt counted_lockt CountedLockt
_counted_lock( t selft transportR t
lock_classt esc_name( ( s9 /usr/lib/python2.7/dist-packages/bzrlib/lockable_files.pyt __init__<