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>
This commit is contained in:
parent
082487dcd1
commit
8914b1f86d
13 changed files with 23 additions and 523 deletions
|
@ -54,7 +54,6 @@ from git_command import git_require
|
|||
from git_config import GetUrlCookieFile
|
||||
from git_refs import R_HEADS, HEAD
|
||||
import git_superproject
|
||||
import gitc_utils
|
||||
from project import Project
|
||||
from project import RemoteSpec
|
||||
from command import (
|
||||
|
@ -77,7 +76,6 @@ from progress import Progress, elapsed_str, jobs_str
|
|||
from repo_trace import Trace
|
||||
import ssh
|
||||
from wrapper import Wrapper
|
||||
from manifest_xml import GitcManifest
|
||||
|
||||
_ONE_DAY_S = 24 * 60 * 60
|
||||
|
||||
|
@ -1678,50 +1676,6 @@ later is required to fix a server side protocol bug.
|
|||
opt, args, superproject_logging_data, manifest
|
||||
)
|
||||
|
||||
if self.gitc_manifest:
|
||||
gitc_manifest_projects = self.GetProjects(args, missing_ok=True)
|
||||
gitc_projects = []
|
||||
opened_projects = []
|
||||
for project in gitc_manifest_projects:
|
||||
if (
|
||||
project.relpath in self.gitc_manifest.paths
|
||||
and self.gitc_manifest.paths[project.relpath].old_revision
|
||||
):
|
||||
opened_projects.append(project.relpath)
|
||||
else:
|
||||
gitc_projects.append(project.relpath)
|
||||
|
||||
if not args:
|
||||
gitc_projects = None
|
||||
|
||||
if gitc_projects != [] and not opt.local_only:
|
||||
print(
|
||||
"Updating GITC client: %s"
|
||||
% self.gitc_manifest.gitc_client_name
|
||||
)
|
||||
manifest = GitcManifest(
|
||||
self.repodir, self.gitc_manifest.gitc_client_name
|
||||
)
|
||||
if manifest_name:
|
||||
manifest.Override(manifest_name)
|
||||
else:
|
||||
manifest.Override(manifest.manifestFile)
|
||||
gitc_utils.generate_gitc_manifest(
|
||||
self.gitc_manifest, manifest, gitc_projects
|
||||
)
|
||||
print("GITC client successfully synced.")
|
||||
|
||||
# The opened projects need to be synced as normal, therefore we
|
||||
# generate a new args list to represent the opened projects.
|
||||
# TODO: make this more reliable -- if there's a project name/path
|
||||
# overlap, this may choose the wrong project.
|
||||
args = [
|
||||
os.path.relpath(manifest.paths[path].worktree, os.getcwd())
|
||||
for path in opened_projects
|
||||
]
|
||||
if not args:
|
||||
return
|
||||
|
||||
all_projects = self.GetProjects(
|
||||
args,
|
||||
missing_ok=True,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue