“读锁定失败” 在cvs注释

发布于 2024-07-06 20:40:38 字数 646 浏览 5 评论 0原文

我正在尝试使用 cvs 注释。 这是我运行的:

cvs -d /mycvs/cvsroot/ annotate "projects/dg/SomeClass.java"

但是,我收到以下错误:

cvs annotate: failed to create lock directory for `/mycvs/cvsroot/projects/dg^M' (/mycvs/cvsroot/projects/dg^M/#cvs.lock): No such file or directory
cvs annotate: failed to obtain dir lock in repository `/mycvs/cvsroot/projects/dg^M'
cvs [annotate aborted]: read lock failed - giving up

这是什么意思? 我怎样才能克服这个问题? 它可能与我在错误消息中看到的 ^M 字符有关吗?

当我使用 eclipse 进行注释时,它起作用了。 我检查了目录“/mycvs/cvsroot/projects/dg”存在。 当我以 root 身份登录时也会发生该错误,因此可能也不是权限问题。

我使用的是CentOS

I am trying to use cvs annotate. This is the what I run:

cvs -d /mycvs/cvsroot/ annotate "projects/dg/SomeClass.java"

However, I get the following error:

cvs annotate: failed to create lock directory for `/mycvs/cvsroot/projects/dg^M' (/mycvs/cvsroot/projects/dg^M/#cvs.lock): No such file or directory
cvs annotate: failed to obtain dir lock in repository `/mycvs/cvsroot/projects/dg^M'
cvs [annotate aborted]: read lock failed - giving up

What does this mean? How can I overcome this problem? Could it be related to the ^M character I see at the error message?

When I use eclipse to do the annotation it works.
I checked and the directory `/mycvs/cvsroot/projects/dg' exists. The error also occurs when I'm logged in as root, so probably it's not a permissions issue either.

I am using CentOS

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

江湖正好 2024-07-13 20:40:38

从你的描述来看,我猜你对流浪^M的理解是正确的。 您使用什么操作系统? 如果是 Windows,您使用的是 cygwin 吗? 我看到您正在使用直接文件系统访问存储库。 您是否可以考虑设置一个像 pserver 这样的服务器访问机制来看看是否有帮助?

From your description, I would guess that you've got it right with the stray ^M. What OS are you using? If Windows, are you using cygwin? I see you're using direct filesystem access to the repository. Might you consider setting up a server access mechanism like pserver to see if that helps?

烦人精 2024-07-13 20:40:38

您可能想尝试使用“本地”存储库:

cvs -d :local:/mycvs/cvsroot/ annotate "projects/dg/SomeClass.java"

并查看是否可以解决问题。

我经常使用 cygwin 和 cvs,虽然有时会收到此错误消息:
“cvs [签出中止]:无法重命名文件 CVS/Entries.Backup 到 CVS/Entries:权限被拒绝”我只是重新运行签出,看起来很好。 我调查了这个错误,它与 Windows 中的文件系统争用有关(防病毒软件,IIRC)。

You might want to try using the 'local' repository:

cvs -d :local:/mycvs/cvsroot/ annotate "projects/dg/SomeClass.java"

and see if that solves the issue.

I use cygwin and cvs regularly, and while I sometimes get this error message:
"cvs [checkout aborted]: cannot rename file CVS/Entries.Backup to CVS/Entries: Permission denied" I just re-run the checkout and it seems fine. I looked into this error and it was related to contention for the filesystem in windows (antivirus stuff, IIRC).

赢得她心 2024-07-13 20:40:38

您似乎正在使用 CygWin 进行 CVS,但使用使用 Windows 行结束符的文本编辑器触摸了 CVS/根文件,或者使用使用 Windows 行结束符的 CVS 客户端进行了初始签出。 尽管您可以将客户端混合并匹配到同一存储库,但有时将客户端 (CygWin/WinCVS) 与相同的工作副本混合并匹配是不好的。

It appears that you are using CygWin for CVS, but touched your CVS/Root file with a text editor that uses Windows line ends, or did the initial checkout with a CVS client that uses Windows line ends. Although you can mix and match clients to the same repository, it is sometimes bad to mix and match clients (CygWin/WinCVS) with the same working copy.

ヅ她的身影、若隐若现 2024-07-13 20:40:38

我用cygwin也遇到这个问题。 事实上,我可以使用 eclipse cvs 工具对 pserver 进行身份验证。 然而,cygwin...没那么多。

以下是一些可能相关的帖子:
http://www.sat-industry.net/forums/dreambox-development/19893-checkout-failed-create-lock-directory.html" sat-industry.net/forums/dreambox-development/19893-checkout-failed-create-lock-directory.html

摘要:添加环境变量:CVS_RSH=

ssh mooreds.com/wordpress/archives/000234" rel="nofollow noreferrer">http://www.mooreds.com/wordpress/archives/000234
摘要:您可能存在 CVS 服务器权限的配置问题。

顺便说一句,这些都不适合我。

I too am experiencing this problem with cygwin. In fact, I am able to authenticate against a pserver using eclipse cvs tools. However, cygwin... not so much.

Here are a couple of posts that might be related:
http://www.sat-industry.net/forums/dreambox-development/19893-checkout-failed-create-lock-directory.html

summary: add an environment variable: CVS_RSH=ssh

http://www.mooreds.com/wordpress/archives/000234
summary: you may have a config problem with the permissions of the CVS server.

Neither of these worked for me btw.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文