Page MenuHomePhabricator

hooklib: fix detection of successors for changeset_obsoleted
Needs ReviewPublic

Authored by joerg.sonnenberger on Thu, May 21, 1:07 PM.

Details

Reviewers
None
Group Reviewers
hg-reviewers
Summary

Provide a hook for obsutil.getobsolete to be used with either a
transaction or the changes item of the transaction, since hooks only
have access to the latter. Use that to find the correct list of
revisions with obsmarkers, even new ones, and then filter out revisions
with known successors.

Move the processing from pretxnclose to txnclose as the transaction
access itself is no longer necessary. This is more in line with notify
and ensures that sanity checks can abort the transaction first.

Diff Detail

Repository
rHG Mercurial
Branch
stable
Lint
No Linters Available
Unit
No Unit Test Coverage