Changeset 8e7c9fe in mainline for contrib/bazaar/bzreml/__init__.py
- Timestamp:
- 2014-09-12T03:45:25Z (11 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c53b58e
- Parents:
- 3eb0c85 (diff), 105d8d6 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
contrib/bazaar/bzreml/__init__.py
r3eb0c85 r8e7c9fe 40 40 import smtplib 41 41 import time 42 import os 42 43 43 44 from StringIO import StringIO … … 133 134 revision_ac_no = branch.revision_id_to_revno(revision_ac_id) 134 135 136 repo_name = os.path.basename(branch.base) 137 if (repo_name == ''): 138 repo_name = os.path.basename(os.path.dirname(branch.base)) 139 135 140 committer = revision_ac.committer 136 141 authors = revision_ac.get_apparent_authors() 137 142 date = time.strftime("%Y-%m-%d %H:%M:%S %Z (%a, %d %b %Y)", time.localtime(revision_ac.timestamp)) 143 144 body.write("Repo: %s\n" % repo_name) 138 145 139 146 if (authors != [committer]): … … 208 215 tree_prev.unlock() 209 216 210 subject = " r%d - %s" % (revision_ac_no, commit_message)217 subject = "[%s] r%d - %s" % (repo_name, revision_ac_no, commit_message) 211 218 send_smtp("localhost", config_sender(config), config_to(config), subject, body.getvalue()) 212 219
Note:
See TracChangeset
for help on using the changeset viewer.