Skip to content

Instantly share code, notes, and snippets.

@jamesrcounts
Created June 5, 2015 17:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jamesrcounts/0ffb24fde079d1ce4efd to your computer and use it in GitHub Desktop.
Save jamesrcounts/0ffb24fde079d1ce4efd to your computer and use it in GitHub Desktop.
Tortise Text Reporter for Python
from subprocess import call
from approvaltests.Reporter import Reporter
class TortoiseTextReporter(Reporter):
@staticmethod
def get_command(approved_path, received_path):
return ['C:\\Program Files\\TortoiseSVN\\bin\\tortoisemerge.exe', received_path, approved_path]
def report(self, approved_path, received_path):
command_array = self.get_command(approved_path, received_path)
call(command_array)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment