/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/sign_my_commits.py

  • Committer: Jelmer Vernooij
  • Date: 2011-06-19 16:31:57 UTC
  • mto: This revision was merged to the branch mainline in revision 5987.
  • Revision ID: jelmer@samba.org-20110619163157-z2cbifxyagvtxuit
Fix handling of ghosts in sign_my_commits.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
lazy_import(globals(), """
22
22
from bzrlib import (
23
23
    bzrdir as _mod_bzrdir,
 
24
    errors,
24
25
    gpg,
25
26
    revision as _mod_revision,
26
27
    )
72
73
                        [branch.last_revision()]):
73
74
                    if _mod_revision.is_null(rev_id):
74
75
                        continue
75
 
                    if repo.has_signature_for_revision_id(rev_id):
 
76
                    try:
 
77
                        if repo.has_signature_for_revision_id(rev_id):
 
78
                            continue
 
79
                    except errors.NoSuchRevision:
 
80
                        # Ghost
76
81
                        continue
77
82
                    rev = repo.get_revision(rev_id)
78
83
                    if rev.committer != committer: