HEX

Warning: set_time_limit() [function.set-time-limit]: Cannot set time limit - prohibited by configuration in /home/u547966/brikov.ru/www/wp-content/plugins/admin-menu-editor/menu-editor.php on line 745
Server: Apache
System: Linux 4.19.0-0.bpo.9-amd64 x86_64 at red40
User: u547966 (5490)
PHP: 5.3.29-mh2
Disabled: syslog, dl, popen, proc_open, proc_nice, proc_get_status, proc_close, proc_terminate, posix_mkfifo, chown, chgrp, accelerator_reset, opcache_reset, accelerator_get_status, opcache_get_status, pcntl_alarm, pcntl_fork, pcntl_waitpid, pcntl_wait, pcntl_wifexited, pcntl_wifstopped, pcntl_wifsignaled, pcntl_wifcontinued, pcntl_wexitstatus, pcntl_wtermsig, pcntl_wstopsig, pcntl_signal, pcntl_signal_dispatch, pcntl_get_last_error, pcntl_strerror, pcntl_sigprocmask, pcntl_sigwaitinfo, pcntl_sigtimedwait, pcntl_exec, pcntl_getpriority, pcntl_setpriority
Upload Files
File: //usr/lib/python2.7/dist-packages/hgext/convert/p4.pyc
ó
ÛXc@@sddlmZddlZddlZddlmZddlmZmZddl	m
Z
d„Zd„Zd	e
j
fd
„ƒYZdS(i(tabsolute_importN(t_(terrortutili(tcommoncc@sGy/x(tr-tj|ƒ}|s%Pn|VqWWntk
rBnXdS(s,Yield the dictionary objects generated by p4N(tTruetmarshaltloadtEOFError(tftd((s4/usr/lib/python2.7/dist-packages/hgext/convert/p4.pytloaditers	

cC@s?d	d
ddg}x&|D]\}}|j||ƒ}qW|S(
sOPerforce escapes special characters @, #, *, or %
    with %40, %23, %2A, or %25 respectively

    >>> decodefilename('portable-net45%252Bnetcore45%252Bwp8%252BMonoAndroid')
    'portable-net45%2Bnetcore45%2Bwp8%2BMonoAndroid'
    >>> decodefilename('//Depot/Directory/%2525/%2523/%23%40.%2A')
    '//Depot/Directory/%25/%23/#@.*'
    s%2At*s%23t#s%40t@s%25t%(s%2AR(s%23R
(s%40R(s%25R(treplace(tfilenametreplacementstktv((s4/usr/lib/python2.7/dist-packages/hgext/convert/p4.pytdecodefilenames	t	p4_sourcecB@s\eZd	d„Zd„Zd„Zd„Zd„Zd„Zd„Z	d„Z
d„ZRS(
cC@soddlm}tt|ƒj||d|ƒd|krg|jdƒrgtjtdƒ|ƒ‚ntj	ddt
ƒi|_i|_i|_
i|_i|_i|_i|_i|_|jjd	d
d|jƒ|_i|_i|_tjdƒ|_tjd
ƒ|_tjdƒ|_|r[t|ƒdkr[tj tdƒƒ‚n|j!||ƒdS(Ni(tconvcmdtrevst/s//s%%s does not look like a P4 repositorytp4taborttconvertsp4.encodingtdefaultsE([a-z]+)?(text|binary|symlink|apple|resource|unicode|utf\d+)(\+\w+)?$sA\$(Id|Header|Date|DateTime|Change|File|Revision|Author):[^$\n]*\$s\$(Id|Header):[^$
]*\$s8p4 source does not support specifying multiple revisions("tRtsuperRt__init__t
startswithRtNoRepoRt	checktooltFalset	p4changestheadst	changesettfilestcopiesttagst
lastbranchtparenttuitconfigt
orig_encodingtencodingt	depotnamet	localnametretcompiletre_typetre_keywordstre_keywords_oldtlenRtAbortt_parse(tselfR-tpathRR((s4/usr/lib/python2.7/dist-packages/hgext/convert/p4.pyR .s4
										cC@skdtj|ƒ}tj|ddƒ}x<t|ƒD].}|jddƒ}|r5t|j|<q5q5WdS(sRead changes affecting the pathsp4 -G changes -s submitted %stmodetrbtchangeN(Rt
shellquotetpopenRtgettNoneRR%(R;R<tcmdtstdoutR
tc((s4/usr/lib/python2.7/dist-packages/hgext/convert/p4.pyt_parse_viewSsc"C@s$|jtdƒƒd|krn|j|ƒ|jdƒr^|jdƒr^id|d 6}qKidd6}nÝdtj|ƒ}tjtj	|dd	ƒƒ}i}x£|D]›}|jd
ƒr¬||j
ƒ\}}|j|ƒ|jdƒr|jdƒr|d }|d }n|d}||jdƒd
}|||<q¬q¬W|jj
ƒ|_|jjdtƒ|j
ƒ}	|	jdtdtƒ|jjddddƒ}
g|jD]T}|
sÜt|ƒt|
ƒkr·|jst|ƒt|jdƒkr·|^q·|_|jtdƒƒd/}xÛ|jD]Ð}
d|
}tj	|dd	ƒ}tj|ƒ}|j|jddƒƒ}|j
dd
ƒd}d|dt|ƒd
d!f}|jtj|dƒdƒ|rì|g}ng}t|dƒdf}tjd|j|dƒdtj|d ƒd!|d|d"d/d#i|
d$6ƒ}g}i}g}d}x÷d%||krid&||kri|d%|}d/}xK|	D]C}|jƒj|jƒƒr®t|||t|ƒƒ}Pq®q®W|r\|j||d&|fƒ||j |<|jd'|ƒd(krL|j|ƒn||j!|<n|d
7}qsWxm|D]e}|j |}d)tj|ƒ}tj	|dd	ƒ}d/}xñt"|ƒD]ã}d/} d}x¨d*||kr{|d*||
krn|d'|d(krnd}!xYd+||!f|krj|d,||!fd-kr]|d+||!f} Pn|!d
7}!qWn|d
7}qÔW| r¿| |j!kr¿|j!| }Pq¿q¿W|r¹|||<qq|j#td.ƒ||
fƒqqW||j$|
<||j%|
<||j&|
<|
}q7W|r |g|_'nd/S(0s4Prepare list of P4 filenames and revisions to importsreading p4 views
Rs//s/...Riýÿÿÿsp4 -G client -o %sR=R>tViews...iitkeytreverseRsp4.startrevRiscollecting p4 changelists
sp4 -G describe -s %stdescs
s%s %sR?iÿÿÿÿiPttimetauthortusertdates%Y-%m-%d %H:%M:%S %1%2tparentstbranchtextraRsdepotFile%dsrev%dsaction%dsmove/addsp4 -G filelog %sschange%ds	file%d,%dshow%d,%ds
moved froms*cannot find source for copied file: %s@%s
N((tstatusRRGR!tendswithRR@RRRAtsplittfindR%tkeystsorttintR8RR-R.RRCtrecodeRBtreprtellipsisRtcommittdatestrtlowerRtappendR1R2RtwarnR'R(R)R&("R;R-R<tviewsRDt
clientspectclienttsviewtcviewt	viewordertstartrevtxtlastidR?RER
RKt	shortdescttRPRORFR(R)tcopiedfilestitoldnameRRtflcmdtflstdouttcopiedfilenamet
copiedoldnametj((s4/usr/lib/python2.7/dist-packages/hgext/convert/p4.pyR:\s¾





8
!#









cC@s|jS(N(R&(R;((s4/usr/lib/python2.7/dist-packages/hgext/convert/p4.pytgetheadsÙscC@sBdtjd|j||fƒ}d}x©trÕtj|ddƒ}d}g}d}xkt|ƒD]]}	|	d}
|	jdƒ}|
dkr¸|s¯t|	d|ƒ}Pq¾|‚n|
d	kr–|	jd
ƒ}|dkrãdS|j	j
|	dƒ}
|
r¾d}|
jdƒpd|
jdƒp)d}d|krBd}n|
jdƒdkr`d}nd|krx|j}q“d|kr“|j
}q“q¾n(|
dks®|
dkr¾|j|ƒnd}qgW|s-Pq-q-W|dkrædSdj|ƒ}|r|jd|ƒ}n|dkr8|jdƒr8|d }n||fS( Nsp4 -G print %ss%s#%sR=R>tcodetdataRtgenerictstattactiontpurgetdeletesmove/deletettypeRiiRiitsymlinktltkoRttexttbinarys$\1$s
iÿÿÿÿ(R{R|smove/delete(NN(NN(RR@R1RCRRARRBtIOErrorR5tmatchtgroupR7R6R`tjointsubRT(R;tnametrevRDt	lasterrorRER=tcontentstkeywordsR
RvRwRztp4typetflags((s4/usr/lib/python2.7/dist-packages/hgext/convert/p4.pytgetfileÜs\!	
			

cC@s<|rtjtdƒƒ‚n|j||j|tƒfS(Ns'convert from p4 does not support --full(RR9RR(R)tset(R;R‰tfull((s4/usr/lib/python2.7/dist-packages/hgext/convert/p4.pyt
getchangesscC@s|j|S(N(R'(R;R‰((s4/usr/lib/python2.7/dist-packages/hgext/convert/p4.pyt	getcommit!scC@s|jS(N(R*(R;((s4/usr/lib/python2.7/dist-packages/hgext/convert/p4.pytgettags$scC@s(tg|j|D]}|d^qƒS(Ni(tsortedR((R;R‰RnRi((s4/usr/lib/python2.7/dist-packages/hgext/convert/p4.pytgetchangedfiles'sN(t__name__t
__module__RCR RGR:RuRR’R“R”R–(((s4/usr/lib/python2.7/dist-packages/hgext/convert/p4.pyR-s%			}		@			(t
__future__RRR3tmercurial.i18nRt	mercurialRRRRRRtconverter_sourceR(((s4/usr/lib/python2.7/dist-packages/hgext/convert/p4.pyt<module>s