[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[PATCH] mark executable files as such in svn_load_dirs

From: Alexey Mahotkin <alexm_at_hsys.msk.ru>
Date: 2003-10-01 20:51:45 CEST

Hello,

While importing GNU trees, we should mark `configure' and friends as
executable files.

2003-10-01 Alexey Mahotkin <alexm@hsys.msk.ru>

        * svn_load_dirs:
        Add svn:executable property to executable files during import.

Index: svn_load_dirs
===================================================================
--- svn_load_dirs (revision 70)
+++ svn_load_dirs (working copy)
@@ -964,6 +964,17 @@
                     last if $property->{control} eq 'break';
                   }
               }
+
+ # mark executable files as such
+ if (($source_type eq 'f') && (-x $source_path)) {
+ print "Adding to `$source_path' property `svn:executable' with value `yes'\n";
+ my $property = {
+ name => 'svn:executable',
+ value => 'yes',
+ };
+ push (@{$add_files{$source_path}{properties}},
+ $property);
+ }
           }
 
         # Now make sure the file or directory in the source directory

Thank you,

--alexm

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Oct 1 21:17:27 2003

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.