On Thu, Feb 20, 2014 at 11:47:12PM +0100, Lieven Moors wrote:
> > > Yes. The only reason the snapshot would be out of sync with the history is
> > > if non-timeline is closed abnormally. If this happens, upon the next
> > > opening, non-timeline will load by replaying the entire history instead of
> > > utilizing the outdated snapshot. You can detect this scenario in your
> > > scripts by comparing the file timestamps.
> 
> Sorry to reply to myself, but wouldn't it be best to add this to the
> remove-unused-sources script? I had a quick look, but it doesn't seem to
> compare file timestamps, in order to decide for $ONLY_COMPACTED...

When thinking about it, this still wouldn't solve my problem.
I've been making commits in git while non-timeline was running. 
In that case the history file would contain information that is
needed to clean up unused sources.

So for me it would be very useful if there would be an option to the 
non programs, that would just replay the journal, make a snapshot, and quit.
Also, that would make it possible to use the remove-unused-sources script
in all circumstances.

But I can understand if you wouldn't care too much for this specific
use case.

greetings,

lieven




Reply via email to