From: Evan Broder Date: Mon, 26 Apr 2010 19:24:57 +0000 (-0400) Subject: TracZephyrPlugin: Allow setting an opcode on outgoing zephyrs. X-Git-Url: https://snippets.scripts.mit.edu/gitweb.cgi/Scripts/git/.git/commitdiff_plain/776bd957124c1dfcde2890f989815d823b709c59 TracZephyrPlugin: Allow setting an opcode on outgoing zephyrs. --- diff --git a/TracZephyrPlugin/ZephyrPlugin.py b/TracZephyrPlugin/ZephyrPlugin.py index 88b9ec2..aeaec98 100644 --- a/TracZephyrPlugin/ZephyrPlugin.py +++ b/TracZephyrPlugin/ZephyrPlugin.py @@ -19,6 +19,9 @@ class ZephyrPlugin(Component): command = shlex.split(self.config.get('ZephyrPlugin', 'command').encode('utf-8')) if not command: command = ['zwrite', '-q', '-l', '-d'] + opcode = self.config.get('ZephyrPlugin', 'opcode') + if opcode: + command += ['-O', opcode] p = subprocess.Popen(command + ['-c', zclass, '-i', 'trac-#%s' % id],