summaryrefslogtreecommitdiffstats
path: root/subcmds/help.py
diff options
context:
space:
mode:
authorJason Chang <jasonnc@google.com>2023-05-26 12:44:50 -0700
committerLUCI <gerrit-scoped@luci-project-accounts.iam.gserviceaccount.com>2023-08-15 22:14:52 +0000
commit8914b1f86db3903e507b26979f6f137907ea3398 (patch)
tree6ee19bd7e0f81cccc681729b309a14486787969f /subcmds/help.py
parent082487dcd135463313d772cff19b685ea8623793 (diff)
downloadgit-repo-8914b1f86db3903e507b26979f6f137907ea3398.tar.gz
gitc: drop support
Bug: b/282775958 Change-Id: Ib6383d6fd82a017d0a6670d6558a905d41be321f Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/375314 Reviewed-by: Mike Frysinger <vapier@google.com> Tested-by: Jason Chang <jasonnc@google.com> Commit-Queue: Jason Chang <jasonnc@google.com>
Diffstat (limited to 'subcmds/help.py')
-rw-r--r--subcmds/help.py22
1 files changed, 1 insertions, 21 deletions
diff --git a/subcmds/help.py b/subcmds/help.py
index 593bf676..0d7b664e 100644
--- a/subcmds/help.py
+++ b/subcmds/help.py
@@ -21,10 +21,7 @@ from color import Coloring
21from command import ( 21from command import (
22 PagedCommand, 22 PagedCommand,
23 MirrorSafeCommand, 23 MirrorSafeCommand,
24 GitcAvailableCommand,
25 GitcClientCommand,
26) 24)
27import gitc_utils
28from wrapper import Wrapper 25from wrapper import Wrapper
29from error import RepoExitError 26from error import RepoExitError
30 27
@@ -79,26 +76,9 @@ Displays detailed usage information about a command.
79 def PrintCommonCommandsBody(self): 76 def PrintCommonCommandsBody(self):
80 print("The most commonly used repo commands are:") 77 print("The most commonly used repo commands are:")
81 78
82 def gitc_supported(cmd):
83 if not isinstance(cmd, GitcAvailableCommand) and not isinstance(
84 cmd, GitcClientCommand
85 ):
86 return True
87 if self.client.isGitcClient:
88 return True
89 if isinstance(cmd, GitcClientCommand):
90 return False
91 if gitc_utils.get_gitc_manifest_dir():
92 return True
93 return False
94
95 commandNames = list( 79 commandNames = list(
96 sorted( 80 sorted(
97 [ 81 name for name, command in all_commands.items() if command.COMMON
98 name
99 for name, command in all_commands.items()
100 if command.COMMON and gitc_supported(command)
101 ]
102 ) 82 )
103 ) 83 )
104 self._PrintCommands(commandNames) 84 self._PrintCommands(commandNames)