Home
last modified time | relevance | path

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

12345678910>>...30

/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/rust/android-crates-io/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/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/pigweed/pw_cli/py/
Dgit_repo_test.py8 # https://www.apache.org/licenses/LICENSE-2.0
35 def _run_tool(self, tool: str, args, **kwargs) -> CompletedProcess:
49 def git_ok(cmd: str, stdout: str) -> CompletedProcess:
58 def git_err(cmd: str, stderr: str, returncode: int = 1) -> CompletedProcess:
82 '--quiet',
83 '--recursive',
152 self.assertIn(self.SUBMODULES[-1], paths)
183 bad_cmd = "diff --name-only --diff-filter=d 'something' --"
184 good_cmd = 'ls-files --'
197 repo._ls_files = mock.MagicMock( # pylint: disable=protected-access
[all …]
/external/flashrom/util/git-hooks/
Dinstall.sh1 #!/bin/sh -e
3 root=$(git rev-parse --show-cdup 2>/dev/null) || \
6 [ -z "${root}" ] || \
9 src=util/git-hooks/ # relative to root
10 hooks=$(cd "${src}" && git ls-files -c | grep -Ev 'install.sh|wrapper.sh')
12 if [ "$(git rev-parse --git-path 2>/dev/null)" = "--git-path" ]; then
17 dst=$(git rev-parse --git-path hooks/)
18 rel=$(git rev-parse --prefix "${dst}" --show-cdup)
23 if [ ! "${dst}$h" -ef "${src}wrapper.sh" ]; then
25 if [ -e "${dst}$h" ]; then
[all …]
/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/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/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/mesa3d/bin/ci/
Dupdate_traces_checksum.py7 # SPDX-License-Identifier: MIT
34 ) -> None:
37 target_jobs_regex = re.compile(".*-traces([:].*)?$")
64 with open(traces_file[0], 'r', encoding='utf-8') as target_file:
72 # parse artifact
74 results_json = bz2.decompress(results_json_bz2).decode("utf-8", errors="replace")
109 with open(traces_file[0], 'w', encoding='utf-8') as target_file:
114 def parse_args() -> None:
115 """Parse args"""
118 epilog="Example: update_traces_checksum.py --rev $(git rev-parse HEAD) "
[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/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/coreboot/util/gitconfig/
Dgitconfig.sh3 ## SPDX-License-Identifier: GPL-2.0-only
7 MAKE="${1:-make}"
9 if ! { cdup="$(git rev-parse --show-cdup 2>/dev/null)" && [ -z "${cdup}" ]; }
14 coreboot_hooks=$(git rev-parse --git-path hooks)
15 mkdir -p "${coreboot_hooks}"
16 for hook in commit-msg pre-commit ; do
17 if [ util/gitconfig/${hook} -nt "${coreboot_hooks}/${hook}" ] \
18 || [ ! -x "${coreboot_hooks}/${hook}" ]
20 sed -e "s,%MAKE%,${MAKE},g" util/gitconfig/$hook \
27 hooks=$(git -C "$(git config --file .gitmodules --get \
[all …]
/external/cronet/tot/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/cronet/stable/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/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/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/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
29 # that succeeds, or "git rev-parse HEAD" if that succeeds, or otherwise a
44 # "v2023.1", "SPIRV-Tools v2023.1 0fc5526f2b01a0cc89192c10cf8bef77f1007a62, 2023-01-18T14:51:49"
45 OUTPUT_FORMAT = '"{version_tag}", "SPIRV-Tools {version_tag} {description}"\n'
92 # Match the first well-formed version-and-date line
93 # Allow trailing whitespace in the checked-out source code has
94 # 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/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
29 # that succeeds, or "git rev-parse HEAD" if that succeeds, or otherwise a
44 # "v2023.1", "SPIRV-Tools v2023.1 0fc5526f2b01a0cc89192c10cf8bef77f1007a62, 2023-01-18T14:51:49"
45 OUTPUT_FORMAT = '"{version_tag}", "SPIRV-Tools {version_tag} {description}"\n'
92 # Match the first well-formed version-and-date line
93 # Allow trailing whitespace in the checked-out source code has
94 # 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/cronet/tot/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>>...30