Exemple #1
0
    def _check_cvs_runs(self, global_options):
        """Check that CVS can be started.

    Try running 'cvs --version' with the current setting for
    self.cvs_executable and the specified global_options.  If not
    successful, raise a CommandFailedException."""

        check_command_runs([self.cvs_executable] + global_options + ["--version"], self.cvs_executable)
 def __init__(self, co_executable):
   self.co_executable = co_executable
   try:
     check_command_runs([self.co_executable, '--version'], self.co_executable)
   except CommandFailedException, e:
     raise FatalError('%s\n'
                      'Please check that co is installed and in your PATH\n'
                      '(it is a part of the RCS software).' % (e,))
Exemple #3
0
 def __init__(self, co_executable):
   self.co_executable = co_executable
   try:
     check_command_runs([self.co_executable, '-V'], self.co_executable)
   except CommandFailedException, e:
     raise FatalError('%s\n'
                      'Please check that co is installed and in your PATH\n'
                      '(it is a part of the RCS software).' % (e,))
    def _check_cvs_runs(self, global_arguments):
        """Check that CVS can be started.

    Try running 'cvs --version' with the current setting for
    self.cvs_executable and the specified global_arguments.  If not
    successful, raise a CommandFailedException."""

        check_command_runs(
            [self.cvs_executable] + global_arguments + ['--version'],
            self.cvs_executable,
        )