-=[ Mr. Bumblebee ]=-
_Indonesia_

Path : /usr/lib/python2.7/dist-packages/bzrlib/
File Upload :
Current File : //usr/lib/python2.7/dist-packages/bzrlib/commit_signature_commands.pyc

ó
Â.NSc@@sždZddlmZddlmZmZmZmZddl	m
Z
ddlmZddl
mZmZde
fd„ƒYZd	e
fd
„ƒYZdS(sNCommand which looks for unsigned commits by the current user, and signs them.
i(tabsolute_import(t
controldirterrorstgpgtrevision(tCommand(tOption(tgettexttngettexttcmd_sign_my_commitscB@sAeZdZedddƒgZddgZdded„ZRS(säSign all commits by a given committer.

    If location is not specified the local tree is used.
    If committer is not specified the default committer is used.

    This does not sign commits that already have signatures.
    sdry-runthelpsLDon't actually sign anything, just print the revisions that would be signed.s	location?s
committer?cC@sÆ|dkr%tjjdƒd}ntjj|ƒ}|jƒ}|j}|jƒ}|dkrv|jdƒ}nt	j
|ƒ}d}	|jƒzÿ|jƒ}
|j
ƒyÄx½|
j|jƒgƒD]£\}}tj|ƒrëqÊn|dkrýqÊn|j|ƒrqÊn|j|ƒ}
|
j|kr6qÊn|jjd|ƒ|	d7}	|sÊ|j||ƒqÊqÊWWn|jƒ‚nX|jƒWd|jƒX|jjtdd|	ƒ|	ƒdS(Nt.itemails%s
isSigned %d revision.
sSigned %d revisions.
(tNoneRt
ControlDirtopen_containingtopentopen_brancht
repositorytget_config_stacktgetRtGPGStrategyt
lock_writet	get_graphtstart_write_groupt
iter_ancestryt
last_revisiont
_mod_revisiontis_nullthas_signature_for_revision_idtget_revisiont	committertoutftwritet
sign_revisiontabort_write_grouptcommit_write_grouptunlockR(tselftlocationRtdry_runtbzrdirtbranchtrepot
branch_configtgpg_strategytcounttgraphtrev_idtparentstrev((sD/usr/lib/python2.7/dist-packages/bzrlib/commit_signature_commands.pytrun4sL	

	

	N(	t__name__t
__module__t__doc__Rt
takes_optionst
takes_argsR
tFalseR3(((sD/usr/lib/python2.7/dist-packages/bzrlib/commit_signature_commands.pyR	!s
	tcmd_verify_signaturescB@sSeZdZeddddddeƒddgZd	gZdddd
d„ZRS(
soVerify all commit signatures.

    Verifies that all commits in the branch are signed by known GnuPG keys.
    sacceptable-keysR
sOComma separated list of GPG key patterns which are acceptable for verification.t
short_nametkttypeRtverboses	location?u.c@sÂtjj|ƒd}|jƒ}|j}|jƒ}tj|ƒ}	|	j|ƒ‡fd†}
‡fd†}ˆj	|j
ƒjƒg}|dk	rt
|ƒdkrÔ|dj|ƒ\}
}|j|ƒqt
|ƒdkr|dj|ƒ\}}|dj|ƒ\}}|dkr3|jƒ}n|dksK|dkrctjtdƒƒ‚nx4t||dƒD]}
|j|j|
ƒƒqwWqno|jƒ}g}xZ|j|jƒgƒD]@\}}tj|ƒréqÈn|dkrûqÈn|j|ƒqÈWtj|||	ƒ\}}}|rq|
tdƒƒ|rmx$tj|ƒD]}||ƒqVWndS|
tj|ƒƒ|r±x$tj|ƒD]}||ƒqšWn|
tj|ƒƒ|rôx'tj||ƒD]}||ƒqÝWn|
tj |ƒƒ|r4x$tj!|ƒD]}||ƒqWn|
tj"|ƒƒ|rwx'tj#||ƒD]}||ƒq`Wn|
tj$|ƒƒ|rºx'tj%||ƒD]}||ƒq£WndSdS(Nic@sˆjj|dƒdS(Ns
(R R!(tstring(R&(sD/usr/lib/python2.7/dist-packages/bzrlib/commit_signature_commands.pyR!sc@sˆjjd|dƒdS(Ns  s
(R R!(R?(R&(sD/usr/lib/python2.7/dist-packages/bzrlib/commit_signature_commands.pyt
write_verboseƒsiis7Cannot verify a range of non-revision-history revisionss'All commits signed with verifiable keys(&RRRRRRRRtset_acceptable_keystadd_cleanupt	lock_readR%R
tlent
in_historytappendtrevnoRtBzrCommandErrorRtranget
get_rev_idRRRRRtbulk_verify_signaturestverbose_valid_messagetvalid_commits_messagetexpired_commit_messagetverbose_expired_key_messagetunknown_key_messagetverbose_missing_key_messagetcommit_not_valid_messagetverbose_not_valid_messagetcommit_not_signed_messagetverbose_not_signed_message(R&tacceptable_keysRR>R'R)R*R+R,R-R!R@t	revisionsRGR0t
from_revnot
from_revidtto_revnotto_revidR/R1R.tresulttall_verifiabletmessage((R&sD/usr/lib/python2.7/dist-packages/bzrlib/commit_signature_commands.pyR3ws|	
	 	N(	R4R5R6RtstrR7R8R
R3(((sD/usr/lib/python2.7/dist-packages/bzrlib/commit_signature_commands.pyR:fs				N(R6t
__future__RtbzrlibRRRRRtbzrlib.commandsRt
bzrlib.optionRtbzrlib.i18nRRR	R:(((sD/usr/lib/python2.7/dist-packages/bzrlib/commit_signature_commands.pyt<module>s"E

Copyright © 2017 || Recoded By Mr.Bumblebee