diff options
author | Brad King <brad.king@kitware.com> | 2012-03-23 17:35:28 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2012-03-23 17:35:28 (GMT) |
commit | 9d6b7bed7abdc0debde6476c8c2b0935bf5015f0 (patch) | |
tree | 078f7deb14dc3e4d9e829a88feb8c83bf36eadcb /Tests | |
parent | e38e6bdbd3a99d7de6b96a8c5a5b5ffbcbdf0781 (diff) | |
parent | d0702f8214f261d72c66ac7e400d9af984cd9391 (diff) | |
download | CMake-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.in | 5 |
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. |