transplant: update test to use hash for remote transplant stable
authorPierre-Yves David <pierre-yves.david@fb.com>
Mon, 29 Jun 2015 19:18:51 -0700
branchstable
changeset 25678 0c201666fdc6
parent 25677 af5b2f4ed594
child 25679 540cd0ddac49
transplant: update test to use hash for remote transplant Transplant is apparently allowing using revision numbers when transplanting through http. I call this nonsense and update the test to use an explicit hash. This "feature" will break in the next change fixing another bug.
tests/test-transplant.t
--- a/tests/test-transplant.t	Mon Jun 29 11:20:09 2015 -0700
+++ b/tests/test-transplant.t	Mon Jun 29 19:18:51 2015 -0700
@@ -298,7 +298,7 @@
   updating to branch default
   1 files updated, 0 files merged, 0 files removed, 0 files unresolved
   $ cd ../rp
-  $ hg transplant -s http://localhost:$HGPORT/ 2 4
+  $ hg transplant -s http://localhost:$HGPORT/ 37a1297eb21b a53251cdf717
   searching for changes
   searching for changes
   adding changesets
@@ -313,9 +313,12 @@
   0  r1
 
 remote transplant without pull
+(I'm pretty sure this test is actually pulling,
+It was using "2" and "4" (as the previous transplant used to) which referenced
+revision different from one run to another)
 
   $ hg pull -q http://localhost:$HGPORT/
-  $ hg transplant -s http://localhost:$HGPORT/ 2 4
+  $ hg transplant -s http://localhost:$HGPORT/ 8d9279348abb 722f4667af76
   searching for changes
   skipping already applied revision 2:8d9279348abb
   applying 722f4667af76