-=[ Mr. Bumblebee ]=-
_Indonesia_
ó
Â.NSc @@ sž d Z d d l m Z d d l m Z m Z m Z m Z d d l m
Z
d d l m Z d d l
m Z m Z d e
f d „ ƒ YZ d e
f d
„ ƒ YZ d S( sN Command which looks for unsigned commits by the current user, and signs them.
i ( t absolute_import( t
controldirt errorst gpgt revision( t Command( t Option( t gettextt ngettextt cmd_sign_my_commitsc B@ sA e Z d Z e d d d ƒg Z d d g Z d d e d „ Z RS( 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.
s dry-runt helpsL Don't actually sign anything, just print the revisions that would be signed.s location?s
committer?c C@ sÆ | d k r% t j j d ƒ d } n t j j | ƒ } | j ƒ } | j } | j ƒ } | d k rv | j d ƒ } n t j
| ƒ } d } | j ƒ zÿ | j ƒ }
| j
ƒ yÄ x½ |
j | j ƒ g ƒ D]£ \ } } t j | ƒ rë qÊ n | d k rý qÊ n | j | ƒ rqÊ n | j | ƒ }
|
j | k r6qÊ n | j j d | ƒ | d 7} | sÊ | j | | ƒ qÊ qÊ WWn | j ƒ ‚ n X| j ƒ Wd | j ƒ X| j j t d d | ƒ | ƒ d S( Nt .i t emails %s
i s Signed %d revision.
s Signed %d revisions.
( t NoneR t
ControlDirt open_containingt opent open_brancht
repositoryt get_config_stackt getR t GPGStrategyt
lock_writet get_grapht start_write_groupt
iter_ancestryt
last_revisiont
_mod_revisiont is_nullt has_signature_for_revision_idt get_revisiont committert outft writet
sign_revisiont abort_write_groupt commit_write_groupt unlockR ( t selft locationR t dry_runt bzrdirt brancht repot
branch_configt gpg_strategyt countt grapht rev_idt parentst rev( ( sD /usr/lib/python2.7/dist-packages/bzrlib/commit_signature_commands.pyt run4 sL
N( t __name__t
__module__t __doc__R t
takes_optionst
takes_argsR
t FalseR3 ( ( ( sD /usr/lib/python2.7/dist-packages/bzrlib/commit_signature_commands.pyR ! s
t cmd_verify_signaturesc B@ sS e Z d Z e d d d d d d e ƒd d g Z d g Z d d d d
d „ Z RS(
so Verify all commit signatures.
Verifies that all commits in the branch are signed by known GnuPG keys.
s acceptable-keysR
sO Comma separated list of GPG key patterns which are acceptable for verification.t
short_namet kt typeR t verboses location?u .c @ s t j j | ƒ d } | j ƒ } | j } | j ƒ } t j | ƒ } | j | ƒ ‡ f d † }
‡ f d † } ˆ j | j
ƒ j ƒ g } | d k rt
| ƒ d k rÔ | d j | ƒ \ }
} | j | ƒ qt
| ƒ d k r| d j | ƒ \ } } | d j | ƒ \ } } | d k r3| j ƒ } n | d k sK| d k rct j t d ƒ ƒ ‚ n x4 t | | d ƒ D] }
| j | j |
ƒ ƒ qwWqno | j ƒ } g } xZ | j | j ƒ g ƒ D]@ \ } } t j | ƒ réqÈn | d k rûqÈn | j | ƒ qÈWt j | | | ƒ \ } } } | rq|
t d ƒ ƒ | rmx$ t j | ƒ D] } | | ƒ qVWn d S|
t j | ƒ ƒ | r±x$ t j | ƒ D] } | | ƒ qšWn |
t j | ƒ ƒ | rôx' t j | | ƒ D] } | | ƒ qÝWn |
t j | ƒ ƒ | r4x$ t j! | ƒ D] } | | ƒ qWn |
t j"