This is an archive of the discontinued Mercurial Phabricator instance.

test-strip: make test compatible with chg
ClosedPublic

Authored by singhsrb on Oct 3 2017, 8:01 PM.

Details

Summary

The test was using reposetup which had the logic for stripping
commits. This leads to a situation where if the reposetup was called twice for
an extension (which can happen with chg running), the stripped node would not
be found the second time. Therefore, this commit changes the test to put the
stripping logic inside commands instead of the reposetup. This ensures that the
stripping logic is invoked only when the command is invoked and thus, avoids
any problems.

Test Plan

Ran the test 'test-strip.t' with and without the '--chg' option.

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

singhsrb created this revision.Oct 3 2017, 8:01 PM
quark accepted this revision.Oct 3 2017, 8:06 PM
quark added a subscriber: quark.

Thanks!

This revision was automatically updated to reflect the committed changes.