summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2012-03-23 17:35:28 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2012-03-23 17:35:28 (GMT)
commit9d6b7bed7abdc0debde6476c8c2b0935bf5015f0 (patch)
tree078f7deb14dc3e4d9e829a88feb8c83bf36eadcb /Tests
parente38e6bdbd3a99d7de6b96a8c5a5b5ffbcbdf0781 (diff)
parentd0702f8214f261d72c66ac7e400d9af984cd9391 (diff)
downloadCMake-9d6b7bed7abdc0debde6476c8c2b0935bf5015f0.zip
CMake-9d6b7bed7abdc0debde6476c8c2b0935bf5015f0.tar.gz
CMake-9d6b7bed7abdc0debde6476c8c2b0935bf5015f0.tar.bz2
Merge topic 'fix-CTestUpdateHG-url'
d0702f8 CTest.UpdateHG: Fix repo URL for leading slash
Diffstat (limited to 'Tests')
-rw-r--r--Tests/CTestUpdateHG.cmake.in5
1 files changed, 4 insertions, 1 deletions
diff --git a/Tests/CTestUpdateHG.cmake.in b/Tests/CTestUpdateHG.cmake.in
index 5a9daae..640d2c6 100644
--- a/Tests/CTestUpdateHG.cmake.in
+++ b/Tests/CTestUpdateHG.cmake.in
@@ -28,7 +28,10 @@ run_child(
WORKING_DIRECTORY ${TOP}/repo.hg
COMMAND ${HG} init
)
-set(REPO file:///${TOP}/repo.hg)
+if(NOT "${TOP}" MATCHES "^/")
+ set(slash /)
+endif()
+set(REPO file://${slash}${TOP}/repo.hg)
#-----------------------------------------------------------------------------
# Import initial content into the repository.