From 5e92bef7336473617dd54055bc75ab70204eacba Mon Sep 17 00:00:00 2001 From: Jorge Orpinel Date: Fri, 16 Apr 2021 06:19:44 -0500 Subject: [PATCH] dvc: add -A flag to * --all-commits (#5783) --- dvc/command/data_sync.py | 4 ++++ dvc/command/experiments.py | 1 + dvc/command/gc.py | 1 + dvc/command/metrics.py | 1 + 4 files changed, 7 insertions(+) diff --git a/dvc/command/data_sync.py b/dvc/command/data_sync.py index 310080b0c..6281435c0 100644 --- a/dvc/command/data_sync.py +++ b/dvc/command/data_sync.py @@ -156,6 +156,7 @@ def add_parser(subparsers, _parent_parser): help="Fetch cache for all tags.", ) pull_parser.add_argument( + "-A", "--all-commits", action="store_true", default=False, @@ -224,6 +225,7 @@ def add_parser(subparsers, _parent_parser): help="Push cache for all tags.", ) push_parser.add_argument( + "-A", "--all-commits", action="store_true", default=False, @@ -290,6 +292,7 @@ def add_parser(subparsers, _parent_parser): help="Fetch cache for all tags.", ) fetch_parser.add_argument( + "-A", "--all-commits", action="store_true", default=False, @@ -370,6 +373,7 @@ def add_parser(subparsers, _parent_parser): "for all tags.", ) status_parser.add_argument( + "-A", "--all-commits", action="store_true", default=False, diff --git a/dvc/command/experiments.py b/dvc/command/experiments.py index a25293794..e408048c4 100644 --- a/dvc/command/experiments.py +++ b/dvc/command/experiments.py @@ -984,6 +984,7 @@ def add_parser(subparsers, parent_parser): help="Keep experiments derived from all Git tags.", ) experiments_gc_parser.add_argument( + "-A", "--all-commits", action="store_true", default=False, diff --git a/dvc/command/gc.py b/dvc/command/gc.py index d418bb105..6ff34835b 100644 --- a/dvc/command/gc.py +++ b/dvc/command/gc.py @@ -97,6 +97,7 @@ def add_parser(subparsers, parent_parser): help="Keep data files for all Git tags.", ) gc_parser.add_argument( + "-A", "--all-commits", action="store_true", default=False, diff --git a/dvc/command/metrics.py b/dvc/command/metrics.py index 18645f29c..379ebe295 100644 --- a/dvc/command/metrics.py +++ b/dvc/command/metrics.py @@ -219,6 +219,7 @@ def add_parser(subparsers, parent_parser): help="Show metrics for all tags.", ) metrics_show_parser.add_argument( + "-A", "--all-commits", action="store_true", default=False,