diff options
| author | Aravind Vasudevan <aravindvasudev@google.com> | 2023-10-13 19:22:47 +0000 |
|---|---|---|
| committer | LUCI <gerrit-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2023-10-13 19:34:26 +0000 |
| commit | 8bc5000423aef45900b7fba112458ed586e13251 (patch) | |
| tree | 6a10232f09aa81b820aab58475b32d95a2071d31 /project.py | |
| parent | 6a7f73bb9a55ab4463238af4c5096e6bf3789934 (diff) | |
| download | git-repo-8bc5000423aef45900b7fba112458ed586e13251.tar.gz | |
Update logger.warn to logger.warning
Bug: 305035810
Change-Id: Ic2b35d5c3cbe92480c24da612f29382f5d26d4aa
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/389414
Reviewed-by: Mike Frysinger <vapier@google.com>
Tested-by: Aravind Vasudevan <aravindvasudev@google.com>
Commit-Queue: Aravind Vasudevan <aravindvasudev@google.com>
Diffstat (limited to 'project.py')
| -rw-r--r-- | project.py | 12 |
1 files changed, 6 insertions, 6 deletions
| @@ -1262,7 +1262,7 @@ class Project(object): | |||
| 1262 | try: | 1262 | try: |
| 1263 | platform_utils.remove(tarpath) | 1263 | platform_utils.remove(tarpath) |
| 1264 | except OSError as e: | 1264 | except OSError as e: |
| 1265 | logger.warn("warn: Cannot remove archive %s: %s", tarpath, e) | 1265 | logger.warning("warn: Cannot remove archive %s: %s", tarpath, e) |
| 1266 | self._CopyAndLinkFiles() | 1266 | self._CopyAndLinkFiles() |
| 1267 | return SyncNetworkHalfResult(True) | 1267 | return SyncNetworkHalfResult(True) |
| 1268 | 1268 | ||
| @@ -1759,7 +1759,7 @@ class Project(object): | |||
| 1759 | """ | 1759 | """ |
| 1760 | if self.IsDirty(): | 1760 | if self.IsDirty(): |
| 1761 | if force: | 1761 | if force: |
| 1762 | logger.warn( | 1762 | logger.warning( |
| 1763 | "warning: %s: Removing dirty project: uncommitted changes " | 1763 | "warning: %s: Removing dirty project: uncommitted changes " |
| 1764 | "lost.", | 1764 | "lost.", |
| 1765 | self.RelPath(local=False), | 1765 | self.RelPath(local=False), |
| @@ -3038,7 +3038,7 @@ class Project(object): | |||
| 3038 | # hardlink below. | 3038 | # hardlink below. |
| 3039 | if not filecmp.cmp(stock_hook, dst, shallow=False): | 3039 | if not filecmp.cmp(stock_hook, dst, shallow=False): |
| 3040 | if not quiet: | 3040 | if not quiet: |
| 3041 | logger.warn( | 3041 | logger.warning( |
| 3042 | "warn: %s: Not replacing locally modified %s hook", | 3042 | "warn: %s: Not replacing locally modified %s hook", |
| 3043 | self.RelPath(local=False), | 3043 | self.RelPath(local=False), |
| 3044 | name, | 3044 | name, |
| @@ -4336,7 +4336,7 @@ class ManifestProject(MetaProject): | |||
| 4336 | self.config.SetBoolean("repo.worktree", worktree) | 4336 | self.config.SetBoolean("repo.worktree", worktree) |
| 4337 | if is_new: | 4337 | if is_new: |
| 4338 | self.use_git_worktrees = True | 4338 | self.use_git_worktrees = True |
| 4339 | logger.warn("warning: --worktree is experimental!") | 4339 | logger.warning("warning: --worktree is experimental!") |
| 4340 | 4340 | ||
| 4341 | if archive: | 4341 | if archive: |
| 4342 | if is_new: | 4342 | if is_new: |
| @@ -4400,7 +4400,7 @@ class ManifestProject(MetaProject): | |||
| 4400 | 4400 | ||
| 4401 | self.config.SetBoolean("repo.git-lfs", git_lfs) | 4401 | self.config.SetBoolean("repo.git-lfs", git_lfs) |
| 4402 | if not is_new: | 4402 | if not is_new: |
| 4403 | logger.warn( | 4403 | logger.warning( |
| 4404 | "warning: Changing --git-lfs settings will only affect new " | 4404 | "warning: Changing --git-lfs settings will only affect new " |
| 4405 | "project checkouts.\n" | 4405 | "project checkouts.\n" |
| 4406 | " Existing projects will require manual updates.\n" | 4406 | " Existing projects will require manual updates.\n" |
| @@ -4512,7 +4512,7 @@ class ManifestProject(MetaProject): | |||
| 4512 | submanifest = "" | 4512 | submanifest = "" |
| 4513 | if self.manifest.path_prefix: | 4513 | if self.manifest.path_prefix: |
| 4514 | submanifest = f"for {self.manifest.path_prefix} " | 4514 | submanifest = f"for {self.manifest.path_prefix} " |
| 4515 | logger.warn( | 4515 | logger.warning( |
| 4516 | "warning: git update of superproject %s failed, " | 4516 | "warning: git update of superproject %s failed, " |
| 4517 | "repo sync will not use superproject to fetch source; " | 4517 | "repo sync will not use superproject to fetch source; " |
| 4518 | "while this error is not fatal, and you can continue to " | 4518 | "while this error is not fatal, and you can continue to " |
