parameters: (self, required)
return_statement: return None
docstring: Returns base URL for current diff.
  
      Args:
        required: If true, exits if the url can't be guessed, otherwise None is
          returned.
docstring_summary: Returns base URL for current diff.
docstring_tokens: Returns base URL for current diff .
function: 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
function_tokens: 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