Home
last modified time | relevance | path

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

12345678910>>...22

/external/toolchain-utils/llvm_tools/
Dgit_llvm_rev.py2 # -*- coding: utf-8 -*-
4 # Use of this source code is governed by a BSD-style license that can be
31 # llvm-svn: 375505
39 # - |dir| is the directory of the LLVM checkout
40 # - |remote| is the name of the LLVM remote. Generally it's "origin".
44 class Rev(t.NamedTuple("Rev", (("branch", str), ("number", int)))): class
48 def parse(rev: str) -> "Rev": member in Rev
49 """Parses a Rev from the given string.
51 Raises a ValueError on a failed parse.
58 if rev.startswith("r"):
[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
6 WORKDIR=${TMPDIR-/tmp} # keep all random files here
11 rm -f ${WORKDIR}/git-list.txt
17 git fetch -p || exit 1
18 git clean -f -d || echo 'warning: err on cleanup'
21 echo "cldr-trunk was at :" $(git rev-parse --short HEAD)
22 echo -n "you want to move to:"
23 git rev-parse --short "${GITHUB_SHA}" || exit 1 # fail on err
24 if [[ $(git rev-parse --short HEAD) = $(git rev-parse --short "${GITHUB_SHA}") ]];
[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/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/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/cronet/third_party/boringssl/
Droll_boringssl.py3 # Use of this source code is governed by a BSD-style license that can be
38 cmd = ['git', 'diff', '--ignore-submodules']
40 subprocess.check_output(cmd + ['--cached'], cwd=repo).strip())
43 def RevParse(repo, rev): argument
45 # Use text to get the revision as a string. We assume rev-parse is always
46 # valid UTF-8.
47 return subprocess.check_output(['git', 'rev-parse', rev], cwd=repo,
53 from_hash_bytes = from_hash.encode('utf-8')
54 to_hash_bytes = to_hash.encode('utf-8')
66 # The commit message may not be valid UTF-8, so convert decode errors to
[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/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/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/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/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']
/external/cronet/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']
/external/python/cpython2/Tools/faqwiz/
Dfaqwiz.py3 This is a CGI program that maintains a user-editable FAQ. It uses RCS
10 The actual script to place in cgi-bin is faqw.py.
71 r'\b(http|ftp|https)://\S+(\b|/)|\b[-.\w]+@[-.\w]+')
84 while url[-1] in '();:,.?\'"<>':
85 url = url[:-1]
101 return re.sub(r'\*([a-zA-Z]+)\*', r'<I>\1</I>', line)
105 def revparse(rev): argument
109 m = revparse_prog.match(rev)
146 author = '/'.join(words[:-2])
147 email = words[-2]
[all …]
/external/rust/crates/lru-cache/
Ddeploy-docs.sh3 set -o errexit -o nounset
5 rev=$(git rev-parse --short HEAD)
13 git fetch upstream gh-pages
14 git reset upstream/gh-pages
18 git add -A .
19 git commit -m "rebuild pages at ${rev}"
20 git push -q upstream HEAD:gh-pages
/external/mesa3d/bin/
Dgit_sha1_gen.py13 """Try to get the git SHA1 with git rev-parse."""
18 '--git-dir=' + git_dir,
19 'rev-parse',
42 parser.add_argument('--output', help='File to write the #define in',
48 write_if_different('#define MESA_GIT_SHA1 " (git-' + git_sha1 + ')"')
/external/eigen/bench/perf_monitoring/
Drun.sh10 # PREFIX="haswell-fma-"
11 # CXX_FLAGS="-mfma"
15 # -up : enforce the recomputation of existing data, and keep best results as a merging strategy
16 # -s : recompute selected changesets only and keep bests
17 # -np : no plotting of results, just generate the data
22 if [[ "$*" =~ '-up' ]]; then
28 if [[ "$*" =~ '-s' ]]; then
34 if [[ "$*" =~ '-np' ]]; then
43 if [ -z "$PREFIX" ]; then
46 WORKING_DIR_PREFIX="$WORKING_DIR/$PREFIX-"
[all …]
/external/oss-fuzz/projects/monero/
DDockerfile7 # http://www.apache.org/licenses/LICENSE-2.0
20 FROM gcr.io/oss-fuzz-base/base-builder
22 RUN set -ex && \
23 apt-get update && \
24 apt-get --no-install-recommends --yes install \
25 ca-certificates \
29 pkg-config \
34 libtool-bin \
43 libsodium-dev \
44 libreadline-dev \
[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
82 # Match the first well-formed version-and-date line.
83 # Allow trailing whitespace in the checked-out source code has
84 # unexpected carriage returns on a linefeed-only system such as
86 pattern = re.compile(r'^(v\d+\.\d+(-dev)?) \d\d\d\d-\d\d-\d\d\s*$')
99 Runs 'git describe', or alternately 'git rev-parse HEAD', in directory. If
[all …]
/external/erofs-utils/scripts/
Dget-version-number2 # SPDX-License-Identifier: GPL-2.0
7 if test -z "$(git rev-parse --show-cdup 2>/dev/null)" &&
8 head="$(git rev-parse --verify HEAD 2>/dev/null)"; then
10 if [ -z "$(git describe --exact-match 2>/dev/null)" ]; then
11 # Add -g and 8 hex chars.
12 printf '%s%s' -g "$(echo $head | cut -c1-8)"
16 # which might be read-only.
17 # You cannot use 'git describe --dirty' because it tries to
19 # First, with git-status, but --no-optional-locks is only
20 # supported in git >= 2.14, so fall back to git-diff-index if
[all …]
/external/rust/cxx/.github/workflows/
Dsite.yml6 - master
8 - book/**
9 - .github/workflows/site.yml
14 runs-on: ubuntu-latest
17 timeout-minutes: 30
19 - uses: actions/checkout@v3
21 - name: Get mdBook
24 export MDBOOK_TARBALL="mdbook-${MDBOOK_VERSION}-x86_64-unknown-linux-gnu.tar.gz"
26 curl -Lf "${MDBOOK_URL}" | tar -xzC book
27 book/mdbook --version
[all …]
/external/pigweed/pw_presubmit/py/pw_presubmit/
Dgit_repo.py7 # https://www.apache.org/licenses/LICENSE-2.0
33 ) -> str:
36 ['git', '-C', str(repo), *args],
46 def _ls_files(args: Collection[PathOrStr], repo: Path) -> Iterable[Path]:
47 """Returns results of git ls-files as absolute paths."""
49 for file in git_stdout('ls-files', '--', *args, repo=repo).splitlines():
58 ) -> Iterable[Path]:
63 '--name-only',
64 '--diff-filter=d',
66 '--',
[all …]
/external/oss-fuzz/infra/base-images/base-builder/
Dsrcmap1 #!/bin/bash -eux
8 # http://www.apache.org/licenses/LICENSE-2.0
23 # $1 - json file, $2 - jq program
35 for DOT_GIT_DIR in $(find $PATHS_TO_SCAN -name ".git" -type d); do
38 GIT_URL=$(git config --get remote.origin.url)
39 GIT_REV=$(git rev-parse HEAD)
40 jq_inplace $SRCMAP ".\"$GIT_DIR\" = { type: \"git\", url: \"$GIT_URL\", rev: \"$GIT_REV\" }"
44 for DOT_SVN_DIR in $(find $PATHS_TO_SCAN -name ".svn" -type d); do
48 SVN_REV=$(svn info -r HEAD | grep "^Revision:" | sed 's/Revision: //g')
49 jq_inplace $SRCMAP ".\"$SVN_DIR\" = { type: \"svn\", url: \"$SVN_URL\", rev: \"$SVN_REV\" }"
[all …]

12345678910>>...22