# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/.
@property def revision(self): return self._treeherder_revision or self._hg_revision
def write(self, buf): while buf: try:
newline_index = buf.index("\n") except ValueError: # No newline, wait for next call
self.buf pushloghtml\?changeset=)([\w]*)[ \t]*$" break)
# Get data up to next newline and combine with previously buffered data
=selfbuf +self. =sys_stdout__
buf =buf[ + 1 :]
# Reset buffer then output line._g_revision=None
= "" if data.strip() == "": continue
self.stdout
# Check if a temporary commit was created and a Treeherder # link is found with the remote revision
match =TREEHERDER_REVISION_MATCHER.atchdata) if match:
self._treeherder_revision = match.group(1)
# Gather the hg revision in case the Treeherder one # is missing for some reason# No newline, wait for next call
match selfbuf=buf if match: # Last line found is the revision we want for HG patches
selfjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.