如何按日期弹出accurev流?

发布于 2024-09-14 13:18:52 字数 186 浏览 8 评论 0原文

我想对一些旧代码进行一些分析,并且需要能够弹出特定日期的流。我不想创建快照或工作区,我只需要六个月前的所有源代码。有简单的方法吗?

目前,在我的研究中,我认为我可能需要使用 hist 命令来获取给定日期的最新交易,创建引用树,然后更新该交易编号。但是,当我这样做时,我在更新命令上收到“给定的更新事务超出范围”错误。

I want to do some analysis on some old code and need to be able to pop a stream as of a specific date. I don't want to create a snapshot or workspace, I just need all the source code as of six months ago. Is there an easy way to do it?

At this point in my research I'm thinking I might need to use the hist command to get the latest transaction as of a given date, create a reftree, then do an update to that transaction number. However, when I do that I get a "Given update transaction out of range" error on the update command.

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

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

发布评论

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

评论(4

未蓝澄海的烟 2024-09-21 13:18:52

顺便说一句,AccuRev 4.9 添加了“pop -t”功能,并指定一个时间点来填充代码“as of”。这应该可以解决您未来的需求......

Incidentally, AccuRev 4.9 adds the functionality to "pop -t" and specify a point-in-time to populate the code "as of". This should address what you're looking for going forward...

半透明的墙 2024-09-21 13:18:52

创建具有时间规则的子流。然后从中弹出。您可以通过 GUI 来完成此操作。这是 CLI。

$ mkdir code && cd code
$ accurev mkstream -s <Child> -b <Parent> -t "<Time>"   # format: YYYY/MM/DD HH:MM:SS
$ accurev pop -R -v <Child> -L . .

如果您将其命名为通用名称,则可以在其他地方重新设置父级/重用来执行基于时间的弹出操作。因此,对于大多数情况,您只需要一个流(例如,您不需要为每个基于历史的流行音乐提供时间流)。

$ accurev chstream -s <Child> -b <NewParent> -t "<NewTime>"

HTH-戴夫

create a child stream with a time rule. Then pop from that. You can do it from the GUI. Here's the CLI.

$ mkdir code && cd code
$ accurev mkstream -s <Child> -b <Parent> -t "<Time>"   # format: YYYY/MM/DD HH:MM:SS
$ accurev pop -R -v <Child> -L . .

If you name it generically, you can reparent/reuse elsewhere to do your time-based pops. So for the most poart, you only need one stream (e.g. you don't need a time stream for every hist based pop).

$ accurev chstream -s <Child> -b <NewParent> -t "<NewTime>"

HTH - dave

拔了角的鹿 2024-09-21 13:18:52

您可以从命令行执行此操作,而无需创建流,如下所示。

accurev pop -R -v stream_name -L c:\MyDirectory -t "2012/11/01 00:00:00" \.\

这将从流 stream_name 中检索 2012 年 11 月 1 日的所有文件,并将它们放入 c:\ MyDirectory

-t 参数还可以采用事务编号,因此您可以指定 -t 12345。最后一个参数 \.\ 表示根目录 - 您可以在 Accurev 中指定任何路径,例如 \.\MyProject\src

You can do this from the command line without having to create a stream as follows

accurev pop -R -v stream_name -L c:\MyDirectory -t "2012/11/01 00:00:00" \.\

This will retrieve all the files from the stream stream_name as they were on Nov 1st 2012 and place them into c:\MyDirectory

The -t parameter can also take a transaction number, so you could specify -t 12345. The final parameter \.\ means the root - you can specify any path in Accurev, such as \.\MyProject\src

暮年慕年 2024-09-21 13:18:52

与 Dave 所描述的类似,AccuRev 有一篇博客文章更深入地讨论了同一主题:

http://www.accurev.com/blog/2007/10/24/accurev-timesafe-makes-retriving-code-from -anywhen-easy/

干杯,
〜詹姆斯

Similar to what Dave has described, AccuRev has a blog post that discusses this same topic a bit more in-depth:

http://www.accurev.com/blog/2007/10/24/accurev-timesafe-makes-retrieving-code-from-anywhen-easy/

Cheers,
~James

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