]> arthur.barton.de Git - bup.git/commit
cmd-save: don't recurse into already-valid subdirs.
authorAvery Pennarun <apenwarr@gmail.com>
Tue, 9 Feb 2010 05:51:25 +0000 (00:51 -0500)
committerAvery Pennarun <apenwarr@gmail.com>
Tue, 9 Feb 2010 06:04:00 +0000 (01:04 -0500)
commit20076ed815b0ad0957ec20cdfbdb1c90a9762adf
treee6f8bb345f4cfd901c8826fb903045290b23f90e
parenta4f8c17380f3d28be576e84bb1fd3c1abfb450d5
cmd-save: don't recurse into already-valid subdirs.

When iterating through the index, if we find out that a particular dir (like
/usr) has a known-valid sha1sum and isn't marked as changed, there's no need
to recurse into it at all.  This saves some pointless grinding through the
index when entire swaths of the tree are known to be already valid.
cmd-save.py
index.py
t/test.sh