This is an archive of the discontinued Mercurial Phabricator instance.

checkmessagehook: print more detail on what bad chars were found
ClosedPublic

Authored by jsgf on Nov 14 2017, 7:16 PM.
Tags
None
Subscribers
None

Details

Summary

Print which bad characters were found on what line, so that users can
fix the problem just from the hook message.

Diff Detail

Repository
rFBHGX Facebook Mercurial Extensions
Lint
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

jsgf created this revision.Nov 14 2017, 7:16 PM
Herald added a reviewer: Restricted Project. · View Herald TranscriptNov 14 2017, 7:16 PM
jsgf added a comment.Nov 14 2017, 7:20 PM

I couldn't find any existing unit tests to update.

jsgf updated this revision to Diff 3501.Nov 14 2017, 7:35 PM
durham accepted this revision.Nov 14 2017, 7:38 PM
This revision is now accepted and ready to land.Nov 14 2017, 7:38 PM
durham added inline comments.Nov 14 2017, 7:39 PM
tests/test-checkmessagehook.t
20

Maybe also test that a normal commit can go through.

jsgf updated this revision to Diff 3502.Nov 14 2017, 7:42 PM
jsgf marked an inline comment as done.Nov 14 2017, 7:43 PM
jsgf added inline comments.
hgext3rd/checkmessagehook.py
21

Is this portable? If not, what is?

jsgf updated this revision to Diff 3503.Nov 14 2017, 7:47 PM
jsgf marked an inline comment as done.Nov 14 2017, 7:48 PM
jsgf closed this revision.Nov 15 2017, 7:05 PM