MCPcopy
hub / github.com/borgbackup/borg / do_version

Method do_version

src/borg/archiver/version_cmd.py:12–22  ·  view source on GitHub ↗

Displays the Borg client and server versions.

(self, args)

Source from the content-addressed store, hash-verified

10
11class VersionMixIn:
12 def do_version(self, args):
13 """Displays the Borg client and server versions."""
14 from borg.version import parse_version, format_version
15
16 client_version = parse_version(__version__)
17 if args.location.proto in ("ssh", "socket"):
18 with RemoteRepository(args.location, lock=False, args=args) as repository:
19 server_version = repository.server_version
20 else:
21 server_version = client_version
22 print(f"{format_version(client_version)} / {format_version(server_version)}")
23
24 def build_parser_version(self, subparsers, common_parser, mid_common_parser):
25 from ._common import process_epilog

Callers

nothing calls this directly

Calls 3

parse_versionFunction · 0.90
format_versionFunction · 0.90
RemoteRepositoryClass · 0.85

Tested by

no test coverage detected