mirror of
https://github.com/borgbackup/borg.git
synced 2026-05-28 04:03:21 -04:00
Merge pull request #5694 from ThomasWaldmann/misc-fixes-1.1
backport comment about archives.list() defaults
This commit is contained in:
commit
4a181f74a4
1 changed files with 4 additions and 0 deletions
|
|
@ -279,6 +279,10 @@ class Archives(abc.MutableMapping):
|
|||
Apply *first* and *last* filters, and then possibly *reverse* the list.
|
||||
|
||||
*sort_by* is a list of sort keys applied in reverse order.
|
||||
|
||||
Note: for better robustness, all filtering / limiting parameters must default to
|
||||
"not limit / not filter", so a FULL archive list is produced by a simple .list().
|
||||
some callers EXPECT to iterate over all archives in a repo for correct operation.
|
||||
"""
|
||||
if isinstance(sort_by, (str, bytes)):
|
||||
raise TypeError('sort_by must be a sequence of str')
|
||||
|
|
|
|||
Loading…
Reference in a new issue