mirror of
https://github.com/borgbackup/borg.git
synced 2025-01-19 14:02:55 +00:00
Preserve archive order of added and removed files
This commit is contained in:
parent
1d3e69e4c7
commit
4eba7d38ea
1 changed files with 3 additions and 2 deletions
|
@ -3,6 +3,7 @@
|
|||
from itertools import zip_longest
|
||||
from operator import attrgetter
|
||||
import argparse
|
||||
import collections
|
||||
import functools
|
||||
import hashlib
|
||||
import inspect
|
||||
|
@ -546,8 +547,8 @@ def compare_items(path, item1, item2, hardlink_masters, deleted=False):
|
|||
print("{:<19} {}".format(' '.join(changes), remove_surrogates(path)))
|
||||
|
||||
def compare_archives(archive1, archive2, matcher):
|
||||
orphans_archive1 = {}
|
||||
orphans_archive2 = {}
|
||||
orphans_archive1 = collections.OrderedDict()
|
||||
orphans_archive2 = collections.OrderedDict()
|
||||
hardlink_masters = {}
|
||||
for item1, item2 in zip_longest(
|
||||
archive1.iter_items(lambda item: matcher.match(item[b'path'])),
|
||||
|
|
Loading…
Reference in a new issue