]> arthur.barton.de Git - bup.git/commit
gc: explicitly handle missing objects
authorRob Browning <rlb@defaultvalue.org>
Sun, 12 Jun 2016 20:50:46 +0000 (15:50 -0500)
committerRob Browning <rlb@defaultvalue.org>
Sat, 2 Jul 2016 16:20:31 +0000 (11:20 -0500)
commit06ba7da77423400a40b9093a3aeb524ac5698dad
treeba90100dad7d9d623b66bce679aa78cfe3c8a517
parent71d7038d031163cace34ed673cf04ecb48306967
gc: explicitly handle missing objects

Instead of just dying with a KeyError backtrace, detect missing objects
and print a friendlier message about the problem.  Having the new
MissingObject exception derive from KeyError should avoid affecting
existing code.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Tested-by: Rob Browning <rlb@defaultvalue.org>
cmd/gc-cmd.py
lib/bup/git.py