Merge lp:~dobey/tarmac/rm-commit-plug into lp:~ubuntuone-hackers/tarmac/trunk

Proposed by dobey on 2013-01-04
Status: Merged
Approved by: Paul Hummer on 2013-01-04
Approved revision: 426
Merged at revision: 426
Proposed branch: lp:~dobey/tarmac/rm-commit-plug
Merge into: lp:~ubuntuone-hackers/tarmac/trunk
Diff against target: 28 lines (+0/-24)
1 file modified
tarmac/plugins/ (+0/-24)
To merge this branch: bzr merge lp:~dobey/tarmac/rm-commit-plug
Reviewer Review Type Date Requested Status
Paul Hummer (community) 2013-01-04 Approve on 2013-01-04
Review via email:

Commit message

Remove the broken commit plug-in.

Description of the change

This removes the plug-in which was added in as it breaks the default commit message handling, isn't enabled via a config option, and duplicates functionality already in the commitmessage plug-in, but doesn't work with multiple reviewers. It also has no license header, or tests.

To post a comment you must log in.
Paul Hummer (rockstar) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== removed file 'tarmac/plugins/'
2--- tarmac/plugins/ 2012-12-18 20:45:26 +0000
3+++ tarmac/plugins/ 1970-01-01 00:00:00 +0000
4@@ -1,24 +0,0 @@
5-import re
7-from tarmac.hooks import tarmac_hooks
8-from tarmac.plugins import TarmacPlugin
11-class CommitMessage(TarmacPlugin):
13- def run(self, command, target, source, proposal):
14- if not re.match(r'^\[.+?\].*$', proposal.commit_message):
15- params = ["[r=%s]" %]
16- for bug in proposal.source_branch.linked_bugs:
17- params.append("[bug=%s]" %
19- proposal.commit_message = ("%s " % ",".join(params) +
20- proposal.commit_message)
21- self.logger.debug("Setting commit_message to %s",
22- proposal.commit_message)
23- else:
24- self.logger.debug("%s has already right commit message",
25- proposal)
28- 'Commit messsage template editor.')


People subscribed via source and target branches

to all changes: