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.
C:\Program Files (x86)\Subversion\bin\svn.exe.
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.
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).
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).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With