homepage Welcome to WebmasterWorld Guest from 54.145.183.126
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / WebmasterWorld / The Macintosh Webmaster
Forum Library, Charter, Moderators: travelin cat

The Macintosh Webmaster Forum

    
svn permissions problem between mac and windows
jamie

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 4215613 posted 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

WebmasterWorld Senior Member lammert us a WebmasterWorld Top Contributor of All Time 5+ Year Member



 
Msg#: 4215613 posted 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

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 4215613 posted 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

WebmasterWorld Senior Member lammert us a WebmasterWorld Top Contributor of All Time 5+ Year Member



 
Msg#: 4215613 posted 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

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 4215613 posted 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