开发者

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:

  1. don't sync your WCs. do an individual checkout on each computer.
  2. sync the WCs and perform an update after each sync to refresh the .svn files.
  3. manually copy the WC from one computer to the other - this works fine in Explorer for example.
  4. delete the destination directory before syncing.
  5. 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.
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜