Hi,

I faced the same problem with our setup. The workaround is probably a good way to actually do the job. However the CTEST_UPDATE_SVN_OPTIONS do work and provide extra information in the svn update command. The problem is that when you don't have SVN credentials cached, credentials are asked for the svn info command:

    svn info --xml -v -r4844

Which is called from cmCTestSVN::LoadRevisions, and this command doesn't allow any optional parameters. This means that when there are no credentials in the svn cache, this is the place where the credentials have to be entered.

The CTEST_UPDATE_COMMAND is however used as the 'CommandLineTool' for all calls to svn (in this case). So a good workaround is to use a script that delegates the --username and --password to the svn command.

The svn credentials can be stored encrypted on disk and also the svn case has limited read write permission.

John


The problem is that the Cmake SVN update
Op 28-1-2011 17:02, Tyler Roscoe schreef:
On Fri, Jan 28, 2011 at 06:22:37AM -0500, David Cole wrote:
Storing credentials on the machine in advance is one way to achieve this.

(I have not tried this myself, but...) You may also be able to set the
CTEST_UPDATE_COMMAND to a script that delegates to svn with all your desired
command line options.
Another good potential workaround.

work. Certainly, what you're trying to do is reasonable. Although one could
argue it might be better to cache credentials on machines than save them in
plain text in a script file.....
FYI and IIRC, Subversion (as of 1.6 at least) generally stores the
credentials on disk in plain text. I don't remember if there are any
strong encryption options, but I don't think so; this was a frequent
complaint on the svn-user list when I was subscribed there.

Still might be better than storing credentials in revision control, but
probably not really really secure either.

tyler
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to