Home
last modified time | relevance | path

Searched +full:rev +full:- +full:parse (Results 1 – 25 of 619) sorted by relevance

12345678910>>...25

/external/toolchain-utils/llvm_tools/
Dgit_llvm_rev.py3 # Use of this source code is governed by a BSD-style license that can be
30 # llvm-svn: 375505
38 # The first element is the first non-`llvm-svn` commit that exists. Later ones
50 # - |dir| is the directory of the LLVM checkout
51 # - |remote| is the name of the LLVM remote. Generally it's "origin".
57 class Rev(NamedTuple("Rev", (("branch", str), ("number", int)))): class
61 def parse(rev: str) -> "Rev": member in Rev
62 """Parses a Rev from the given string.
64 Raises a ValueError on a failed parse.
71 if rev.startswith("r"):
[all …]
/external/grpc-grpc/tools/internal_ci/helper_scripts/
Dprepare_build_macos_interop_rc8 # http://www.apache.org/licenses/LICENSE-2.0
21 git clone --recursive https://github.com/grpc/grpc-go ./../grpc-go && (cd ../grpc-go; git rev-parse
22 git clone --recursive https://github.com/grpc/grpc-java ./../grpc-java && (cd ../grpc-java; git rev…
23 git clone --recursive https://github.com/grpc/grpc-node ./../grpc-node && (cd ../grpc-node; git rev…
24 git clone --recursive https://github.com/grpc/grpc-dart ./../grpc-dart && (cd ../grpc-dart; git rev…
25 git clone --recursive https://github.com/grpc/grpc-dotnet ./../grpc-dotnet && (cd ../grpc-dotnet; g…
Dprepare_build_interop_rc8 # http://www.apache.org/licenses/LICENSE-2.0
19 export LANG=en_US.UTF-8
21 git submodule update --init
25 git clone --recursive https://github.com/grpc/grpc-go ./../grpc-go && (cd ../grpc-go; git rev-parse
26 git clone --recursive https://github.com/grpc/grpc-java ./../grpc-java && (cd ../grpc-java; git rev…
27 git clone --recursive https://github.com/grpc/grpc-node ./../grpc-node && (cd ../grpc-node; git rev…
28 git clone --recursive https://github.com/grpc/grpc-dart ./../grpc-dart && (cd ../grpc-dart; git rev…
29 git clone --recursive https://github.com/grpc/grpc-dotnet ./../grpc-dotnet && (cd ../grpc-dotnet; g…
33 …/73836_interop_to_prod_tests_service_account_key" ~/service_account/grpc-testing-ebe7c1ac7381.json…
/external/rust/crates/grpcio-sys/grpc/tools/internal_ci/helper_scripts/
Dprepare_build_macos_interop_rc8 # http://www.apache.org/licenses/LICENSE-2.0
21 git clone --recursive https://github.com/grpc/grpc-go ./../grpc-go && (cd ../grpc-go; git rev-parse
22 git clone --recursive https://github.com/grpc/grpc-java ./../grpc-java && (cd ../grpc-java; git rev…
23 git clone --recursive https://github.com/grpc/grpc-node ./../grpc-node && (cd ../grpc-node; git rev…
24 git clone --recursive https://github.com/grpc/grpc-dart ./../grpc-dart && (cd ../grpc-dart; git rev…
25 git clone --recursive https://github.com/grpc/grpc-dotnet ./../grpc-dotnet && (cd ../grpc-dotnet; g…
Dprepare_build_interop_rc8 # http://www.apache.org/licenses/LICENSE-2.0
19 export LANG=en_US.UTF-8
21 git submodule update --init
25 git clone --recursive https://github.com/grpc/grpc-go ./../grpc-go && (cd ../grpc-go; git rev-parse
26 git clone --recursive https://github.com/grpc/grpc-java ./../grpc-java && (cd ../grpc-java; git rev…
27 git clone --recursive https://github.com/grpc/grpc-node ./../grpc-node && (cd ../grpc-node; git rev…
28 git clone --recursive https://github.com/grpc/grpc-dart ./../grpc-dart && (cd ../grpc-dart; git rev…
29 git clone --recursive https://github.com/grpc/grpc-dotnet ./../grpc-dotnet && (cd ../grpc-dotnet; g…
33 …/73836_interop_to_prod_tests_service_account_key" ~/service_account/grpc-testing-ebe7c1ac7381.json…
/external/cldr/tools/scripts/ansible/templates/
Ddeploy-sh.j22 # Note: this is managed by Ansible, as deploy-sh.j2
3 # Don't modify this file unless its name is deploy-sh.j2
4 if [[ ${1} = "--repo" ]];
7 GITHUB_REPO=$(echo -n "${1}" | tr -c 'A-Za-z0-9_.-/' '-')
11 GITHUB_REPO=unicode-org/cldr
17 WORKDIR=${TMPDIR-/tmp} # keep all random files here
22 git config --global advice.detachedHead false
23 rm -f ${WORKDIR}/git-list.txt
34 git fetch -p "${GIT_PREFETCH}" "${GITHUB_SHA}" || exit 1
35 git clean -f -d || echo 'warning: err on cleanup'
[all …]
/external/sdv/vsomeip/third_party/boost/spirit/classic/test/
Dclosure_tests.cpp2 Copyright (c) 2001-2003 Joel de Guzman
98 pi = parse("123, 456, 789", num_list, space_p); in closure_tests()
103 rule<scanner<>, my_closure2::context_t> rev; in closure_tests() local
104 rev = anychar_p[rev.ch = arg1] >> !rev >> f_ch_p(rev.ch); in closure_tests()
106 pi = parse("xyzzyx", rev); in closure_tests()
110 pi = parse("xyzczyx", rev); in closure_tests()
114 pi = parse("atoyyota", in closure_tests()
121 pi = parse("whatdahell", in closure_tests()
134 pi = parse("123, 456", complex_p[var(x) = arg1], space_p); in closure_tests()
/external/angle/src/
Dcommit_id.py3 # Use of this source code is governed by a BSD-style license that can be
14 Usage: commit_id.py check - check if git is present
15 commit_id.py get_git_dirs - prints work-tree and common git directories
16 commit_id.py unpack <ref_file> - check if <ref_file> exists, and if not
17 create it based on .git/packed-refs
18 commit_id.py position - print commit position
19 commit_id.py gen <file_to_write> - generate commit.h"""
24 command, stdout=sp.PIPE, shell=True, cwd=cwd).communicate()[0].strip().decode('utf-8')
28 return grab_output('git rev-parse --git-dir', cwd)
32 return grab_output('git rev-parse --git-common-dir', cwd)
[all …]
/external/crosvm/tools/tests/
Dcl_tests.py3 # Use of this source code is governed by a BSD-style license that can be
34 git("checkout -d HEAD").fg(quiet=True)
38 git("branch -D", branch).fg(quiet=True)
41 git("remote set-url origin https://chromium.googlesource.com/crosvm/crosvm").fg(quiet=True)
42 git("fetch -q origin main").fg(quiet=True)
43 git("fetch -q origin chromeos").fg(quiet=True)
45 def tearDown(self) -> None:
49 git("checkout -b", branch, "--track", upstream).fg(quiet=True)
52 git("commit -a -m", quoted(message)).fg(quiet=True)
53 return git("rev-parse HEAD").stdout()
[all …]
/external/cronet/third_party/boringssl/
Droll_boringssl.py3 # Use of this source code is governed by a BSD-style license that can be
39 cmd = ['git', 'diff', '--ignore-submodules']
41 subprocess.check_output(cmd + ['--cached'], cwd=repo).strip())
44 def RevParse(repo, rev): argument
46 # Use text to get the revision as a string. We assume rev-parse is always
47 # valid UTF-8.
48 return subprocess.check_output(['git', 'rev-parse', rev], cwd=repo,
54 return subprocess.check_output(['gclient', 'getdep', '-r', dep], cwd=repo,
58 def SetDep(repo, dep, rev): argument
59 """Sets the revision of |dep| to |rev|."""
[all …]
/external/autotest/tko/
Dsite_parse.py1 #!/usr/bin/python3 -u
4 # Use of this source code is governed by a BSD-style license that can be
25 # Existing parse behavior is kept completely intact. If the site parser is not
43 from autotest_lib.tko import parse
63 _CACHE_DIR = 'tmp/symbol-cache'
121 """Returns a tuple of (board, rev, version) parsed from the job name.
123 Handles job names of the form "<board-rev>-<version>...",
124 "<board-rev>-<rev>-<version>...", and
125 "<board-rev>-<rev>-<version_0>_to_<version>..."
131 A tuple of (board, rev, version) parsed from the job name.
[all …]
/external/pdfium/testing/tools/
Dgithelper.py2 # Use of this source code is governed by a BSD-style license that can be
28 output = RunCommandPropagateErr(['git', 'stash', '--include-untracked'],
40 self.stashed -= 1
44 return RunCommandPropagateErr(['git', 'rev-parse', '--abbrev-ref', 'HEAD'],
48 return RunCommandPropagateErr(['git', 'rev-parse', 'HEAD'],
52 output = RunCommandPropagateErr(['git', 'status', '--porcelain'],
59 ['git', 'rev-parse', '--verify', branch_name])
/external/mesa3d/bin/ci/
Dci_run_n_monitor.py2 # Copyright © 2020 - 2022 Collabora Ltd.
8 # SPDX-License-Identifier: MIT
64 def print_job_status(job, new_status=False) -> None:
75 duration = time.perf_counter() - time.mktime(job.started_at.timetuple())
89 def pretty_wait(sec: int) -> None:
91 for val in range(sec, 0, -1):
103 ) -> tuple[Optional[int], Optional[int]]:
163 print("---------------------------------", flush=False)
197 ) -> gitlab.v4.objects.ProjectPipelineJob:
208 ) -> gitlab.v4.objects.ProjectPipelineJob:
[all …]
Dupdate_traces_checksum.py7 # SPDX-License-Identifier: MIT
33 ) -> None:
36 target_jobs_regex = re.compile(".*-traces([:].*)?$")
63 with open(traces_file[0], 'r', encoding='utf-8') as target_file:
71 # parse artifact
73 results_json = bz2.decompress(results_json_bz2).decode("utf-8", errors="replace")
104 with open(traces_file[0], 'w', encoding='utf-8') as target_file:
109 def parse_args() -> None:
110 """Parse args"""
113 epilog="Example: update_traces_checksum.py --rev $(git rev-parse HEAD) "
[all …]
/external/openthread/tests/scripts/thread-cert/
Dmesh_cop.py135 def parse(self, data, message_info): member in ChannelFactory
151 def parse(self, data, message_info): member in PanidFactory
174 def parse(self, data, message_info): member in ExtendedPanidFactory
198 def parse(self, data, message_info): member in NetworkNameFactory
213 def parse(self, data, message_info): member in PSKcFactory
226 def parse(self, data, message_info): member in NetworkKeyFactory
239 def parse(self, data, message_info): member in NetworkKeySequenceCounterFactory
252 def parse(self, data, message_info): member in NetworkMeshLocalPrefixFactory
281 def parse(self, data, message_info): member in SteeringDataFactory
310 def parse(self, data, message_info): member in BorderAgentLocatorFactory
[all …]
/external/cpu_features/scripts/
Dmake_release.sh3 set -e # Fail on error
4 set -u # Treat unset variables as an error and exit immediately
11 echo -e "${ACTION}Checking environnement${NOCOLOR}"
12 if [[ ! $1 =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]
14 echo -e "${ERROR}Invalid version number. Aborting. ${NOCOLOR}"
18 declare -r VERSION=$1
19 declare -r GIT_TAG="v$1"
21 BRANCH=$(git rev-parse --abbrev-ref HEAD)
24 echo -e "${ERROR}Not on main. Aborting. ${NOCOLOR}"
30 HEADHASH=$(git rev-parse HEAD)
[all …]
/external/cronet/third_party/cpu_features/src/scripts/
Dmake_release.sh3 set -e # Fail on error
4 set -u # Treat unset variables as an error and exit immediately
11 echo -e "${ACTION}Checking environnement${NOCOLOR}"
12 if [[ ! $1 =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]
14 echo -e "${ERROR}Invalid version number. Aborting. ${NOCOLOR}"
18 declare -r VERSION=$1
19 declare -r GIT_TAG="v$1"
21 BRANCH=$(git rev-parse --abbrev-ref HEAD)
24 echo -e "${ERROR}Not on main. Aborting. ${NOCOLOR}"
30 HEADHASH=$(git rev-parse HEAD)
[all …]
/external/toolchain-utils/
Dandroid_merge_from_upstream.sh1 #!/bin/bash -eu
3 # Use of this source code is governed by a BSD-style license that can be
7 # on their copy of toolchain-utils, this script will do all of the necessary
8 # merging/branch creation/etc. to make keeping things up-to-date trivial.
11 # https://android-review.googlesource.com/c/platform/external/toolchain-utils/+/1132504/1
16 remote_branch="${remote}/upstream-main" # nocheck
18 my_dir="$(dirname "$(readlink -m "$0")")"
23 current_rev="$(git rev-parse HEAD)"
24 main_rev="$(git rev-parse "${local_upstream}")"
32 if ! git rev-parse "${local_branch_name}" >& /dev/null; then
[all …]
/external/angle/third_party/spirv-tools/src/utils/
Dupdate_build_version.py9 # http://www.apache.org/licenses/LICENSE-2.0
20 # Args: <changes-file> <output-file>
24 # - The software version deduced from the given CHANGES file.
25 # - A longer string with the project name, the software version number, and
28 # rev-parse HEAD" if that succeeds, or otherwise a message containing the
43 # "v2023.1", "SPIRV-Tools v2023.1 0fc5526f2b01a0cc89192c10cf8bef77f1007a62, 2023-01-18T14:51:49"
44 OUTPUT_FORMAT = '"{version_tag}", "SPIRV-Tools {version_tag} {description}"\n'
91 # Match the first well-formed version-and-date line
92 # Allow trailing whitespace in the checked-out source code has
93 # unexpected carriage returns on a linefeed-only system such as
[all …]
/external/swiftshader/third_party/SPIRV-Tools/utils/
Dupdate_build_version.py9 # http://www.apache.org/licenses/LICENSE-2.0
20 # Args: <changes-file> <output-file>
24 # - The software version deduced from the given CHANGES file.
25 # - A longer string with the project name, the software version number, and
28 # rev-parse HEAD" if that succeeds, or otherwise a message containing the
43 # "v2023.1", "SPIRV-Tools v2023.1 0fc5526f2b01a0cc89192c10cf8bef77f1007a62, 2023-01-18T14:51:49"
44 OUTPUT_FORMAT = '"{version_tag}", "SPIRV-Tools {version_tag} {description}"\n'
91 # Match the first well-formed version-and-date line
92 # Allow trailing whitespace in the checked-out source code has
93 # unexpected carriage returns on a linefeed-only system such as
[all …]
/external/deqp-deps/SPIRV-Tools/utils/
Dupdate_build_version.py9 # http://www.apache.org/licenses/LICENSE-2.0
20 # Args: <changes-file> <output-file>
24 # - The software version deduced from the given CHANGES file.
25 # - A longer string with the project name, the software version number, and
28 # rev-parse HEAD" if that succeeds, or otherwise a message containing the
43 # "v2023.1", "SPIRV-Tools v2023.1 0fc5526f2b01a0cc89192c10cf8bef77f1007a62, 2023-01-18T14:51:49"
44 OUTPUT_FORMAT = '"{version_tag}", "SPIRV-Tools {version_tag} {description}"\n'
91 # Match the first well-formed version-and-date line
92 # Allow trailing whitespace in the checked-out source code has
93 # unexpected carriage returns on a linefeed-only system such as
[all …]
/external/skia/infra/bots/
Dcheck_deps.py5 # Use of this source code is governed by a BSD-style license that can be
30 utils.WHICH, utils.GCLIENT]).decode('utf-8')
36 [python, gclient_py, 'revinfo'], cwd=SKIA_DIR).decode('utf-8')
44 'Failed to parse `gclient revinfo` output; invalid format: %s' % e)
51 'Failed to parse `gclient revinfo` output; invalid format: %s' % e)
54 rev = split[1]
55 if 'chrome-infra-packages' in repo:
60 'See http://go/new-skia-git-mirror' % repo)
61 if not re.match(r'^[a-z0-9]{40}$', rev):
62 errs.append('%s: "%s" does not look like a commit hash.' % (repo, rev))
/external/pigweed/pw_env_setup/py/pw_env_setup/cipd_setup/
Dwrapper.py8 # https://www.apache.org/licenses/LICENSE-2.0
36 import http.client as httplib # type: ignore[no-redef]
41 import urllib.parse as urlparse # type: ignore[no-redef]
44 # $ cipd ls infra/tools/cipd | perl -pe "s[.*/][];s/^/ '/;s/\s*$/',\n/;"
46 'aix-ppc64',
47 'linux-386',
48 'linux-amd64',
49 'linux-arm64',
50 'linux-armv6l',
51 'linux-mips64',
[all …]
/external/python/setuptools/setuptools/
Dpackage_index.py15 import urllib.parse
33 EGG_FRAGMENT = re.compile(r'^egg=([-A-Za-z0-9_.+!]+)$')
37 r'href="[^?]+\?:action=show_md5&amp;digest=([0-9a-f]{32})">md5</a>\)'
39 URL_SCHEME = re.compile('([-+.a-z0-9]{2,}):', re.I).match
49 _tmpl = "setuptools/{setuptools.__version__} Python-urllib/{py_major}"
56 return Requirement.parse(spec)
71 base = name[:-10]
73 elif lower.startswith('.win32-py', -16):
74 py_ver = name[-7:-4]
75 base = name[:-16]
[all …]
/external/angle/build/android/pylib/utils/
Drepo_utils.py2 # Use of this source code is governed by a BSD-style license that can be
14 command_line = ['git', 'log', '-1', '--pretty=format:%H']
20 command_line = ['git', 'rev-parse', 'origin/master']
26 command_line = ['git', 'rev-parse', 'origin/main']

12345678910>>...25