� �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