在 CVS 存储库中签出一个文件的多个修订版

发布于 2024-08-29 19:25:11 字数 291 浏览 6 评论 0原文

要结帐,我使用以下命令

CVSROOT="/home/projects/stuff/" cvs co mywork

和 mywork 目录我有文本文件和图片,即看起来有些东西 特别是

- paper.tex
- pic1.jpg
- pic2.jpg
etc.

,我有兴趣检查 paper.tex 随着时间的推移的所有版本。 有没有办法立即检查该文件的所有修订版本?或者哪个命令 我可以用来查看何时对该特定文件进行了修订吗?

非常感谢您的帮助, 安德鲁

To checkout I use the following command

CVSROOT="/home/projects/stuff/" cvs co mywork

with the mywork directory I have text files as well as pictures, i.e., looks something
like this

- paper.tex
- pic1.jpg
- pic2.jpg
etc.

In particular, I am interested in checking out all the version of paper.tex over time.
Is there a way how I can check all revisions of this file out at once? Or which command
can I use to see when revision have been made to this particular file?

many thanks for your help,
Andrew

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

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

发布评论

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

评论(4

忆梦 2024-09-05 19:25:11

使用 TortoiseSVN,只需右键单击文件日志并选择TortoiseSVN/显示日志。这将仅显示文件被修改的修订版本。然后,您可以右键单击每个修订版本并选择将修订版本保存到...

With TortoiseSVN, just right-click the file log and select TortoiseSVN/Show Log. That will show only the revisions where the file was modified. Then you can right-click on each revision and select Save revision to...

要查看所有修订版,您可以使用 cvs log 命令

cd mywork
cvs log paper.tex

要获取所有命令的列表,请使用:

cvs --help-commands

要获取特定命令的帮助,请使用 -H,例如。对于 log 命令:

cvs -H log

假设您有 bash 或其他一些功能强大的 shell,您可以检查一个文件随时间的所有修订,如下所示:

FN="paper.tex" && for REV in `cvs log $FN | grep "^revision " | cut -c10-`; do cvs co -p -r $REV $FN > "$FN-rev$REV"; done

To see all revision you can use the cvs log command

cd mywork
cvs log paper.tex

To get a list of all commands use:

cvs --help-commands

And to get help on a specific command use -H, eg. for the log command:

cvs -H log

Assuming you have a bash or some other powerful shell, you can check out all revision of one file over time like this:

FN="paper.tex" && for REV in `cvs log $FN | grep "^revision " | cut -c10-`; do cvs co -p -r $REV $FN > "$FN-rev$REV"; done
眼趣 2024-09-05 19:25:11

似乎您需要存储库的镜像,然后尝试 cvssuck http://freecode.com/projects/cvssuck

Seems you need mirror of the repo, then try cvssuck http://freecode.com/projects/cvssuck

我不会写诗 2024-09-05 19:25:11

您可以使用此命令显示文件的所有修订版本:

cvs rlog -N mywork/paper.tex

这将显示文件的所有版本和每个修订的日期。一旦你知道你想要什么版本,你可以使用这个命令来检查它:

cvs co -rX.Y mywork/paper.tex

You can use this command to display all revisions of a file:

cvs rlog -N mywork/paper.tex

This will display all the versions and the date of each revision of the file. Once you know what revision you want you can use this command to check it out:

cvs co -rX.Y mywork/paper.tex

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