head 1.2; access; symbols; locks; strict; comment @# @; 1.2 date 2026.07.06.08.49.46; author wiz; state dead; branches; next 1.1; commitid GxgCArdzVSvguzMG; 1.1 date 2026.06.22.22.09.45; author wiz; state Exp; branches; next ; commitid mSBg6of2luKvmQKG; desc @@ 1.2 log @restic: update to 0.19.1. ## Summary * Fix #5234: Prevent mounting over the repository directory * Fix #5667: Skip inaccessible `backup` source paths * Fix #5722: Update `mount` latest symlink after snapshot reload * Fix #21866: Hide `stats` progress bar in JSON mode * Fix #21869: Restore old behavior of `snapshots --latest ` without `--group-by` * Fix #21876: Show timezone location in `snapshots` output * Fix #21879: Prevent crash in mountpoint validation if mountpoint is inaccessible * Fix #21895: Remove read-only files via the SFTP backend on Windows servers * Fix #21899: Make `backup` respect excludes for duplicate directory entries @ text @$NetBSD: patch-cmd_restic_cmd__stats__test.go,v 1.1 2026/06/22 22:09:45 wiz Exp $ stats: hide progress bar for json output https://github.com/restic/restic/pull/21871 --- cmd/restic/cmd_stats_test.go.orig 2026-06-09 16:49:04.000000000 +0000 +++ cmd/restic/cmd_stats_test.go @@@@ -66,7 +66,7 @@@@ func TestStatsProgress(t *testing.T) { func TestStatsProgress(t *testing.T) { term := &ui.MockTerminal{} - progress := newStatsProgress(term, 2) + progress := newStatsProgress(term, true, 2) progress.printProgress(0*time.Second, false) rtest.Equals(t, []string{"[0:00] 0.00% 0 / 2 snapshots, 0 B"}, term.Output) @@@@ -87,4 +87,13 @@@@ func TestStatsProgress(t *testing.T) { progress.printProgress(20*time.Second, true) rtest.Equals(t, []string{"[0:20] 100.00% 2 / 2 snapshots, 4 files, 5 blobs, 6 B"}, term.Output) +} + +func TestStatsProgressJSON(t *testing.T) { + term := &ui.MockTerminal{} + + progress := newStatsProgress(term, false, 2) + progress.printProgress(0*time.Second, false) + // JSON output is not available yet, so just make sure to not break normal json output + rtest.Equals(t, nil, term.Output) } @ 1.1 log @restic: merge upstream patch for "stats: hide progress bar for json output" to make --json output JSON only. Bump PKGREVISION. @ text @d1 1 a1 1 $NetBSD$ @