diff options
author | Gavin Mak <gavinmak@google.com> | 2023-03-11 06:46:20 +0000 |
---|---|---|
committer | LUCI <gerrit-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2023-03-22 17:46:28 +0000 |
commit | ea2e330e43c182dc16b0111ebc69ee5a71ee4ce1 (patch) | |
tree | dc33ba0e56825b3e007d0589891756724725a465 /subcmds/smartsync.py | |
parent | 1604cf255f8c1786a23388db6d5277ac7949a24a (diff) | |
download | git-repo-ea2e330e43c182dc16b0111ebc69ee5a71ee4ce1.tar.gz |
Format codebase with black and check formatting in CQ
Apply rules set by https://gerrit-review.googlesource.com/c/git-repo/+/362954/ across the codebase and fix any lingering errors caught
by flake8. Also check black formatting in run_tests (and CQ).
Bug: b/267675342
Change-Id: I972d77649dac351150dcfeb1cd1ad0ea2efc1956
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/363474
Reviewed-by: Mike Frysinger <vapier@google.com>
Tested-by: Gavin Mak <gavinmak@google.com>
Commit-Queue: Gavin Mak <gavinmak@google.com>
Diffstat (limited to 'subcmds/smartsync.py')
-rw-r--r-- | subcmds/smartsync.py | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/subcmds/smartsync.py b/subcmds/smartsync.py index d91d59c6..49d09972 100644 --- a/subcmds/smartsync.py +++ b/subcmds/smartsync.py | |||
@@ -16,18 +16,18 @@ from subcmds.sync import Sync | |||
16 | 16 | ||
17 | 17 | ||
18 | class Smartsync(Sync): | 18 | class Smartsync(Sync): |
19 | COMMON = True | 19 | COMMON = True |
20 | helpSummary = "Update working tree to the latest known good revision" | 20 | helpSummary = "Update working tree to the latest known good revision" |
21 | helpUsage = """ | 21 | helpUsage = """ |
22 | %prog [<project>...] | 22 | %prog [<project>...] |
23 | """ | 23 | """ |
24 | helpDescription = """ | 24 | helpDescription = """ |
25 | The '%prog' command is a shortcut for sync -s. | 25 | The '%prog' command is a shortcut for sync -s. |
26 | """ | 26 | """ |
27 | 27 | ||
28 | def _Options(self, p): | 28 | def _Options(self, p): |
29 | Sync._Options(self, p, show_smart=False) | 29 | Sync._Options(self, p, show_smart=False) |
30 | 30 | ||
31 | def Execute(self, opt, args): | 31 | def Execute(self, opt, args): |
32 | opt.smart_sync = True | 32 | opt.smart_sync = True |
33 | Sync.Execute(self, opt, args) | 33 | Sync.Execute(self, opt, args) |