CVS:获取文件标记的时间和日期
我正在使用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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我可以提出的唯一建议是您启用历史记录或设置一些东西来使用
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%20FileThe 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