Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
implement "borg version", fixes #7829
Since long, we have borg --version to display the borg (client) version string in its very detailed form provided by setuptools_scm, e.g.: borg 1.4.0.dev119+gc7cef548.d20240119). Now there is an additional new command "borg version <REPO>", which shows e.g.: 1.4.0a / 1.2.7 # client 1.4.0 alpha, server 1.2.7 release 1.4.0rc / 1.4.0rc # client and server both run 1.4.0 release candidate When a local repo is given, the client code directly accesses the repository, thus we show the client version also as the server version. When a remote repo is given (e.g. ssh:), the remote borg is queried and its version is displayed as the server version. Due to the version tuple format used in borg client/server negotiation, only a simplified version is displayed (as provided by borg.version.format_version).
- Loading branch information