summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManish Sinha <manishsinha@ubuntu.com>2012-03-18 04:35:17 +0530
committerManish Sinha <manishsinha@ubuntu.com>2012-03-18 04:35:17 +0530
commitb17f657892d1327e2de2ae62a73bea51fe74a0b9 (patch)
tree5f099db9aaa69a259d9da87326be9e5f3a2e068c
parent51a43d23c383383bd63a7f3da44940f67a2cae87 (diff)
Made the post_commit text to be set for subject which was not set till now
-rw-r--r--bzr/hooks.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/bzr/hooks.py b/bzr/hooks.py
index 6c69043..5bd8d35 100644
--- a/bzr/hooks.py
+++ b/bzr/hooks.py
@@ -78,11 +78,12 @@ def post_commit(local, master, old_revno, old_revid, new_revno, new_revid):
interpretation = Interpretation.CREATE_EVENT
else:
interpretation = Interpretation.MODIFY_EVENT
- _text = _(" Revision no. : ")
+ _text = _("Revision: ")
_text += str(new_revno) + "\n"
_text += revision.message.rstrip()
subject = subject_for_branch(master)
+ subject.set_text(_text)
event = Event.new_for_values(
timestamp=int(revision.timestamp*1000),
interpretation=unicode(interpretation),