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

Re: svn:executable is ignored on checkout form Windows to Samba share

From: Thorsten Schöning <tschoening_at_am-soft.de>
Date: Wed, 28 Nov 2012 22:07:34 +0100

Guten Tag Daniel Shahaf,
am Mittwoch, 28. November 2012 um 21:36 schrieben Sie:

> And that's one of the reasons behind the standard recommendation not to
> access a single working copy from multiple systems, especally windows
> and non-windows.

Thanks, looks like I would really be better off changing some habits.

> You might try 'revert' or 'cleanup'.

I decided for a little script like the following which just adds the
execute permissions for needed files and should be faster.

# Iterator given directories, search files, change permissions:
for dir in "$@"
do
  if [ ! -d "$dir" ]; then
    continue
  fi

  # Recursively find all Perl files which don't have any execute bit set:
  for file in $(find "$dir" -type f -iname "*.pl" ! -perm /111 -exec echo {} \;)
  do
    # svn:executable is a flag which stores * as value:
    if [ "`svn propget svn:executable "$file" 2> /dev/null`" ]; then
      chmod ug+x "$file"
    fi
  done
done

Mit freundlichen Grüßen,

Thorsten Schöning

-- 
Thorsten Schöning       E-Mail:Thorsten.Schoening_at_AM-SoFT.de
AM-SoFT IT-Systeme      http://www.AM-SoFT.de/
Telefon...........05151-  9468- 55
Fax...............05151-  9468- 88
Mobil..............0178-8 9468- 04
AM-SoFT GmbH IT-Systeme, Brandenburger Str. 7c, 31789 Hameln
AG Hannover HRB 207 694 - Geschäftsführer: Andreas Muchow
Received on 2012-11-28 22:08:07 CET

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.