This is an archive of the discontinued Mercurial Phabricator instance.

tests: add test of for hash reference translation by `hg convert`
ClosedPublic

Authored by martinvonz on Apr 5 2019, 2:34 PM.

Details

Summary

The convert extension translates commit references in the commit
message. We didn't have any explicit testing of this before, so let's
add a test.

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

martinvonz created this revision.Apr 5 2019, 2:34 PM

I created this stack on the default branch, but it's probably small enough to be put on stable.

martinvonz added inline comments.Apr 5 2019, 3:18 PM
tests/test-convert-hg-source.t
213–215

I just remembered that there is a convert.hg.sourcename that can be used for this purpose. I'll update the stack in a few minutes

martinvonz updated this revision to Diff 14686.Apr 5 2019, 3:20 PM
This revision was automatically updated to reflect the committed changes.