Home
last modified time | relevance | path

Searched refs:commit (Results 1 – 25 of 48) sorted by relevance

12

/tools/repohooks/rh/
Dhooks.py325 def _check_cmd(hook_name, project, commit, cmd, fixup_cmd=None, **kwargs): argument
327 return [rh.results.HookCommandResult(hook_name, project, commit,
340 def check_custom(project, commit, _desc, diff, options=None, **kwargs): argument
342 return _check_cmd(options.name, project, commit, options.args((), diff),
346 def check_bpfmt(project, commit, _desc, diff, options=None): argument
362 data = rh.git.get_file_content(commit, d.file)
366 'bpfmt', project, commit,
373 def check_checkpatch(project, commit, _desc, diff, options=None): argument
378 return _check_cmd('checkpatch.pl', project, commit, cmd,
379 input=rh.git.get_patch(commit))
[all …]
Dresults.py30 def __init__(self, hook, project, commit, error, files=(), argument
47 self.commit = commit
64 def __init__(self, hook, project, commit, result, files=(), argument
66 HookResult.__init__(self, hook, project, commit,
Dgit.py86 def get_patch(commit): argument
88 cmd = ['git', 'format-patch', '--stdout', '-1', commit]
92 def get_file_content(commit, path): argument
161 def get_affected_files(commit): argument
178 def get_commit_desc(commit): argument
180 cmd = ['git', 'diff-tree', '-s', '--always', '--format=%B', commit]
Dconfig_test.py39 def check_commit_id(commit): argument
41 assert len(commit) == 40, f'commit "{commit}" must be 40 chars'
42 assert re.match(r'^[a-f0-9]+$', commit), \
/tools/external_updater/tests/
Dtest_gitrepo.py58 repo.commit("Add README.md.", update_files={"README.md": "Hello, world!"})
68 repo.commit("Add README.md.", update_files={"README.md": "Hello, world!"})
69 repo.commit("Update README.md.", update_files={"README.md": "Goodbye, world!"})
83 repo.commit("Add README.md.", update_files={"README.md": "Hello, world!"})
84 repo.commit("Remove README.md.", delete_files={"README.md"})
131 repo.commit("Initial commit.", allow_empty=True)
139 repo.commit("Initial commit.", allow_empty=True)
141 repo.commit("Second commit.", allow_empty=True)
150 repo.commit("Initial commit.", allow_empty=True)
157 repo.commit("Initial commit.", allow_empty=True)
[all …]
Dtest_git_utils.py62 self.repo.commit("Initial commit.", allow_empty=True)
69 self.repo.commit("Initial commit.", allow_empty=True)
71 self.repo.commit("Second commit.", allow_empty=True)
78 self.repo.commit("Initial commit.", allow_empty=True)
80 self.repo.commit("Second commit.", allow_empty=True)
97 self.repo.commit("Initial commit.", allow_empty=True)
100 self.repo.commit("Second commit.", allow_empty=True)
109 self.repo.commit("Initial commit.", allow_empty=True)
115 self.repo.commit("Initial commit.", allow_empty=True)
117 self.repo.commit("Second commit.", allow_empty=True)
[all …]
/tools/treble/build/treble_build/local/
Dgit_test.go35 commit *TestCmd member
49 return bytes.NewBufferString(g.commit.text), g.tree.err
77 commit commitTest
99 commit: commitTest{
125 commit: commitTest{
144 commit: test.commit.cmd,
157 if test.commit.cmd != nil {
158 c, err := git.CommitInfo(nil, proj, test.commit.sha)
162 if !reflect.DeepEqual(*c, *test.commit.res) {
163 t.Errorf("Commit = %v; want %v", c, *test.commit.res)
/tools/treble/build/treble_build/cmd/
Dmain.go47 commit := app.ProjectCommit{}
52 commit.Project = items[0]
54 commit.Revision = items[1]
56 *r = append(*r, commit)
96 type commit struct { struct
103 Commits []commit `json:"commits,omitempty"`
211 commit := commit{Project: c}
216 commit.Commit = info
217 rsp.Commits = append(rsp.Commits, commit)
/tools/repohooks/
Dpre-upload.py98 def commit_start(self, hooks, commit, commit_summary): argument
399 def _run_hook(hook, project, commit, desc, diff): argument
402 results = hook.hook(project, commit, desc, diff)
408 for commit in commit_list:
410 os.environ['PREUPLOAD_COMMIT'] = commit
411 diff = rh.git.get_affected_files(commit)
412 desc = rh.git.get_commit_desc(commit)
416 output.commit_start(hooks, commit, commit_summary)
419 executor.submit(_run_hook, hook, project, commit, desc, diff)
DREADME.md91 branch. This is typically latest commit in the remote-tracking branch.
95 * `PREUPLOAD_COMMIT`: The commit that is currently being checked.
137 With a commit that changes `path1/file1` and `path2/file2`, then this will run
149 that are merged. Hooks will still run on the merge commit itself.
171 some cat = formatter --cat-commit ${PREUPLOAD_COMMIT}
172 some dog = tool --no-cat-in-commit-message ${PREUPLOAD_COMMIT_MESSAGE}
185 * `clang_format`: Run git-clang-format against the commit. The default style is
196 `Relnote:` field in the commit message.
215 files match in a specific commit, then the hook will be skipped for that commit.
DPREUPLOAD.cfg11 config_test = ./rh/config_test.py --check-env --commit-id ${PREUPLOAD_COMMIT} --commit-msg ${PREUPL…
/tools/loganalysis/src/com/android/loganalysis/parser/
DActivityServiceParser.java54 commit(); in parse()
70 protected void commit() { in commit() method in ActivityServiceParser
72 super.commit(); in commit()
DDumpsysBatteryStatsParser.java64 commit(); in parse()
82 protected void commit() { in commit() method in DumpsysBatteryStatsParser
84 super.commit(); in commit()
DDumpsysParser.java59 commit(); in parse()
79 protected void commit() { in commit() method in DumpsysParser
81 super.commit(); in commit()
DBatteryStatsDetailedInfoParser.java121 commit(); in parse()
153 protected void commit() { in commit() method in BatteryStatsDetailedInfoParser
155 super.commit(); in commit()
DBugreportParser.java142 commit(); in parse()
161 commit(); in parse()
192 protected void commit() { in commit() method in BugreportParser
194 super.commit(); in commit()
DKernelLogParser.java101 commit(); in parse()
117 commit(); in parse()
206 private void commit() { in commit() method in KernelLogParser
/tools/external_updater/tests/endtoend/treebuilder/
Dfakeproject.py47 repo.commit("Initial commit.", allow_empty=True)
62 self.android_mirror.commit("Initial commit.", allow_empty=True)
70 self.android_mirror.commit(
/tools/treble/build/treble_build/report/
Drun.go106 func ResolveCommit(ctx context.Context, rtx *Context, commit *app.ProjectCommit) (*app.GitCommit, […
107 if proj, exists := rtx.Info.ProjMap[commit.Project]; exists {
108 info, err := rtx.Project.CommitInfo(ctx, proj.GitProj, commit.Revision)
119 return nil, nil, errors.New(fmt.Sprintf("Unknown project %s", commit.Project))
/tools/external_updater/tests/endtoend/
Dtest_check.py45 a.upstream.commit(
69 a.upstream.commit(
79 a.upstream.commit(
/tools/external_updater/
Dgit_utils.py114 def get_commit_time(proj_path: Path, commit: str) -> datetime.datetime:
116 cmd = ['git', 'show', '-s', '--format=%ct', commit]
148 def is_commit(commit: str) -> bool:
150 return bool(COMMIT_RE.match(commit))
196 def commit(proj_path: Path, message: str, no_verify: bool) -> None: function
Dnotifier.py116 def is_commit(commit: str) -> bool:
118 return bool(COMMIT_RE.match(commit))
DREADME.md29 Update a library, commit, and upload the change to Gerrit:
41 Update a library on top of the local changes in the current branch, commit, and upload the change t…
53 Update a library and add bug number to the commit message:
/tools/aadevtools/dev/
Dclone_proj.sh64 …parse --git-dir`/hooks/commit-msg ; mkdir -p $(dirname $f) ; curl -Lo $f https://gerrit-review.goo…
/tools/repohooks/tools/
Dandroid_test_mapping_format.py184 if opts.commit:
185 json_data = rh.git.get_file_content(opts.commit, filename)

12