diff options
author | Eric Wong (Contractor, The Linux Foundation) <e@80x24.org> | 2018-04-04 21:24:58 +0000 |
---|---|---|
committer | Eric Wong (Contractor, The Linux Foundation) <e@80x24.org> | 2018-04-04 21:54:42 +0000 |
commit | b4d127cb83230fe5cee0dcecb573107ad96a7c4c (patch) | |
tree | 764d61dc4043e368248165d75dd3dbd4312c2ce4 /t/v2writable.t | |
parent | 89537db2ca4b506a7b7500dcd7b7c5430a0a6dc7 (diff) | |
download | public-inbox-b4d127cb83230fe5cee0dcecb573107ad96a7c4c.tar.gz |
We do not need to rewrite old commits unaffected by the object_id purge, only newer commits. This was a state management bug :x We will also return the new commit ID of rewritten history to aid in incremental indexing of mirrors for the next change.
Diffstat (limited to 't/v2writable.t')
-rw-r--r-- | t/v2writable.t | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/t/v2writable.t b/t/v2writable.t index 2f839776..e49c06b9 100644 --- a/t/v2writable.t +++ b/t/v2writable.t @@ -248,7 +248,8 @@ EOF { ok($im->add($mime), 'add message to be purged'); local $SIG{__WARN__} = sub {}; - ok($im->purge($mime), 'purged message'); + ok(my $cmts = $im->purge($mime), 'purged message'); + like($cmts->[0], qr/\A[a-f0-9]{40}\z/, 'purge returned current commit'); $im->done; } |