File "mercurial.cpython-34.pyc"
Full Path: /home/attunedd/public_html/byp/izo/con7ext_sym404/rintoar.txt/opt/alt/python34/lib/python3.4/site-packages/pip/vcs/__pycache__/mercurial.cpython-34.pyc
File size: 5.53 KB
MIME-type: text/x-bytecode.python
Charset: 8 bit
Re @ s d d l Z d d l Z d d l Z d d l Z d d l m Z d d l m Z m Z d d l m Z d d l
m Z m Z d d l
m Z d d l m Z Gd d d e Z e j e d S)
N)call_subprocess)display_pathrmtree)logger)vcsVersionControl)path_to_url)ConfigParserc @ s e Z d Z d Z d Z d Z d! Z d Z d Z d
d Z d d
Z
d d Z d d Z d d Z
d d Z d d Z d d Z d d Z d d Z d d Z d S)" Mercurialhgz.hgclonehg+httphg+httpshg+sshhg+static-httpzhg-clone.txtzg# This was a Mercurial repo; to make it a repo again run:
hg init
hg pull %(url)s
hg update -r %(rev)s
c C s d } } x | j D] } | j s | j j d rE q n t j d | } | ru | j d j } n t j d | } | r | j d j } n | r | r | | f Sq Wd S)N#zhg\s*pull\s*(.*)\s* z^hg\s*update\s*-r\s*(.*)\s*)NN)
splitlinesstrip
startswithresearchgroup)selfcontenturlrevline url_match rev_match r ,/tmp/pip-ztkk0jow-build/pip/vcs/mercurial.pyparse_vcs_bundle_file s
"zMercurial.parse_vcs_bundle_filec C s` t j d d } | j | z/ t | j d | g d | j d d d | Wd t | Xd S) z?Export the Hg repository at the url to the destination locationz-exportzpip-archive
filter_stdoutshow_stdoutFcwdN)tempfilemkdtempunpackr cmd_filterr )r locationtemp_dirr r r! export% s
zMercurial.exportc C s t j j | | j d } t j } yJ | j | | j d d | t | d } | j | | j
WnB t t j f k
r t
j d } t j d | | f Yn! Xt | j d d g | d | d S)
Nhgrcpathsdefaultwr z/Could not switch Mercurial repository to %s: %supdatez-qr&