← Back
Editing: svnurl.cpython-311.pyc
� ��a{9 � �� � d Z ddlZddlZddlZddlZddlZddlmZmZ ddlm Z ddlm Z ddlm Z mZ dZ G d� d ej � � Z G d � d� � Zd� Z G d � d� � ZdS )z� module defining a subversion path object based on the external command 'svn'. This modules aims to work with svn 1.3 and higher but might also interact well with earlier versions. � N)�path�process)�common)�svnwc)�BuildcostAccessCache� AgingCacheFc �� � e Zd ZdZ ed�� � Z edd�� � Zd&d�Zd � Z d � Z d� Zd� Zd � Z d� Zd� Zd� Zd� Zd'd�Zd� Zd� Zd(d�Zd)d�Zd*d�Zd� Zd� Zd� Zd � Zd!� Zd"� Zd&d#�Zd+d%�ZdS ),�SvnCommandPathzZ path implementation that offers access to (possibly remote) subversion repositories. � )� maxentriesi� g N@)r � maxsecondsNc � � t � | � � }t || � � r|j }|j }|j }t j |� � |j d� � }||_ ||_ ||_ |S )N�/) �object�__new__� isinstance�rev�auth�strpath� svncommon� checkbadchars�rstrip)�clsr r r �selfs �1/usr/lib/python3/dist-packages/py/_path/svnurl.pyr zSvnCommandPath.__new__ sv � ��~�~�c�"�"���d�C� � � ��(�C��9�D��<�D����%�%�%��t�{�3������������ ��� c �R � | j dk r d| j z S d| j �d| j �d�S )N���z svnurl(%r)zsvnurl(z, �))r r �r s r �__repr__zSvnCommandPath.__repr__$ s8 � ��8�r�>�>��$�,�.�.� � (,�|�|�|�T�X�X�X�>�>r c �z � | j � | j |g|�R � S d| j gt |� � z } | j |g|�R � S )z9 execute an svn command, append our own url and revision N�-r)r � _svnwrite�list)r �cmd�argss r �_svnwithrevzSvnCommandPath._svnwithrev* sU � ��8��!�4�>�#�-��-�-�-�-��$�(�#�d�4�j�j�0�D�!�4�>�#�-��-�-�-�-r c �4 � � d|z g}� fd�|D � � }|� |� � |� d� � � � z � � d� |� � }t rt d|z � � � � |� � }|S )z, execute an svn command, append our own url zsvn %sc �@ �� g | ]}d �� |� � z ��S )�"%s")�_escape)�.0�itemr s �r � <listcomp>z,SvnCommandPath._svnwrite.<locals>.<listcomp>5 s* �� �=�=�=������d�+�+�+�=�=�=r r+ � z execing %s)�extend�append�_encodedurl�join�DEBUG�print�_svncmdexecauth)r r&