-=[ Mr. Bumblebee ]=-
_Indonesia_
๓
๎:๏Nc @@ sห d Z d d l m Z d d l m Z m Z m Z m Z m Z d d l m
Z
d Z d Z e
e Z d a d e f d YZ d e f d
YZ d e f d YZ d
Z d Z e d S( ss Rule-based definition of preferences for selected files in selected branches.
See ``bzr help rules`` for details.
i ( t absolute_import( t configt cmdlinet errorst globbingt osutils( t configobjs .bzrruless name t _RulesSearcherc B@ s) e Z d Z d Z d Z d Z RS( s/ An object that provides rule-based preferences.c C@ s t | j d S( sฦ Return the preferences for a path as name,value tuples.
:param path: tree relative path
:return: () if no rule matched, otherwise a sequence of name,value
tuples.
N( t NotImplementedErrort get_items( t selft path( ( s0 /usr/lib/python2.7/dist-packages/bzrlib/rules.pyR 0 s c C@ s t | j d S( s Return selected preferences for a path as name,value tuples.
:param path: tree relative path
:param names: the list of preferences to lookup
:return: () if no rule matched, otherwise a sequence of name,value
tuples. The sequence is the same length as names,
tuple order matches the order in names, and
undefined preferences are given the value None.
N( R t get_selected_items( R
R t names( ( s0 /usr/lib/python2.7/dist-packages/bzrlib/rules.pyR 9 s
c C@ s+ x$ | j | | g D]
\ } } | SWd S( st Get a single preference for a single file.
:returns: The string preference value, or None.
N( R t None( R
R t preference_namet keyt value( ( s0 /usr/lib/python2.7/dist-packages/bzrlib/rules.pyt get_single_valueE s "( t __name__t
__module__t __doc__R R R ( ( ( s0 /usr/lib/python2.7/dist-packages/bzrlib/rules.pyR - s t _IniBasedRulesSearcherc B@ s# e Z d Z d Z d Z RS( c C@ s t j | d d | _ | j j } g } i | _ x^ | D]V } | j t r= t j | t } | j
| x | D] } | | j | <qy Wq= q= Wt | t | k r้ g | D] } | j t sถ | ^ qถ } t j
| n$ | rt j | | _ n d | _ d S( sฎ Construct a _RulesSearcher based on an ini file.
The content will be decoded as utf-8.
:param inifile: the name of the file or a sequence of lines.
t encodings utf-8N( R t ConfigObjt _cfgt keyst pattern_to_sectiont
startswitht FILE_PREFS_PREFIXR t splitt FILE_PREFS_PREFIX_LENt extendt lenR t UnknownRulesR t _OrderedGlobstert _globsterR ( R
t inifilet sectionst patternst st
file_patternst fpt unknowns( ( s0 /usr/lib/python2.7/dist-packages/bzrlib/rules.pyt __init__Q s"