ok
Direktori : /proc/thread-self/root/proc/self/root/proc/self/root/usr/lib64/python2.7/Tools/scripts/ |
Current File : //proc/thread-self/root/proc/self/root/proc/self/root/usr/lib64/python2.7/Tools/scripts/svneol.pyc |
� �fc @ s� d Z d d l Z d d l Z d � Z d � Z e j d � j Z x� e j d � D]� \ Z Z Z d e k r} e j d � n x[ e D]S Z e e � r� d e e e � k r� e j j e e � Z e j d e � q� q� q� WqR Wd S( s� SVN helper script. Try to set the svn:eol-style property to "native" on every .py, .txt, .c and .h file in the directory tree rooted at the current directory. Files with the svn:eol-style property already set (to anything) are skipped. svn will itself refuse to set this property on a file that's not under SVN control, or that has a binary mime-type property set. This script inherits that behavior, and passes on whatever warning message the failing "svn propset" command produces. In the Python project, it's safe to invoke this script from the root of a checkout. No output is produced for files that are ignored. For a file that gets svn:eol-style set, output looks like: property 'svn:eol-style' set on 'Lib\ctypes\__init__.py' For a file not under version control: svn: warning: 'patch-finalizer.txt' is not under version control and for a file with a binary mime-type property: svn: File 'Lib est est_pep263.py' has binary mime type property i����Nc C s� t j j | d d | d � } y4 t t t j j | d d � � j � j � � } Wn t k rg g SX| d k r� t j j | d d | d � t j j | d d | d � g St d � d S( Ns .svnt propss .svn-workt formati i s prop-bases .svn-bases Unknown repository format( i i ( t ost patht joint intt opent readt stript IOErrort ValueError( t roott fnt defaultR ( ( s, /usr/lib64/python2.7/Tools/scripts/svneol.pyt propfiles$ s 4 c C s g } xt | | � D]� } y t | � } Wn t k rB q n Xx� | j � } | j d � re Pn | j d � sz t � t | j � d � } | j | � } | j | � | j � | j � } | j d � s� t � t | j � d � } | j | � } | j � qF W| j � q W| S( s= Return a list of property names for file fn in directory roott ENDs K i s V ( R R R t readlinet startswitht AssertionErrorR t splitR t appendt close( R R t resultR t ft linet Lt keyt value( ( s, /usr/lib64/python2.7/Tools/scripts/svneol.pyt proplist1 s, s \.([hc]|py|txt|sln|vcproj)$t .s .svns svn:eol-styles% svn propset svn:eol-style native "%s"( t __doc__t reR R R t compilet searcht possible_text_filet walkR t dirst filest removeR R R t system( ( ( s, /usr/lib64/python2.7/Tools/scripts/svneol.pyt <module> s !