Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set "execute" attribute to a file and check it in SVN from Windows?

I have SVN configured in Linux at a different location and I need to check-in a shell script to SVN with executable attribute ON from Windows. I use Bamboo as CI, which checks out sources from SVN and does the periodic build. It throws error that shell script is not executable. (Bamboo run as root).

What is the best way to set the executable permission?

I don't use any SVN client and use eclipse to check-in and check-out. If SVN client is the only, how do I find a version that is compatible with SVN plugin that I use in eclipse. I had a compatibility problem earlier. When I checked-in a file from Tortoise, I couldn't checkout that file from Eclipse.

like image 579
Mark Avatar asked Jul 29 '11 13:07

Mark


People also ask

How to change file permissions in svn?

How to change default repository access permissions: Select the SVN repo you would like to protect directories within from the tools dropdown menu. Go to the Settings sub-tab on the SVN repository tab, then click the Protected Directories link on the left side.

Does svn store file permissions?

Graham, svn doesn't store permissions. Your only option is to wrap your call to svn in a script. The script should call svn with its arguments, then set the permissions afterward. Depending on your environment, you might need to call your script svn and tweak your PATH to ensure it gets called.

Where are svn properties stored?

They are stored in the svn:log property. You can add the --revprop flag to the various property commands to view & edit this property.


1 Answers

svn propset svn:executable "*" someScript

The syntax is propset key value so svn:executable is the key and "*" is the value

someScript is the filename

like image 102
vinnyjames Avatar answered Oct 06 '22 22:10

vinnyjames