def __add_commit_link(self, rpc_server, xsrf_token, commit_hash):
        repository_info = self.__rietveld_info.remote_info.repository_info
        if repository_info is None:
            return

        try:
            commit_link = repository_info.commit_link(commit_hash)
            message = 'Added in\n%s' % (commit_link,)
            publish_request_values = {
                utils.XSRF_TOKEN: xsrf_token,
                utils.MESSAGE: message,
                utils.CC: self.__rietveld_info.cc,
                utils.REVIEWERS: self.__rietveld_info.reviewers,
                utils.SUBJECT: self.__subject,
            }
            publish_request_values.update(utils.PUBLISH_ISSUE_BASE)
            publish_request_body = urllib.urlencode(publish_request_values)
            publish_issue_uri = utils.PUBLISH_ISSUE_MESSAGE_TEMPLATE % {
                  utils.ISSUE: self.__issue}
            rpc_server.Send(publish_issue_uri, payload=publish_request_body)
        except urllib2.HTTPError:
            print utils.FAILED_PUBLISH_TEMPLATE % {
                utils.ISSUE: self.__issue,
                utils.SERVER: self.__server,
                utils.MESSAGE: message,
            }
        else:
            print 'Message:\n%s\nposted to code review issue.' % (message,)
Return default sort order
dataset/ETHPy150Open googlearchive/git-rv/submit.py/SubmitAction.__add_commit_link--crossover with--dataset/ETHPy150Open flask-admin/flask-admin/flask_admin/model/base.py/BaseModelView._get_default_order