code: protected function getCommand($cmd, $url, $path = null)
      {
          $cmd = sprintf(
              '%s %s%s %s',
              $cmd,
              '--non-interactive ',
              $this->getCredentialString(),
              ProcessExecutor::escape($url)
          );
  
          if ($path) {
              $cmd .= ' ' . ProcessExecutor::escape($path);
          }
  
          return $cmd;
      }
docs: A method to create the svn commands run.
  
  @param string $cmd  Usually 'svn ls' or something like that.
  @param string $url  Repo URL.
  @param string $path Target for a checkout
  
  @return string