]> arthur.barton.de Git - bup.git/commit
Eliminate redundant check of index start against ctime
authorAidan Hobson Sayers <aidanhs@cantab.net>
Fri, 17 Jul 2020 21:59:04 +0000 (22:59 +0100)
committerRob Browning <rlb@defaultvalue.org>
Sun, 19 Jul 2020 20:13:15 +0000 (15:13 -0500)
commit68e087e6f2f2311ac784b204c0de72dcddb08934
tree4e95b8eb5dde2c271132d72630de956e6df9f1fd
parenteadddb9ded212a4d6b9ec3f65532a7e6bb267bef
Eliminate redundant check of index start against ctime

When (the first version of) this check was added 10 years ago in
b4b4ef116880, it was presumably to ensure that "index; save; touch;
index" in the same second would flag a file as needing saving.

Since then, tmax has been added in the indexing process to solve the
problem by capping timestamps stored in the index. This capping means
that a file with ctime in the same second as an indexing start will
be picked up on both the indexes in the example above - there's no need
to special case the check.

Signed-off-by: Aidan Hobson Sayers <aidanhs@cantab.net>
Reviewed-by: Rob Browning <rlb@defaultvalue.org>
Tested-by: Rob Browning <rlb@defaultvalue.org>
lib/bup/index.py
lib/cmd/index-cmd.py