如何按日期弹出accurev流?
我想对一些旧代码进行一些分析,并且需要能够弹出特定日期的流。我不想创建快照或工作区,我只需要六个月前的所有源代码。有简单的方法吗?
目前,在我的研究中,我认为我可能需要使用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
顺便说一句,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...
创建具有时间规则的子流。然后从中弹出。您可以通过 GUI 来完成此操作。这是 CLI。
如果您将其命名为通用名称,则可以在其他地方重新设置父级/重用来执行基于时间的弹出操作。因此,对于大多数情况,您只需要一个流(例如,您不需要为每个基于历史的流行音乐提供时间流)。
HTH-戴夫
create a child stream with a time rule. Then pop from that. You can do it from the GUI. Here's the CLI.
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).
HTH - dave
您可以从命令行执行此操作,而无需创建流,如下所示。
这将从流
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
This will retrieve all the files from the stream
stream_name
as they were on Nov 1st 2012 and place them intoc:\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
与 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