CmdPurge: Require GC run prior to execution

Since TDB2::purge method allows purging of the tasks only
on competed.data file, we need to make sure that all the tasks
that were supposed to be moved to completed.data have been
moved - in other words, we need to run GC.

This allows for diract usage of purge after delete, that is:

$ task <filter> delete
$ task <filter> purge

working as expected.
This commit is contained in:
Tomas Babej 2016-03-20 01:40:29 +01:00 committed by Paul Beckingham
parent 909b2e2713
commit ffce61da4b

View file

@ -42,7 +42,7 @@ CmdPurge::CmdPurge ()
_read_only = false; _read_only = false;
_displays_id = false; _displays_id = false;
_needs_confirm = true; _needs_confirm = true;
_needs_gc = false; _needs_gc = true;
_uses_context = true; _uses_context = true;
_accepts_filter = true; _accepts_filter = true;
_accepts_modifications = false; _accepts_modifications = false;