borgbackup/src/borg
Thomas Waldmann 232ccabfa3
fix: properly handle invalid and dev versions in version parser, fixes #9014
- `src/borg/__init__.py`: The `setuptools_scm` fallback version `0.1.dev1`
  was incorrectly bypassing the assertion check (as `0` and `1` are valid
  integers), which hid the intended helpful error message when building
  from source without tags. Added an explicit check for the `0.1.dev` prefix.

- `src/borg/version.py`: `parse_version` and `format_version` have been
  updated to correctly understand `setuptools_scm`'s `.dev` or `dev` prefixes.
  These dev releases are now properly encoded in the version tuple as `-9`
  (which logically makes them older than alphas `-4`, betas `-3`, rcs `-2`,
  and final `-1`), and correctly reformatted to `.dev` strings.
2026-05-12 22:22:33 +02:00
..
algorithms code: fix typos and grammar 2025-08-10 15:51:29 +02:00
cache_sync [1.2-maint] Backport implicit warning patches from master (#6427) 2022-03-09 16:10:21 +01:00
crypto crypto low_level: fix freeing of memory 2026-05-04 20:57:00 +02:00
helpers helpers: get_base_dir: avoid using HOME when it incorrectly points to root's home for non-root users (fstab borgfs), fixes #3395 2026-03-18 18:42:43 +01:00
platform platform: use F_FULLFSYNC on macOS for SyncFile data durability, fixes #9383 2026-05-08 00:30:48 +05:30
testsuite Merge pull request #9592 from mr-raj12/backport-9385-to-1.4-maint 2026-05-08 11:35:15 +02:00
__init__.py fix: properly handle invalid and dev versions in version parser, fixes #9014 2026-05-12 22:22:33 +02:00
__main__.py code: fix typos and grammar 2025-08-10 15:51:29 +02:00
_chunker.c _chunker.c: fix some bugs 2026-05-04 21:05:05 +02:00
_endian.h Basic MSC Compatibility (#4147) 2018-11-03 18:52:54 +01:00
_hashindex.c _hashindex.c: more fixes 2026-05-04 20:32:13 +02:00
_item.c item: item.to_optr(), Item.from_optr() 2017-07-29 17:26:39 +02:00
archive.py Merge pull request #9491 from ThomasWaldmann/trailing-sparse-windows-1.4 2026-03-17 00:30:19 +01:00
archiver.py prune: show total vs matching archives in output (fixes #9262) 2026-05-11 18:58:36 +02:00
cache.py code: fix typos and grammar 2025-08-10 15:51:29 +02:00
chunker.pyx _chunker.c: fix some bugs 2026-05-04 21:05:05 +02:00
compress.pyx compress: expose Padmé size obfuscation via UI 2026-02-09 23:31:52 +01:00
constants.py info: show cwd at the time of backup creation, fixes #6191 2026-03-16 21:18:55 +01:00
fuse.py mount: improve error msg when uid/gid cannot be resolved, fixes #9574 2026-05-04 22:47:37 +02:00
fuse_impl.py code: fix typos and grammar 2025-08-10 15:51:29 +02:00
hashindex.pyx _hashindex.c: more fixes 2026-05-04 20:32:13 +02:00
item.pyx info: show cwd at the time of backup creation, fixes #6191 2026-03-16 21:18:55 +01:00
locking.py code: fix typos and grammar 2025-08-10 15:51:29 +02:00
logger.py manual fixes 2025-08-17 16:05:51 +02:00
lrucache.py LRUCache fixes 2026-05-04 20:08:12 +02:00
nanorst.py code: fix typos and grammar 2025-08-10 15:51:29 +02:00
paperkey.html paperkey.html: fix typos, grammar, html structure 2025-08-12 16:56:00 +02:00
patterns.py code: fix typos and grammar 2025-08-10 15:51:29 +02:00
platformflags.py fix race condition in test_with_lock, fixes #8810 2026-03-17 00:52:10 +01:00
remote.py extract: resolve memory leak on abandoned async requests in RemoteRepository 2026-05-04 20:08:43 +02:00
repository.py warn when replaying segments, fixes #9233 2026-03-18 18:08:01 +01:00
selftest.py code: fix typos and grammar 2025-08-10 15:51:29 +02:00
shellpattern.py code: fix typos and grammar 2025-08-10 15:51:29 +02:00
upgrader.py manual fixes 2025-08-17 16:05:51 +02:00
version.py fix: properly handle invalid and dev versions in version parser, fixes #9014 2026-05-12 22:22:33 +02:00
xattr.py code: fix typos and grammar 2025-08-10 15:51:29 +02:00