Page MenuHomePhabricator

commit: factor out empty commit check to `basectx.isempty()`
ClosedPublic

Authored by mjacob on Fri, Jul 10, 7:16 PM.

Details

Summary

This enables reuse in other places, e.g. those dealing with memctx.

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

mjacob created this revision.Fri, Jul 10, 7:16 PM
mjacob retitled this revision from commit: factor out empty commit check to `committablectx.isempty()` to commit: factor out empty commit check to `basectx.isempty()`.Sat, Jul 11, 7:12 PM
mjacob updated this revision to Diff 21867.
This revision was not accepted when it landed; it landed in state Needs Review.
This revision was automatically updated to reflect the committed changes.