CVS 命令已停止在 MacOS X 终端中工作

发布于 2024-08-07 06:55:52 字数 657 浏览 2 评论 0原文

今天,几个月来我第一次需要在 Mac (MacOS X 10.4) 上的命令行上使用 CVS,并发现这些命令不再起作用。回复:

cvs diff -u

我得到:

cvs diff: CVSROOT requires a path spec:
cvs diff: :(gserver|kserver|pserver):[[user][:password]@]host[:[port]]/path
cvs diff: [:(ext|server):][[user]@]host[:]/path
cvs diff: in directory .:
cvs diff: ignoring CVS/Root because it does not contain a valid root.
cvs diff: No CVSROOT specified!  Please use the `-d' option
cvs [diff aborted]: or set the CVSROOT environment variable.

但是,我很高兴在同一台机器上使用 SmartCVS 7.0.8。我所在的目录包含一个 CVS 文件夹,其中有一个根文件,看起来与我期望的完全一样。

谁能建议当 SmartCVS 仍然完美运行时,命令行 CVS 如何停止工作?

Today, for the first time in several months, I needed to use CVS on the command line on my Mac (MacOS X 10.4), and discovered that the commands no longer work. In response to:

cvs diff -u

I got:

cvs diff: CVSROOT requires a path spec:
cvs diff: :(gserver|kserver|pserver):[[user][:password]@]host[:[port]]/path
cvs diff: [:(ext|server):][[user]@]host[:]/path
cvs diff: in directory .:
cvs diff: ignoring CVS/Root because it does not contain a valid root.
cvs diff: No CVSROOT specified!  Please use the `-d' option
cvs [diff aborted]: or set the CVSROOT environment variable.

However, I am happily using SmartCVS 7.0.8 on the same machine. The directory I was in contains a CVS folder, with a Root file that looks exactly as I'd expect it to.

Can anyone suggest how command line CVS could have stopped working, when SmartCVS is still functioning perfectly?

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

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

发布评论

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

评论(2

泡沫很甜 2024-08-14 06:55:52

我已经找到问题了。 SmartCVS 创建的根文件中包含反斜杠而不是正斜杠。如果我编辑根文件以放入正斜杠,则“cvs diff”工作正常。 (另一方面,SmartCVS 现在拒绝识别我的源代码树的存在。)

I've found the problem. SmartCVS is creating Root files with a back slash in them instead of a forward slash. If I edit the Root file to put in a forward slash instead, 'cvs diff' works fine. (SmartCVS, on the other hand, now refuses to recognise the existence of my source tree.)

月亮是我掰弯的 2024-08-14 06:55:52

很可能您的 bashrc 或 mac-terminal-equivalent(我是 Linux 用户)没有出于某种原因设置 CVSROOT 的行?

export CVSROOT=:ext:[email protected]:/home/cvs

没有这个集合会引发该错误。

Most likely your bashrc or mac-terminal-equivalent ( Im a linux user ) does not have the line which sets CVSROOT for whatever reason?

export CVSROOT=:ext:[email protected]:/home/cvs

Not having this set will provoke that error.

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