� �fc @ sq d Z d d l Z d d l Z d d l Z d d l Z d a d � Z d � Z d � Z e d k rm e � n d S( sD Print 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����Ni c C s� y# t j t j d d � \ } } Wn t j k rE } | GHt Gd SXd } x/ | D]' \ } } | d k rS t | � a qS qS W| r� x% | D] } t | � q� Wn t d � d S( Ni s n:s -nt .( t getoptt syst argvt errort __doc__t Nonet getmtimet cutofftimet process( t optst argst msgt newerfilet ot at arg( ( s. /usr/lib64/python2.7/Tools/scripts/cvsfiles.pyt main s # c C sR d } g } t j | � } xo | D]g } t j j | | � } | d k rR | } q" t j j | � r" t j j | � s� | j | � q� q" q" W| r3t j j | d � } x� t | � j � D]q } | j d � } | d d k r� | d r� | d } t j j | | � } t r$t | � t k r$q,| GHq� q� Wn x | D] } t | � q:Wd S( Ni t CVSt Entriest /t i ( t ost listdirt patht joint isdirt islinkt appendt opent readlinest splitR R R ( t dirt cvsdirt subdirst namest namet fullnamet entriest et wordst sub( ( s. /usr/lib64/python2.7/Tools/scripts/cvsfiles.pyR &