From 776bd957124c1dfcde2890f989815d823b709c59 Mon Sep 17 00:00:00 2001 From: Evan Broder Date: Mon, 26 Apr 2010 15:24:57 -0400 Subject: [PATCH] TracZephyrPlugin: Allow setting an opcode on outgoing zephyrs. --- TracZephyrPlugin/ZephyrPlugin.py | 3 +++ 1 file changed, 3 insertions(+) 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], -- 2.44.0