Welcome to WebmasterWorld Guest from 18.104.22.168 , register , free tools , login , search , pro membership , help , library , announcements , recent posts , open posts Become a Pro Member
svn permissions problem between mac and windows jamie msg:4215615 11:18 am on Oct 12, 2010 (gmt 0) hi, 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
lammert msg:4215712 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. jamie msg:4215876 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 lammert msg:4215968 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!
jamie msg:4216015 5:11 am on Oct 13, 2010 (gmt 0)
ha! well spotted and thank you :)