Preventing TortoiseSVN from marking files in the .svn directory as read-only
I am using TortoiseSVN for Windows. Upon commit, TortoiseSVN marks some of the internal files in the ".svn" subdirecto开发者_运维问答ry as read-only. How can I prevent this? It prevents Windows Live Mesh from synchronizing.
All files within the .svn dirs are handled by the Subversion library, meaning all svn clients (not just TSVN) mark files in there as readonly. Even the .svn folder itself is marked as readonly and hidden. There's a reason why those files are marked as readonly and you must not mess with that. SVN relies on that.
Update: The fact that you're actually trying to sync a working copy implies that you're using version control completely wrong. It's called a working copy because you should have a copy of it on every station you work with. And you have to use a separate working copy. Not syncing the same working copy.
So the previous version of Windows Sync... you see what's the problem here. Choose a different sync technology.
The .svn directories are not yours to play with, think of them like the Windows files that are read-only and security protected.
You have a few options:
- don't sync your WCs. do an individual checkout on each computer.
- sync the WCs and perform an update after each sync to refresh the .svn files.
- manually copy the WC from one computer to the other - this works fine in Explorer for example.
- delete the destination directory before syncing.
- Stop using crappy sync tools and get a better one. Google says there are too many to list here, but there are a couple of comparisons available on the web.
精彩评论