Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Proper way to add svn:executable

I have a few files that have been executable before svn adding them. They have the svn:executable property set. Now, a few other files were checked in without the executable bit do not have it, and I want to set the svn:executable property:

$ svn propset svn:executable on *.cgi 

Then I check the status and even the files with the svn:executable have been modified:

$ svn diff Property changes on: a.cgi ___________________________________________________________________ Modified: svn:executable    -     + *   Property changes on: b.cgi ___________________________________________________________________ Added: svn:executable    + * 

a.cgi should not be modified. I want to add the svn:executable bit to be set in the same way as it is on the other files, but can't figure out the command to do it.

like image 469
Jake Avatar asked Apr 22 '11 15:04

Jake


People also ask

Where is svn EXE?

C:\Program Files (x86)\Subversion\bin\svn.exe.

How do you check if Tortoise SVN command line is installed?

Locate TortoiseSVN and click on it. Select "Change" from the options available. Refer to this image for further steps. After completion of the command line client tools, open a command prompt and type svn help to check the successful install.

What is svn property?

Subversion allows users to invent arbitrarily named versioned properties on files and directories, as well as unversioned properties on revisions. The only restriction is on properties whose names begin with svn: (those are reserved for Subversion's own use).


1 Answers

You are right to use the svn property editing commands. The property is svn:executable.

To add the "executable bit" in svn

svn propset svn:executable on <list of files> 

To remove the "executable bit" in svn

svn propdel svn:executable <list of files> 

The SVN documentation for this is located here.

As far as not modifying the executables, you are not modifying the executable (a checksum will verify that), but you are modifying the SVN repository. Remember that SVN revisions file systems, not just files; so, a modification of the permission bits will increase the SVN revision number, even if it's just a modification of a file's properties (and not a modification of the file itself).

like image 174
Edwin Buck Avatar answered Oct 16 '22 08:10

Edwin Buck