(self, required)
return None
Returns base URL for current diff.

    Args:
      required: If true, exits if the url can't be guessed, otherwise None is
        returned.
Returns base URL for current diff.
Returns base URL for current diff .
def _GuessBase(self, required):
    """Returns base URL for current diff.

    Args:
      required: If true, exits if the url can't be guessed, otherwise None is
        returned.
    """
    url = self._GetInfo("URL")
    if url:
        scheme, netloc, path, params, query, fragment = urlparse.urlparse(url)
        guess = ""
        # TODO(anatoli) - repository specific hacks should be handled by server
        if netloc == "svn.python.org" and scheme == "svn+ssh":
          path = "projects" + path
          scheme = "http"
          guess = "Python "
        elif netloc.endswith(".googlecode.com"):
          scheme = "http"
          guess = "Google Code "
        path = path + "/"
        base = urlparse.urlunparse((scheme, netloc, path, params,
                                    query, fragment))
        logging.info("Guessed %sbase = %s", guess, base)
        return base
    if required:
      ErrorExit("Can't find URL in output from svn info")
    return None
def _GuessBase ( self , required ) : url = self . _GetInfo ( "URL" ) if url : scheme , netloc , path , params , query , fragment = urlparse . urlparse ( url ) guess = "" # TODO(anatoli) - repository specific hacks should be handled by server if netloc == "svn.python.org" and scheme == "svn+ssh" : path = "projects" + path scheme = "http" guess = "Python " elif netloc . endswith ( ".googlecode.com" ) : scheme = "http" guess = "Google Code " path = path + "/" base = urlparse . urlunparse ( ( scheme , netloc , path , params , query , fragment ) ) logging . info ( "Guessed %sbase = %s" , guess , base ) return base if required : ErrorExit ( "Can't find URL in output from svn info" ) return None