mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-09 03:21:51 +00:00
patman: Convert camel case in gitutil.py
Convert this file to snake case and update all files which use it. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
967af26b6a
commit
0157b187f4
12 changed files with 99 additions and 99 deletions
|
@ -208,7 +208,7 @@ class TestFunctional(unittest.TestCase):
|
|||
cc_file = series.MakeCcFile(process_tags, cover_fname,
|
||||
not ignore_bad_tags, add_maintainers,
|
||||
None)
|
||||
cmd = gitutil.EmailPatches(
|
||||
cmd = gitutil.email_patches(
|
||||
series, cover_fname, args, dry_run, not ignore_bad_tags,
|
||||
cc_file, in_reply_to=in_reply_to, thread=None)
|
||||
series.ShowActions(args, cmd, process_tags)
|
||||
|
@ -466,7 +466,7 @@ complicated as possible''')
|
|||
os.chdir(self.gitdir)
|
||||
|
||||
# Check that it can detect the current branch
|
||||
self.assertEqual(2, gitutil.CountCommitsToBranch(None))
|
||||
self.assertEqual(2, gitutil.count_commits_to_branch(None))
|
||||
col = terminal.Color()
|
||||
with capture_sys_output() as _:
|
||||
_, cover_fname, patch_files = control.prepare_patches(
|
||||
|
@ -476,7 +476,7 @@ complicated as possible''')
|
|||
self.assertEqual(2, len(patch_files))
|
||||
|
||||
# Check that it can detect a different branch
|
||||
self.assertEqual(3, gitutil.CountCommitsToBranch('second'))
|
||||
self.assertEqual(3, gitutil.count_commits_to_branch('second'))
|
||||
with capture_sys_output() as _:
|
||||
_, cover_fname, patch_files = control.prepare_patches(
|
||||
col, branch='second', count=-1, start=0, end=0,
|
||||
|
@ -622,7 +622,7 @@ diff --git a/lib/efi_loader/efi_memory.c b/lib/efi_loader/efi_memory.c
|
|||
orig_dir = os.getcwd()
|
||||
os.chdir(self.gitdir)
|
||||
with self.assertRaises(ValueError) as exc:
|
||||
gitutil.CountCommitsToBranch(None)
|
||||
gitutil.count_commits_to_branch(None)
|
||||
self.assertIn(
|
||||
"Failed to determine upstream: fatal: no upstream configured for branch 'base'",
|
||||
str(exc.exception))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue