ok
Direktori : /usr/lib64/python2.7/Tools/scripts/ |
Current File : //usr/lib64/python2.7/Tools/scripts/treesync.pyo |
� iцdc @ s� d Z d d l Z d d l Z d d l Z d d l Z d Z d Z d a d a d a d � Z d � Z d � Z d Z d � Z d � Z d � Z d d d d � Z d d � Z e d k r� e � n d S( s� Script to synchronize two source trees. Invoke with two arguments: python treesync.py slave master The assumption is that "master" contains CVS administration while slave doesn't. All files in the slave tree that have a CVS/Entries entry in the master tree are synchronized. This means: If the files differ: if the slave file is newer: normalize the slave file if the files still differ: copy the slave to the master else (the master is newer): copy the master to the slave normalizing the slave means replacing CRLF with LF when the master doesn't use CRLF i����Nt askt yest noc C s) t j t j d d � \ } } x� | D]� \ } } | d k rG d } n | d k r\ d } n | d k rq | a n | d k r� | a n | d k r� | a n | d k r� | } n | d k r&