You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Cem Karan <CK...@arl.army.mil> on 2005/06/06 14:00:18 UTC

Is it safe to delete the svn:executable property on text files?

I just discovered that a bunch of my .c and .h files have the  
svn:executable property when they don't need it.  Is it possible to  
SAFELY delete the svn:executable property?   As in, will subversion  
do anything funny with the files that I should be worried about?   
Also, is there any point to making this conversion?  I mean, will it  
make the commits any smaller, or is this much ado about nothing?

Thanks,
Cem Karan

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Is it safe to delete the svn:executable property on text files?

Posted by Nicolas Goutte <ni...@snafu.de>.
On Monday 06 June 2005 16:00, Cem Karan wrote:

The following is "as far as I know".

> I just discovered that a bunch of my .c and .h files have the
> svn:executable property when they don't need it.  Is it possible to
> SAFELY delete the svn:executable property?   As in, will subversion

You can use
svn propdel svn:executable

> do anything funny with the files that I should be worried about?

I have never heard that something funny has happened.

> Also, is there any point to making this conversion?  I mean, will it
> make the commits any smaller, or is this much ado about nothing?

I would suggest the conversion, just for the sakeness of being correct. (It 
has an impact on programs like mc, that do not want to display an executable 
file.)

As for a smaller commit, I am not sure what you mean. Your local copy will be 
smaller indeed, as the property will go away. (So if you have many files, it 
could sum up.)

Have a nice day!

>
> Thanks,
> Cem Karan
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Is it safe to delete the svn:executable property on text files?

Posted by Theo Van Dinter <fe...@kluge.net>.
On Mon, Jun 06, 2005 at 10:00:18AM -0400, Cem Karan wrote:
> svn:executable property when they don't need it.  Is it possible to  
> SAFELY delete the svn:executable property?   As in, will subversion  
> do anything funny with the files that I should be worried about?   

It'll make the file not executable...  That's about it.

> Also, is there any point to making this conversion?  I mean, will it  
> make the commits any smaller, or is this much ado about nothing?

Yes and no.  I'm of the opinion that even insignificant errors should be
fixed.  If the files aren't supposed to be executable, they shouldn't be.

If you don't care about such things, I don't think there's really any other
benefit to removing the property.

-- 
Randomly Generated Tagline:
"Prostetnic Vogon Jeltz smiled very slowly. This was done 
 not so much for effect as because he was trying to remember 
 the sequence of muscle movements. "

Re: Is it safe to delete the svn:executable property on text files?

Posted by Kevin Puetz <pu...@puetzk.org>.
David Ripton wrote:

> For .c and .h files, it's just a matter of cleanliness, since they're
> not usefully executable even with execute permission set.  (If you try
> running one on Unix, you'll get a "command not found" almost all of the
> time.  Unless you've written a C / shell quine, which you're highly
> unlikely to do accidentally.)

<grin>Two is easy, it's getting to 3+ that's a bit challenging</grin>

cat /*dev/null; echo "Happy New Year"\!
cat <<c*/ /*dev/null | cat > /dev/null
c */ () {} /*
c */ main() { cat(); printf("Happy New Year!\n"); } /*
17 format(' Happy New Year!')
                write (6,17)
                stop
                end
c This program runs in four languages with the same effect.
c The languages are C, Fortran, C Shell and Bourne Shell.
c Written by Vadim Antonov, avg@hq.demos.su
c*/ 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Is it safe to delete the svn:executable property on text files?

Posted by David Ripton <dr...@ripton.net>.
On 2005.06.06 10:00:18 +0000, Cem Karan wrote:
> I just discovered that a bunch of my .c and .h files have the  
> svn:executable property when they don't need it.  Is it possible to  
> SAFELY delete the svn:executable property?   

Yes.

> As in, will subversion  
> do anything funny with the files that I should be worried about?   

The only magic here is setting or unsetting execute permission on the
file in the working copy on checkout, based on the value of the
property.

> Also, is there any point to making this conversion?  I mean, will it  
> make the commits any smaller, or is this much ado about nothing?

It's not going to make a noticable performance difference either way.

For .c and .h files, it's just a matter of cleanliness, since they're
not usefully executable even with execute permission set.  (If you try
running one on Unix, you'll get a "command not found" almost all of the
time.  Unless you've written a C / shell quine, which you're highly
unlikely to do accidentally.)

-- 
David Ripton    dripton@ripton.net

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org