CVS 历史......无法让它工作

发布于 2024-08-11 04:30:58 字数 291 浏览 3 评论 0原文

一个非常尴尬的问题:我已经指定了我的 CVS 根目录,并且在 这个 CVS 根目录我有一个存储库,我们称之为 REP。在 REP 中,我有 一个文件 TEST.TXT 我想在其中查看它的所有修订版。很遗憾, 我无法完成这项工作,我尝试了以下操作:

cvs history TEST.TXT
cvs history /REP/TEST.TXT
cvs history REP/TEST.TXT

有人知道我做错了什么吗?我是否错过了告诉 CVS 哪个存储库的命令 我指的是?

非常感谢!

An really embarrassing question: I have specified my CVS root, and within
this CVS root I have a repository, let call it REP. Within REP, I have
a file TEST.TXT where I wanna see all revisions of it. Unfortunately,
I cant get this work, i tried the following:

cvs history TEST.TXT
cvs history /REP/TEST.TXT
cvs history REP/TEST.TXT

Anyone an idea what I am doing wrong? Do i miss a command that tells CVS which repository
I am referring to?

Many thanks!

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

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

发布评论

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

评论(1

陌生 2024-08-18 04:30:58

我依稀记得 cvs...:-)

告诉 cvs 您正在使用哪个存储库的常用方法是使用 CVSROOT 环境变量。如果存储库位于本地主机上,那么这可以是完整路径名。

获取文件修订历史记录的常用方法不是检查存储库范围的历史文件,而是运行 cvs log 命令,该命令将提取给定文件的 rcs 修订信息或子树。

例子:

$ echo $CVSROOT
/home/ross/cvs
$ cvs log q.rb

RCS file: /home/ross/cvs/R3/q.rb,v
Working file: q.rb
head: 1.1
branch: 1.1.1
locks: strict
access list:
symbolic names:
    R1: 1.1.1.1
    ROSS: 1.1.1
keyword substitution: kv
total revisions: 2; selected revisions: 2
description:
----------------------------
revision 1.1
date: 2009-11-12 10:36:27 -0800;  author: ross;  state: Exp;  commitid: MlYKy8V908Lmagbu;
branches:  1.1.1;
Initial revision
----------------------------
revision 1.1.1.1
date: 2009-11-12 10:36:27 -0800;  author: ross;  state: Exp;  lines: +0 -0;  commitid: MlYKy8V908Lmagbu;
initial import
=============================================================================

I vaguely remember cvs... :-)

The usual way to tell cvs which repository you are using is with the CVSROOT environment variable. If the repository is on localhost then this can just be a full pathname.

The usual way to get revision history on a file is not to examine the repository-wide history file, but rather it is to run the cvs log command which will extract the rcs revision information for a given file or subtree.

Example:

$ echo $CVSROOT
/home/ross/cvs
$ cvs log q.rb

RCS file: /home/ross/cvs/R3/q.rb,v
Working file: q.rb
head: 1.1
branch: 1.1.1
locks: strict
access list:
symbolic names:
    R1: 1.1.1.1
    ROSS: 1.1.1
keyword substitution: kv
total revisions: 2; selected revisions: 2
description:
----------------------------
revision 1.1
date: 2009-11-12 10:36:27 -0800;  author: ross;  state: Exp;  commitid: MlYKy8V908Lmagbu;
branches:  1.1.1;
Initial revision
----------------------------
revision 1.1.1.1
date: 2009-11-12 10:36:27 -0800;  author: ross;  state: Exp;  lines: +0 -0;  commitid: MlYKy8V908Lmagbu;
initial import
=============================================================================
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文