This is an archive of the discontinued Mercurial Phabricator instance.

phabricator: sanity check Differential Revision from commit message
ClosedPublic

Authored by quark on Jul 11 2017, 11:56 AM.

Details

Summary

Previously, we trust Differential Revision in commit message blindly. This
patch adds sanity check so a host name change will be detected and the
commit message will be ignored.

Test Plan

Send patches to a test Phabricator instance. Use phabread and import to
apply them in another repo, and change commit message so the URL does not
match the configured URL. Resend them using phabsend, make sure a warning is
printed saying the changed URL is ignored.

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

quark created this revision.Jul 11 2017, 11:56 AM
phillco accepted this revision.Jul 13 2017, 2:06 PM
This revision is now accepted and ready to land.Jul 13 2017, 2:06 PM
krbullock accepted this revision.Jul 18 2017, 2:31 PM
krbullock added a subscriber: krbullock.

Queued, thanks.

This revision was automatically updated to reflect the committed changes.