Welcome to WebmasterWorld Guest from 54.160.131.144

Forum Moderators: travelin cat

Message Too Old, No Replies

svn permissions problem between mac and windows

     

jamie

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

WebmasterWorld Senior Member 10+ Year Member



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

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

WebmasterWorld Senior Member lammert is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



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

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

WebmasterWorld Senior Member 10+ Year Member



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

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

WebmasterWorld Senior Member lammert is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



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

jamie

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

WebmasterWorld Senior Member 10+ Year Member



ha! well spotted and thank you :)
 

Featured Threads

Hot Threads This Week

Hot Threads This Month