def GetCodereviewServer(self):
    if (not self._gerrit_server):
        if self.GetIssue():
            gerrit_server_setting = self.GetCodereviewServerSetting()
            if gerrit_server_setting:
                self._gerrit_server = RunGit(['config', gerrit_server_setting], error_ok=True).strip()
                if self._gerrit_server:
                    self._gerrit_host = urlparse.urlparse(self._gerrit_server).netloc
        if (not self._gerrit_server):
            parts = self._GetGitHost().split('.')
            parts[0] = (parts[0] + '-review')
            self._gerrit_host = '.'.join(parts)
            self._gerrit_server = ('https://%s' % self._gerrit_host)
    return self._gerrit_server
def GetCodereviewServer(self):
    if (not self._gerrit_server):
        if self.GetIssue():
            gerrit_server_setting = self.GetCodereviewServerSetting()
            if gerrit_server_setting:
                self._gerrit_server = RunGit(['config', gerrit_server_setting], error_ok=True).strip()
                if self._gerrit_server:
                    self._gerrit_host = urlparse.urlparse(self._gerrit_server).netloc
        if (not self._gerrit_server):
            parts = self._GetGitHost().split('.')
            parts[0] = (parts[0] + '-review')
            self._gerrit_host = '.'.join(parts)
            self._gerrit_server = ('https://%s' % self._gerrit_host)
    return self._gerrit_server