-=[ Mr. Bumblebee ]=-
_Indonesia_
ó
¹àíNc @@ sÜ d d l m Z d d l Z d d l Z d d l Z d d l m Z m Z m Z d d l m
Z
d d l m Z d d l
m Z d d l m Z d „ Z e e e d „ Z e e e e e d
„ Z d „ Z e d „ Z d S(
i ( t absolute_importN( t
controldirt errorst ui( t isdir( t note( t WorkingTree( t gettextc C@ sI | j d ƒ pH | j d ƒ pH | j d ƒ pH | j d ƒ pH | j d ƒ S( s= Return True if the supplied path is detritus, False otherwises .THISs .BASEs .OTHERt ~s .tmp( t endswith( t subp( ( s5 /usr/lib/python2.7/dist-packages/bzrlib/clean_tree.pyt is_detritus! s c c@ s“ xŒ | j ƒ D]~ } | r? t | ƒ r? | j | ƒ | f Vq
n | j | ƒ rn | r‹ | j | ƒ | f Vq‹ q
| r
| j | ƒ | f Vq
q
Wd S( s) Iterate through files that may be deletedN( t extrasR t abspatht
is_ignored( t treet unknownt ignoredt detritusR
( ( s5 /usr/lib/python2.7/dist-packages/bzrlib/clean_tree.pyt iter_deletables' s c C@ s t j | ƒ d } | j ƒ zÒ t t | d | d | d | ƒƒ } t | ƒ } t | ƒ d k rv t t d ƒ ƒ d S| sÞ x$ | D] \ } } t j
j | ƒ qƒ Wt d ƒ }
t j
j |
ƒ sÞ t j
j t d ƒ ƒ d Sn t | d | ƒWd | j
ƒ Xd S(
s3 Remove files in the specified classes from the treei R R R s Nothing to delete.s% Are you sure you wish to delete theset Canceledt dry_runN( R t open_containingt lock_readt listR t _filter_out_nested_bzrdirst lenR R R t
ui_factoryt get_booleant delete_itemst unlock( t directoryR R R R t no_promptR t
deletablest pathR
t prompt( ( s5 /usr/lib/python2.7/dist-packages/bzrlib/clean_tree.pyt
clean_tree5 s$
c C@ s g } xt | D]l \ } } t | ƒ rf y t j j | ƒ Wqy t j k
rb | j | | f ƒ qy Xq
| j | | f ƒ q
W| S( N( R R t
ControlDirt openR t NotBranchErrort append( R! t resultR"