~ubuntu-branches/ubuntu/edgy/trac/edgy

« back to all changes in this revision

Viewing changes to contrib/trac-post-commit-hook

  • Committer: Bazaar Package Importer
  • Author(s): Stephan Hermann
  • Date: 2005-07-24 12:21:52 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050724122152-3xf8v1oqf2jcqk5n
Tags: 0.8.4-1ubuntu1
Resynchronise with Debian.

Show diffs side-by-side

added added

removed removed

Lines of Context:
123
123
        cmdGroups = commandPattern.findall(msg) 
124
124
        for cmd, tkts in cmdGroups:
125
125
            try:
126
 
                getattr(self, CommitHook._supported_cmds[cmd.lower()])(ticketPattern.findall(tkts))
 
126
                if CommitHook._supported_cmds.has_key(cmd.lower()):
 
127
                    getattr(self, CommitHook._supported_cmds[cmd.lower()])(ticketPattern.findall(tkts))
127
128
            except: 
128
129
                self.con.rollback()
129
130
        self.con.commit()