This has been lying around here for a while and I think it makes sense.
1 patch for repository http://darcs.net/screened:patch 3b58a0a247f6da0c36e50f03b2a71185c6201148
Author: Ben Franksen <email@example.com>
Date: Sat Sep 22 17:43:03 CEST 2018
* fix: don't throw away pending in 'optimize upgrade'
There is really no need to do that since pending isn't hashed anyway.