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/gpg.pyc
ó
ÛXc@@sædZddlmZddlZddlZddlZddlmZddlm	Z	m
Z
mZmZm
ZmZiZe	jeƒZdZdefd„ƒYZd	„Zd
„Zd„Zedged
ƒƒd„ƒZedgedƒƒd„ƒZd„Zeddddedƒfdddedƒfdddedƒfdddedƒed ƒfd!d"ded#ƒed$ƒfd%d&eed'ƒfge
jed(ƒƒd)„ƒZd*„Zd+„Z d,„Z!dS(-s&commands to sign and verify changesetsi(tabsolute_importN(t_(tcmdutiltcommandsterrortmatchtnodetutilsships-with-hg-coretgpgcB@s&eZdd„Zd„Zd„ZRS(cC@s&||_|rd|pd|_dS(Ns --local-user "%s"t(tpathtkey(tselfR
R((s-/usr/lib/python2.7/dist-packages/hgext/gpg.pyt__init__!s	cC@s&d|j|jf}tj||ƒS(Ns%s --sign --detach-sign%s(R
RRtfilter(Rtdatatgpgcmd((s-/usr/lib/python2.7/dist-packages/hgext/gpg.pytsign%sc	C@sSd	}}zºtjddddƒ\}}tj|dƒ}|j|ƒ|jƒtjddddƒ\}}tj|dƒ}|j|ƒ|jƒd|j||f}tj	d|ƒ}Wd	xB||fD]4}	y|	rótj
|	ƒnWqÔtk
rqÔXqÔWXg}
d\}}x
|jƒD]ü}
|
j
d
ƒsGq,n|
d}
|
j
dƒrs|
jƒd
}q,|
j
dƒr®|
jddƒd }|jdƒd	}q,|
j
dƒsê|
j
dƒsê|
j
dƒsê|
j
dƒr,|d	k	r
|
j||gƒn|
jddƒ}d	}q,q,W|d	k	rO|
j||gƒn|
S(s' returns of the good and bad signaturestprefixshg-gpg-tsuffixs.sigtwbs.txts1%s --logger-fd 1 --status-fd 1 --verify "%s" "%s"R	Ns[GNUPG:]i	tVALIDSIGi
tERRSIGt iitGOODSIGtEXPSIGt	EXPKEYSIGtBADSIG(NN(tNonettempfiletmkstemptostfdopentwritetcloseR
RRtunlinktOSErrort
splitlinest
startswithtsplittappend(RRtsigtsigfiletdatafiletfdtfpRtrettftkeysRtfingerprinttl((s-/usr/lib/python2.7/dist-packages/hgext/gpg.pytverify)sT





	

	
N(t__name__t
__module__RR
RR3(((s-/usr/lib/python2.7/dist-packages/hgext/gpg.pyR s	cK@sO|jdddƒ}|jdƒ}|sB|jdddƒ}nt||ƒS(screate a new gpg instanceRtcmdRN(tconfigtgetRR(tuitoptstgpgpathtgpgkey((s-/usr/lib/python2.7/dist-packages/hgext/gpg.pytnewgpg[s
cc@sÀd„}|jdƒ}x[t|jƒƒD]G}dtj|ƒ}x+||j|ƒjƒ|ƒD]}|VqcWq+Wy2d}x%||j|ƒ|ƒD]}|Vq˜WWntk
r»nXdS(sb
    walk over every sigs, yields a couple
    ((node, version, sig), (filename, linenumber))
    cs@sNd}xA|D]9}|sq
n|jddƒ||ffV|d7}q
WdS(NiRi(R'(tfileitertcontexttlnR2((s-/usr/lib/python2.7/dist-packages/hgext/gpg.pyt	parsefilehs
s.hgsigss
.hgsigs|%st	localsigsN(	tfiletreversedtheadsthgnodetshorttreadR%tvfstIOError(trepoRAtfltrtfntitem((s-/usr/lib/python2.7/dist-packages/hgext/gpg.pytsigwalkcs		%


cC@s|\}}|\}}}	d||f}
tj|ƒ}t|||ƒ}tj|	ƒ}	|j||	ƒ}g}
x|D]}|ddkrÄ|jtdƒ|
t||dd ƒfƒqzn|ddkrû|jtdƒ|
|d	fƒqzn|dd
kr/|jtdƒ|
|d	fƒn4|ddkrc|jtd
ƒ|
|d	fƒn|
j	|d|d	|dfƒqzW|
S(sget the keys who signed a datas%s:%diRs%s Unknown key ID "%s"
iiRs%s Bad signature from "%s"
iRs1%s Note: Signature has expired (signed by: "%s")
Rs0%s Note: This key has expired (signed by: "%s")
i(
RFtbintnode2txttbinasciit
a2b_base64R3R!RtshortkeyR((R9RKtmygpgtsigdataR?RNR@RtversionR)RRR0t	validkeysR((s-/usr/lib/python2.7/dist-packages/hgext/gpg.pytgetkeys~s0
!&tsigsshg sigscC@sct|ƒ}i}xÓt|ƒD]Å\}}|\}}}|\}	}
y|j|ƒ}Wn1tk
rŒ|jtdƒ|	|
fƒqnX|jj|ƒ}t|||||ƒ}
|
sÃqn|j	|gƒ||j
|
ƒqWxtt|dtƒD]`}xW||D]K}d|t
j|jj|ƒƒf}|jdt||ƒ|fƒqWqûWdS(slist signed changesetss%s:%d node does not exist
treverses%5d:%ss	%-30s %s
N(R=RPtlookuptKeyErrortwarnRt	changelogtrevRZt
setdefaulttextendtsortedtTrueRFthexRR!tkeystr(R9RKRVtrevsRR?RRXR)RNR@tnRMR0Ratk((s-/usr/lib/python2.7/dist-packages/hgext/gpg.pyR[œs(
%tsigcheckshg sigcheck REVc
C@st|ƒ}|j|ƒ}tj|ƒ}g}xft|ƒD]X\}}|\}}	}
||kr=t|||||ƒ}|r•|j|ƒq•q=q=W|sÃ|jtdƒtj	|ƒƒdS|jtdƒtj	|ƒƒx(|D] }|jdt
||ƒƒqêWdS(s@verify all the signatures there may be for a particular revisionsno valid signature for %s
Ns%s is signed by:
s %s
(R=R]RFRfRPRZRcR!RRGRg(
R9RKRaRVthexrevR0RR?RRXR)RjR((s-/usr/lib/python2.7/dist-packages/hgext/gpg.pyRkµs   
cC@s@|\}}}|jd|dƒ}|r8d||fS|SdS(s/associate a string to a key (username, comment)Rs%s (%s)N(R7R(R9RtkeyidtuserR1tcomment((s-/usr/lib/python2.7/dist-packages/hgext/gpg.pyRgÍs
RR2tlocalsmake the signature localR/tforces$sign even if the sigfile is modifiedR	s	no-commits'do not commit the sigfile after signingRjRsthe key id to sign withtIDtmtmessagesuse text as commit messagetTEXTtetedits invoke editor on commit messagesshg sign [OPTION]... [REV]...c	O@s*|jƒt||||ŽSWdQXdS(stadd a signature for the current or given revision

    If no revision is given, the parent of the working directory is used,
    or tip if no revision is checked out.

    The ``gpg.cmd`` config setting can be used to specify the command
    to run. A default key can be specified with ``gpg.key``.

    See :hg:`help dates` for a list of formats valid for -d/--date.
    N(twlockt_dosign(R9RKRhR:((s-/usr/lib/python2.7/dist-packages/hgext/gpg.pyRÖs
cO@sOt||}d}d}|jdƒ}|rFtj|ƒ|d<n|rqg|D]}|j|ƒ^qS}	nvg|jjƒD]}
|
tjkr|
^q}	t	|	ƒdkrÌt
jtdƒƒ‚n|	sç|j
jƒg}	nxÆ|	D]¾}tj|ƒ}|jtdƒ|j
j|ƒtj|ƒfƒt|||ƒ}|j|ƒ}
|
stt
jtdƒƒ‚ntj|
ƒ}
|
jddƒ}
|d	|||
f7}qîW|d
rÑ|jjd|ƒdS|dsAtj|jdd
gƒ}t|jd|dtdtƒƒrAt
jtdƒdtdƒƒ‚qAn|j d
dƒ}|j|ƒ|j!ƒd
|jkr|dj#d
gƒn|drždS|d}|sàdj$g|	D]}dtj|ƒ^q»ƒ}ny@t%j&dd|}|j'||d|dd|d|ƒWn(t(k
rJ}t
jt)|ƒƒ‚nXdS(Nt0R	tdateis6uncommitted merge - please provide a specific revisionssigning %d:%s
serror while signings
s	%s %s %s
RpRBRqs.hgsigsRtunknowntignoreds#working copy of .hgsigs is changed thintsplease commit .hgsigs manuallytabt	no_commitRts Added signature for changeset %steditformsgpg.signRnteditor(*R=R8Rt	parsedateR]tdirstatetparentsRFtnullidtlenRtAbortRR`ttipRfR!RaRGRRRRSt
b2a_base64treplaceRIR(RtexacttroottanytstatusRetwfileR"RtaddtjoinRtgetcommiteditortcommitt
ValueErrortstr(R9RKRhR:RVtsigvert
sigmessageR{RitnodesRthexnodeRR)tmsigstsigsfileRtR‚tinst((s-/usr/lib/python2.7/dist-packages/hgext/gpg.pyRyïsd%


$



	) cC@s/t|ƒdkr'|jd|ƒ|S|dS(Niskey ID "%s" format error
iøÿÿÿ(R‡tdebug(R9R((s-/usr/lib/python2.7/dist-packages/hgext/gpg.pyRU2scC@s6|dkrdtj|ƒStjtdƒƒ‚dS(smap a manifest into some textRzs%s
sunknown signature versionN(RFRfRRˆR(RKRtver((s-/usr/lib/python2.7/dist-packages/hgext/gpg.pyRR9s("t__doc__t
__future__RRSRRtmercurial.i18nRt	mercurialRRRRRRFRtcmdtabletcommandt
testedwithtobjectRR=RPRZR[RkRgRtFalsetcommitopts2RRyRURR(((s-/usr/lib/python2.7/dist-packages/hgext/gpg.pyt<module>s<.	;			!!					C