]> arthur.barton.de Git - bup.git/commit
metadata_file(): don't load metadata objects for all the files in a dir.
authorRob Browning <rlb@defaultvalue.org>
Fri, 18 Oct 2013 23:30:01 +0000 (18:30 -0500)
committerRob Browning <rlb@defaultvalue.org>
Tue, 22 Oct 2013 23:24:42 +0000 (18:24 -0500)
commite9d4e4ae6e27d06cca5226e9bce2dc7f915e3780
treec2f6f5101760045024dbb263fe7b8894c1efcf5e
parent08dad7c02e3f1ffd4d9e94478369ef997e3b4cae
metadata_file(): don't load metadata objects for all the files in a dir.

When only asked for the .bupm via metdata_file(), don't also parse the
.bupm and create all the metadata objects for the dir.  Aside from
being potentially wasteful, that may also make it impossible to
retrieve a broken .bupm via "cat-file --bupm" (for analysis).

Thanks to Anton Eliasson <devel@antoneliasson.se> for helping find the
problem and test the fix.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
lib/bup/vfs.py