From 6447733eb28ea188d551ae518a7e51ebf63a4350 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Mon, 21 Aug 2023 21:20:32 -0400 Subject: isort: format codebase Change-Id: I6f11d123b68fd077f558d3c21349c55c5f251019 Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/383715 Reviewed-by: Gavin Mak Tested-by: Mike Frysinger Commit-Queue: Mike Frysinger --- subcmds/sync.py | 40 +++++++++++++++++++++------------------- 1 file changed, 21 insertions(+), 19 deletions(-) (limited to 'subcmds/sync.py') diff --git a/subcmds/sync.py b/subcmds/sync.py index 74bc4557..13c964b2 100644 --- a/subcmds/sync.py +++ b/subcmds/sync.py @@ -25,13 +25,14 @@ import socket import sys import tempfile import time -from typing import NamedTuple, List, Set +from typing import List, NamedTuple, Set import urllib.error import urllib.parse import urllib.request import xml.parsers.expat import xmlrpc.client + try: import threading as _threading except ImportError: @@ -49,34 +50,35 @@ except ImportError: return (256, 256) +from command import Command +from command import DEFAULT_LOCAL_JOBS +from command import MirrorSafeCommand +from command import WORKER_BATCH_SIZE +from error import GitError +from error import RepoChangedException +from error import RepoExitError +from error import RepoUnhandledExceptionError +from error import SyncError +from error import UpdateManifestError import event_log from git_command import git_require from git_config import GetUrlCookieFile -from git_refs import R_HEADS, HEAD +from git_refs import HEAD +from git_refs import R_HEADS import git_superproject +import platform_utils +from progress import elapsed_str +from progress import jobs_str +from progress import Progress +from project import DeleteWorktreeError from project import Project from project import RemoteSpec -from command import ( - Command, - DEFAULT_LOCAL_JOBS, - MirrorSafeCommand, - WORKER_BATCH_SIZE, -) -from error import ( - RepoChangedException, - GitError, - RepoExitError, - SyncError, - UpdateManifestError, - RepoUnhandledExceptionError, -) -import platform_utils -from project import SyncBuffer, DeleteWorktreeError -from progress import Progress, elapsed_str, jobs_str +from project import SyncBuffer from repo_trace import Trace import ssh from wrapper import Wrapper + _ONE_DAY_S = 24 * 60 * 60 # Env var to implicitly turn auto-gc back on. This was added to allow a user to -- cgit v1.2.3-54-g00ecf