为什么 SVN 在签出或更新后将我的文件设为只读? [英] Why SVN makes read-only my files after check out or update?

查看:96
本文介绍了为什么 SVN 在签出或更新后将我的文件设为只读?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用服务器的标准配置,没有任何锁定,我的文件在每次签出或更新到工作副本后都是只读的.我必须将它们设置为非只读才能继续工作,但除此之外不应该发生这种情况,这很不舒服.

Working with an standard configuration of the server, without any lock, my files are read-only after every check out or update to the working copy. I have to set them to be not read-only to continue working, but besides this shouldn't be happening, it's uncomfortable.

有人知道如何避免这种行为吗?

Anybody knows how to avoid this behavior?

编辑

对评论的回答:

  • 平台:Windows 32 位绑定,没有 Apache + TortoisseSvn.
  • 文件在第一次签入存储库时没有被标记为只读(当然!如果是这样,这个问题就很愚蠢了)
  • 我不认为这会是不兼容的,因为它运行良好,直到它不是...
  • 未在文件上设置 svn:needs-lock 属性.
  • 我在 Active Directory 环境中的 WinXP 上使用本地 NTFS 文件系统(如果有的话).

顺便说一句,svn+tortoissesvn 一开始运行良好,但在某些时候它停止了.

By the way, svn+tortoissesvn was working fine in the beginning, but at some point it stopped to do that.

推荐答案

是否为相关文件设置了 svn:needs-lock 属性?

Is the svn:needs-lock property set on the files in question?

http://svnbook.red-bean.com/en/1.5/svn.advanced.locking.html

http://svnbook.red-bean.com/en/1.5/svn.ref.properties.html

更新

AFAIK,如果设置了 svn:needs-lock,SVN 只会将文件设置为只读.如果此属性确实未设置,则系统上的其他内容可能会干扰文件.您可以使用 Process Monitor 来查看文件并查看谁更改了它们.

AFAIK, SVN will only set files as read-only if svn:needs-lock is set. If this property truly is not set, then something else on your system may be messing with the files. You could use Process Monitor to watch the files and see who changes them.

这篇关于为什么 SVN 在签出或更新后将我的文件设为只读?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆