This is an archive of the discontinued Mercurial Phabricator instance.

test-hook: make test compatible with chg
ClosedPublic

Authored by singhsrb on Oct 3 2017, 5:37 PM.

Details

Summary

The test uses the 'print' method instead of writing to stdout using
'ui.write' which leads to incompatibility with chg. This commit modifies the
test to use 'ui' instead which fixes the problem.

Test Plan

Ran the test 'test-hook.t' with and without '--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, 5:37 PM
quark accepted this revision.Oct 3 2017, 8:00 PM
This revision was automatically updated to reflect the committed changes.