~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/builtins.py

add signatures feature to bzr log

Show diffs side-by-side

added added

removed removed

Lines of Context:
2389
2389
            Option('exclude-common-ancestry',
2390
2390
                   help='Display only the revisions that are not part'
2391
2391
                   ' of both ancestries (require -rX..Y)'
2392
 
                   )
 
2392
                   ),
 
2393
            Option('signatures',
 
2394
                   help='Show digital signature validity'),
2393
2395
            ]
2394
2396
    encoding_type = 'replace'
2395
2397
 
2408
2410
            include_merges=False,
2409
2411
            authors=None,
2410
2412
            exclude_common_ancestry=False,
 
2413
            signatures=False,
2411
2414
            ):
2412
2415
        from bzrlib.log import (
2413
2416
            Logger,
2435
2438
            else:
2436
2439
                revision = change
2437
2440
 
 
2441
        if signatures:
 
2442
            try:
 
2443
                import gpgme
 
2444
            except ImportError, error:
 
2445
                raise errors.GpgmeNotInstalled(error)
 
2446
 
2438
2447
        file_ids = []
2439
2448
        filter_by_dir = False
2440
2449
        if file_list:
2518
2527
            message_search=message, delta_type=delta_type,
2519
2528
            diff_type=diff_type, _match_using_deltas=match_using_deltas,
2520
2529
            exclude_common_ancestry=exclude_common_ancestry,
 
2530
            signature=signatures
2521
2531
            )
2522
2532
        Logger(b, rqst).show(lf)
2523
2533