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

Changeset a4fbb13c in mainline


Ignore:
Timestamp:
2014-05-04T20:24:25Z (8 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master
Children:
2040d5f
Parents:
9f40318f
Message:

include repository name in the commit email

Location:
contrib/bazaar/bzreml
Files:
2 edited

Legend:

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

    r9f40318f ra4fbb13c  
    4040import smtplib
    4141import time
     42import os
    4243
    4344from StringIO import StringIO
     
    133134                                revision_ac_no = branch.revision_id_to_revno(revision_ac_id)
    134135                               
     136                                repo_name = os.path.basename(branch.base)
    135137                                committer = revision_ac.committer
    136138                                authors = revision_ac.get_apparent_authors()
    137139                                date = time.strftime("%Y-%m-%d %H:%M:%S %Z (%a, %d %b %Y)", time.localtime(revision_ac.timestamp))
     140                               
     141                                body.write("Repo: %s\n" % repo_name)
    138142                               
    139143                                if (authors != [committer]):
     
    208212                                        tree_prev.unlock()
    209213                               
    210                                 subject = "r%d - %s" % (revision_ac_no, commit_message)
     214                                subject = "[%s] r%d - %s" % (repo_name, revision_ac_no, commit_message)
    211215                                send_smtp("localhost", config_sender(config), config_to(config), subject, body.getvalue())
    212216                               
  • contrib/bazaar/bzreml/setup.py

    r9f40318f ra4fbb13c  
    77        description = 'Commit email plugin for Bazaar',
    88        keywords = 'plugin bzr email',
    9         version = '1.3',
     9        version = '1.4',
    1010        url = 'http://www.decky.cz/',
    1111        license = 'BSD',
Note: See TracChangeset for help on using the changeset viewer.