CVS:获取文件标记的时间和日期

发布于 2024-08-24 10:37:11 字数 85 浏览 2 评论 0原文

我正在使用CVS。我签入了一个文件,然后对其进行了标记。有什么方法可以获取标记的日期吗?我尝试运行 cvs log,发现了签入的日期,但没有找到标记的日期。

I am using CVS. I checked in a file, then later tagged it. Is there any way to get the date when it was tagged? I tried running cvs log and I found the date when it was checked in, but not when it was tagged.

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

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

发布评论

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

评论(1

疯到世界奔溃 2024-08-31 10:37:11

我可以提出的唯一建议是您启用历史记录或设置一些东西来使用 taginfo。也许对您没有帮助,但可能对其浏览相同问题或抢占先机的其他人有帮助。

如果您启用了历史记录(CVSROOT/history 文件的存在意味着它已启用),您可以尝试使用以下命令:

cvs History -a -T

这将显示已发生的标记。然而,由于此命令解析文件,因此相对于存储库历史记录的大小(即文件和活动的数量),它的复杂度为 O(n)。所以它可能会变得有点慢。您可以在这里找到更多信息: http://cvsbook.red-bean.com/cvsbook.html#History%20--%20A%20Summary%20Of%20Repository%20Activity

如果你认为你可以做得更好,那么你可以添加一个钩子到CVSROOT/taginfo 文件。您可以在这里按照您喜欢的方式记录您的标记活动。请在此处查看更多信息:http://cvsbook.red- bean.com/cvsbook.html#The%20taginfo%20File

The only suggestions I can make involve you having enabled history logging or setting up something to use taginfo. Maybe not of help to you but could be for someone else browsing the same problem or pre-empting it.

If you have the history logging enabled (existence of the CVSROOT/history file means it's enabled) you might be able to try using the following:

cvs history -a -T

This will show you the tagging that has occurred. However since this command it parsing a file it's O(n) with respect to the size of the repository history (i.e. number of files and activities). So it can get a bit slow. You can find out more here: http://cvsbook.red-bean.com/cvsbook.html#History%20--%20A%20Summary%20Of%20Repository%20Activity

If you think you can do better then you can add a hook into the CVSROOT/taginfo file. Here you can log your tagging activities however you like. Take a look here for more info: http://cvsbook.red-bean.com/cvsbook.html#The%20taginfo%20File

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