homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / WebmasterWorld / The Macintosh Webmaster
Forum Library, Charter, Moderators: travelin cat

The Macintosh Webmaster Forum

svn permissions problem between mac and windows

 11:18 am on Oct 12, 2010 (gmt 0)


there doesn't seem to be a fix for this, but i thought i'd ask to see if anyone here has hacked a solution.

i have several working copies of svn repositories on my mac. i access/edit it both from win vista and from the mac.

everytime windows makes changes it sets the DOS read-only flag on some of the .svn files.

windows (using tortoisesvn) knows how to remove this flag before committing/updating. however macosx doesn't because unix doesn't have an equivalent flag.

this means my mac svn clients return permission errors and can't commit, update, etc.

there is a solution. running
chflags -R nouchg . on the svn working copy. this works everytime.

but MY problem is i have about 10 different svn repos which i work on regularly. ssh-ing over to the mac and running this command on every repo is a hassle.

my latest solution is to put this command in a bash file and loop through all repos at once. but it still requires me manually running that bash script before i want to work from the mac.

has anyone come across this problem before and have any other workarounds, which don't require manual commands to fix?

many thanks



 2:32 pm on Oct 12, 2010 (gmt 0)

A workaround could be to create a crontab file on your mac which contains the
chflags -R nouchg command for all the svn working directories and run this command automatically lets say every ten minutes.

 9:01 pm on Oct 12, 2010 (gmt 0)

hi lammert,

that's one of the solutions i was thinking about this afternoon.

i've got it running every hour now which seems to be enough. (i love the 'nix-ness of mac which allows this sort of thing!)

many thanks for reply


 2:24 am on Oct 13, 2010 (gmt 0)

Good to hear it is a workable solution.
Success with your projects and congratulations with reaching the four digits post count range!


 5:11 am on Oct 13, 2010 (gmt 0)

ha! well spotted and thank you :)

Global Options:
 top home search open messages active posts  

Home / Forums Index / WebmasterWorld / The Macintosh Webmaster
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved