ó fc@sqdZddlZddlZddlZddlZdad„Zd„Zd„Ze dkrmeƒndS(sDPrint a list of files that are mentioned in CVS directories. Usage: cvsfiles.py [-n file] [directory] ... If the '-n file' option is given, only files under CVS that are newer than the given file are printed; by default, all files under CVS are printed. As a special case, if a file does not exist, it is always printed. iÿÿÿÿNicCs°y#tjtjddƒ\}}Wn tjk rE}|GHtGdSXd}x/|D]'\}}|dkrSt|ƒaqSqSW|r¢x%|D]}t|ƒq‹Wn tdƒdS(Nisn:s-nt.( tgetopttsystargvterrort__doc__tNonetgetmtimet cutofftimetprocess(toptstargstmsgt newerfiletotatarg((s./usr/lib64/python2.7/Tools/scripts/cvsfiles.pytmains#  c CsRd}g}tj|ƒ}xo|D]g}tjj||ƒ}|dkrR|}q"tjj|ƒr"tjj|ƒs‰|j|ƒq‰q"q"W|r3tjj|dƒ}xˆt|ƒjƒD]q}|j dƒ}|ddkr»|dr»|d}tjj||ƒ}t r$t |ƒt kr$q,|GHq»q»Wnx|D]} t | ƒq:WdS(NitCVStEntriest/ti( tostlistdirtpathtjointisdirtislinktappendtopent readlinestsplitRRR ( tdirtcvsdirtsubdirstnamestnametfullnametentriestetwordstsub((s./usr/lib64/python2.7/Tools/scripts/cvsfiles.pyR &s,     cCs6ytj|ƒ}Wntjk r*dSX|tjS(Ni(RtstatRtST_MTIME(tfilenametst((s./usr/lib64/python2.7/Tools/scripts/cvsfiles.pyR@s t__main__( RRRR*RRRR Rt__name__(((s./usr/lib64/python2.7/Tools/scripts/cvsfiles.pyt s