MantisBT - CMake
View Issue Details
0012304CMakeModulespublic2011-06-24 14:522012-03-07 10:53
Aaron C. Meadows 
Brad King 
normalminoralways
closedfixed 
CMake 2.8.4 
CMake 2.8.6CMake 2.8.6 
0012304: FindSubversion.cmake macro Subversion_WC_LOG hangs if credentials are not set.
If you call Subversion_WC_LOG on a directory and you do not have credentials to access the server, the macro will hang while the SVN executable waits for a password to be supplied
Have a working copy but do not have saved credentials. Attempt to call Subversion_WC_LOG with that working copy as the supplied directory. Observe that the script hangs. Hit control-c, which will be passed to the SVN executable and cause it to break. Observe that the returned output printed to the terminal shows the SVN prompt for a password.
This is easily handled by passing the argument --non-interactive to the SVN executable. I'm including a patch which adds this argument to the call.

NOTE: It may also be possible the Subversion_WC_INFO to suffer this same problem, though I think that is unlikely. --non-interactive could be added to this call as well, possibly abstracting the arguments out into ${Subversion_SVN_EXECUTABLE_DEFAULT_ARGUMENTS} might be appropriate.
FindSubversion, patch
related to 0013024closed Brad King some ctest svn calls may hang waiting for user input 
patch FindSubversion.cmake.patch (622) 2011-06-24 14:52
https://public.kitware.com/Bug/file/3960/FindSubversion.cmake.patch
Issue History
2011-06-24 14:52Aaron C. MeadowsNew Issue
2011-06-24 14:52Aaron C. MeadowsFile Added: FindSubversion.cmake.patch
2011-06-24 14:52Aaron C. MeadowsTag Attached: FindSubversion
2011-06-24 14:52Aaron C. MeadowsTag Attached: patch
2011-06-24 15:43Brad KingAssigned To => Brad King
2011-06-24 15:43Brad KingStatusnew => assigned
2011-06-24 15:44Brad KingNote Added: 0026967
2011-06-24 15:44Brad KingStatusassigned => resolved
2011-06-24 15:44Brad KingResolutionopen => fixed
2011-09-12 17:11David ColeFixed in Version => CMake 2.8.6
2011-09-12 17:11David ColeTarget Version => CMake 2.8.6
2012-02-06 06:07David ColeNote Added: 0028501
2012-02-06 06:07David ColeStatusresolved => closed
2012-03-07 10:53Brad KingRelationship addedrelated to 0013024

Notes
(0026967)
Brad King   
2011-06-24 15:44   
Applied, thanks:

http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=0c6e8524 [^]
(0028501)
David Cole   
2012-02-06 06:07   
Closing resolved issues that have not been updated in more than 4 months.