Commit Graph

18 Commits

Author SHA1 Message Date
Thomas Waldmann f86a13c438
fix invalid pattern argument error msg 2023-11-05 17:54:07 +01:00
Thomas Waldmann 2aecdb91d4
extract: fix false warning about pattern never matching, fixes #4110 2023-07-01 15:31:00 +02:00
Thomas Waldmann a0330d578e
run black 23.1.0 on the code 2023-02-01 12:30:37 +01:00
Thomas Waldmann 4493d396e6 implement pattern support for --match-archives, fixes #6504
also:
- rename --glob-archives option to --match-archives (short: -a, unchanged)
- globbing patterns now need sh: prefix
- regex patterns need re: prefix
- "identical" match "patterns" use an id: prefix
- new default style is id: pattern (--glob-archives used sh: glob pattern)
- source code: glob -> match, GLOB -> PATTERN
2022-09-16 15:10:13 +02:00
Thomas Waldmann ecd7bce5b8 move shellpattern module to borg.helpers 2022-08-13 22:03:44 +02:00
Thomas Waldmann b8e48c5036 mypy: fixes / annotations 2022-07-15 14:54:48 +02:00
Thomas Waldmann 7957af562d blacken all the code
https://black.readthedocs.io/
2022-07-06 16:34:38 +02:00
Thomas Waldmann cbeef56454 pyupgrade --py38-plus ./**/*.py 2022-02-27 20:11:56 +01:00
Guinness 82e93527b0
Use an exception catching to avoid a stack trace
When exclude files are used, this can trigger a stack trace if the file
does not exist. Instead exit nicely without the stacktrace.

Fix #5734
2021-08-13 16:55:21 +02:00
Andrea Gelmini 72e7c46fa7 Fix typos 2021-01-07 17:54:33 +01:00
Thalian ece47ee9e4 [BUGFIX] Borg commands accept absolute pathes, #4029
Strip leading path separator before trying to match a path.
2020-04-18 21:58:17 +02:00
Thalian 6aab0bc4c9 [FEATURE] Borg commands accept absolute pathes, #4029
Remove all leading slashes in patterns of all sorts but re: style.
2020-04-13 08:44:38 +02:00
Thomas Waldmann f5ba0fc649 be more helpful when parsing invalid --pattern values
say what the real problem is.
say what is valid.
2018-03-03 03:08:20 +01:00
Mark Edgington fd0215c3c2 patterns: don't recurse with !/--exclude for path-prefix (pf:)
Fixes issue #2509
2017-06-03 12:13:32 -04:00
Marian Beermann 4d9fd6d13f fix --exclude and --exclude-from recursing into directories 2017-05-05 14:55:01 +02:00
Marian Beermann ef4cdfacae patterns: use set literal instead of set([]) 2017-05-01 22:20:34 +02:00
Marian Beermann c5e3232187 patterns: explicate translate source 2017-05-01 22:20:34 +02:00
Marian Beermann 580496b592 create patterns module 2017-05-01 22:20:33 +02:00