Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 99047a72 in mainline


Ignore:
Timestamp:
2012-07-29T21:11:10Z (9 years ago)
Author:
Martin Sucha <sucha14@…>
Branches:
lfn, master
Children:
dce39b4
Parents:
4efeab5
Message:

Display commit message for the last revision in the post-commit e-mail's subject.

This makes it so that the commit message in subject matches the displayed revision number.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • contrib/bazaar/bzreml/__init__.py

    r4efeab5 r99047a72  
    119119                        body = StringIO()
    120120                       
     121                        commit_message_new = None
    121122                        for revision_ac_id in revision_sequence(branch, revision_old_id, revision_new_id):
    122123                                revision_ac = branch.repository.get_revision(revision_ac_id)
     
    153154                                        commit_message = "(empty)"
    154155                               
     156                                if commit_message_new == None:
     157                                        commit_message_new = commit_message
     158                               
    155159                                body.write("\n")
     160                       
     161                        if commit_message_new == None:
     162                                commit_message_new = "(none)"
    156163                       
    157164                        tree_old = branch.repository.revision_tree(revision_old_id)
     
    199206                                tree_old.unlock()
    200207                       
    201                         subject = "r%d - %s" % (revision_new_no, commit_message)
     208                        subject = "r%d - %s" % (revision_new_no, commit_message_new)
    202209                       
    203210                        send_smtp("localhost", config_sender(config), config_to(config), subject, body.getvalue())
Note: See TracChangeset for help on using the changeset viewer.