From 58f10a4661b03f3e151ffeadda17ba8dd7b04ba0 Mon Sep 17 00:00:00 2001 From: David de la Iglesia Castro Date: Wed, 26 Apr 2023 10:08:02 +0200 Subject: [PATCH] gc: Add ui hint for `not_in_remote`. --- dvc/commands/gc.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dvc/commands/gc.py b/dvc/commands/gc.py index 5a3d64798..647c4a717 100644 --- a/dvc/commands/gc.py +++ b/dvc/commands/gc.py @@ -10,7 +10,7 @@ logger = logging.getLogger(__name__) class CmdGC(CmdBase): - def run(self): # noqa: C901 + def run(self): # noqa: C901, PLR0912 from dvc.repo.gc import _validate_args _validate_args( @@ -48,6 +48,10 @@ class CmdGC(CmdBase): if self.args.all_experiments: msg += " and all experiments" + + if self.args.not_in_remote: + msg += " that are present in the DVC remote" + if self.args.repos: msg += " of the current and the following repos:"