]> arthur.barton.de Git - bup.git/commit
cmd-index: eliminate redundant paths from index update command.
authorAvery Pennarun <apenwarr@gmail.com>
Thu, 7 Jan 2010 23:54:40 +0000 (18:54 -0500)
committerAvery Pennarun <apenwarr@gmail.com>
Fri, 8 Jan 2010 22:56:57 +0000 (17:56 -0500)
commit1d9d61078a7c82112636fea81db9134930cfb8ae
tree39c90a331668d5b849f7a3dc87db64b37a9b3cbc
parent1f00e11a8a5cc4503c9f0419b43f9887a52ea141
cmd-index: eliminate redundant paths from index update command.

If someone asks to update "/etc" and "/etc/passwd", the latter is redundant
because it's included in the first.  Don't bother updating the file twice
(and thus causing two index merges, etc).

Ideally we would only do one merge for *any* number of updates (etc /etc and
/var).  This should be possible as long as we sort the entries correctly
(/var/ and then /etc/), since a single sequential indexfile could just have
one appended to the other.  But we don't do that yet.
cmd-index.py