diff options
author | Lars Wirzenius <liw@liw.fi> | 2017-02-12 17:51:07 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2017-02-12 17:51:07 +0200 |
commit | fe0fecf3c5a741be7aca40b9c5806c6e41cfcc9c (patch) | |
tree | 2fa585e73a07b94e206b33cb3e8c98220f5fd5b6 | |
parent | 7ab0ddedc704bcdd21037d255faa2b4d1f9a313a (diff) | |
download | obnam-fe0fecf3c5a741be7aca40b9c5806c6e41cfcc9c.tar.gz |
Count files in generation
-rw-r--r-- | obnamlib/fmt_ga/client.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/obnamlib/fmt_ga/client.py b/obnamlib/fmt_ga/client.py index 635cc192..ccf9a49c 100644 --- a/obnamlib/fmt_ga/client.py +++ b/obnamlib/fmt_ga/client.py @@ -405,9 +405,12 @@ class GAClient(object): dump('after getting file metadata for generation') union = set() + n = 0 for filename in metadata: + n += 1 union = union.union(set(metadata.get_file_chunk_ids(filename))) dump('after building union of sets') + dump('gen has {} files'.format(n)) result = list(union) dump('after constructing result') |