]> arthur.barton.de Git - bup.git/commit
Don't crash; defer an error when a path changes while indexing it. 0.25-rc4
authorRob Browning <rlb@defaultvalue.org>
Tue, 12 Nov 2013 17:38:35 +0000 (11:38 -0600)
committerRob Browning <rlb@defaultvalue.org>
Tue, 12 Nov 2013 17:48:03 +0000 (11:48 -0600)
commitb1c766667d8dd7735ed0a2e7fa26754a9ef534ce
treec8dd8b0af2ea23e97896a209b53a63826ed6b39d
parenta70159734ea10352d3de269611513a21887e8b97
Don't crash; defer an error when a path changes while indexing it.

Mirror the error handling already used by save.

With this change the result for a path that changes or is deleted
between the drecurse traversal and the from_path() call should be the
same as the result for a path that changes or is deleted between index
and save.

Thanks to Yann Autissier <yann.autissier@gmail.com> for reporting the
problem and Gabriel Filion <gabster@lelutin.ca> for helping figure out
the solution.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
cmd/index-cmd.py