RE: bug? svn.exe propset svn:executable "*" affects too may files on Windows
From: Bert Huijben <bert_at_qqmail.nl>
Date: Thu, 11 Jun 2015 17:29:21 +0200
Hi Jože,
I know it can be worked around. I described that before. (And even disabled
We try not to add too much Windows specific code to Subversion. (And only C;
Our commandline handling is borrowed from APR, which provides our platform
I don't know if there is an issue number for this. but as long as the
Implementing this 'smart' for each and every commandline option certainly
Bert
From: Jože Fabčič [mailto:Joze.Fabcic_at_comtrade.com]
Bert, do you know the issue number for this "known issue"?
I checked what the Windows, Visual studio and vscrt do. It's easy to get the
The example c++ code is here, easily convertible into c:
#include <iostream>
#include <windows.h>
int _tmain(int argc, _TCHAR* argv[])
{
//
_TCHAR* cmd_line = GetCommandLine();
std::cout << _T("Whole command line=") << cmd_line << _T("\n");
for (int i=0; i<argc; i++)
std::cout << _T("argv[") << i << _T("]=") << argv[i] << _T("\n");
return 0;
}
I compiled it with VS 2010 and run on windows 7.
When run a directory with the following files:
b:\svn>dir /b
args
bad-svn.txt
It was possible to get asterisk expansion and the original line:
b:\svn>args\debug\args 1 "2" "*" *
Whole command line=args\debug\args 1 "2" "*" *
argv[0]=args\debug\args
argv[1]=1
argv[2]=2
argv[3]=args
argv[4]=bad-svn.txt
argv[5]=args
argv[6]=bad-svn.txt
This processing of asterisks by CRT function _setargv is different from the
Jože
From: Bert Huijben [mailto:bert_at_qqmail.nl]
On Windows the '*' is evaluated even when it is enclosed in quotes... (The
There is not much we can do about this. A valid workaround is passing a
(Another workaround is using -F <file> where file contains '*')
Given that this is a known issue, it would have been better to ask this on
Bert
From: Jože Fabčič [mailto:Joze.Fabcic_at_comtrade.com]
Hi all,
I compiled a library (boost) and found out that few files are missing the
b:\boost\boost-1.44>svn propset svn:executable "*" bootstrap.sh
property 'svn:executable' set on 'boost-build.jam'
property 'svn:executable' set on 'boost.css'
property 'svn:executable' set on 'boost.png'
property 'svn:executable' set on 'bootstrap.bat'
property 'svn:executable' set on 'bootstrap.sh'
svn: E200009: Cannot set 'svn:executable' on a directory
The working copy was created with TortoiseSVN, probably 1.8.10 that linked
On unix, the command works correctly. Using some other value of a property,
b:\boost\boost-1.44>svn propset svn:executable on bootstrap.sh
The asterisk "*" is returned as the value of property.
b:\boost\boost-1.44>svn propget svn:executable bootstrap.sh
*
When searching google with "svn execute permission windows", the first
http://stackoverflow.com/questions/6874085/how-to-set-execute-attribute-to-a
and besides the correct procedure using TortoiseSVN it also presents the
svn propset svn:executable "*" someScript
It seems that the value of property is incorrectly used also for selecting
b:\boost\boost-1.44>svn propset svexecutable "i*" bootstrap.sh
property 'svexecutable' set on 'index.html'
property 'svexecutable' set on 'INSTALL'
property 'svexecutable' set on 'bootstrap.sh'
b:\boost\boost-1.44>svn propset svexecutable b* bootstrap.sh
property 'svexecutable' set on 'boost-build.jam'
property 'svexecutable' set on 'boost.css'
property 'svexecutable' set on 'boost.png'
property 'svexecutable' set on 'bootstrap.bat'
property 'svexecutable' set on 'bootstrap.sh'
property 'svexecutable' set on 'bootstrap.sh'
Do you see the same behaviour also on your systems?
Thanks, Jože
|
This is an archived mail posted to the Subversion Dev mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.