tests: cover revision conversion logic in githelp tests stable
authorDenis Laxalde <denis@laxalde.org>
Mon, 02 Dec 2019 10:18:18 +0100
branchstable
changeset 43747 5470e63686ca
parent 43746 10662ac7849e
child 43748 a50fecefa691
tests: cover revision conversion logic in githelp tests There was no test involving actual conversion of option values when they contain a git revision name (to be converted as a hg one by hgext.githelp.convert()). Adding one. This test would fail on Python 3 without https://phab.mercurial-scm.org/D7537. Differential Revision: https://phab.mercurial-scm.org/D7540
tests/test-githelp.t
--- a/tests/test-githelp.t	Sat Nov 30 03:15:17 2019 -0500
+++ b/tests/test-githelp.t	Mon Dec 02 10:18:18 2019 +0100
@@ -264,6 +264,10 @@
   $ hg githelp -- git commit --reuse-message deadbeef
   hg commit -M deadbeef
 
+githelp for reuse message using HEAD
+  $ hg githelp -- git commit --reuse-message HEAD~
+  hg commit -M .~1
+
 githelp for apply with no options
   $ hg githelp -- apply
   hg import --no-commit