CVS 命令已停止在 MacOS X 终端中工作
今天,几个月来我第一次需要在 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我已经找到问题了。 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.)
很可能您的 bashrc 或 mac-terminal-equivalent(我是 Linux 用户)没有出于某种原因设置 CVSROOT 的行?
没有这个集合会引发该错误。
Most likely your bashrc or mac-terminal-equivalent ( Im a linux user ) does not have the line which sets CVSROOT for whatever reason?
Not having this set will provoke that error.