How to pop accurev stream by date?

I want to do some analysis on some old code and should be able to release the stream from a specific date. I don’t want to create a snapshot or workspace, I just need the source code from six months ago. Is there an easy way to do this?

At this point in my research, I think I might need the hist command to get the last transaction with a specific date, create a retransmission, and then update this transaction number. However, when I do this, I get the error "This transaction is out of range" in the update command.

+7
accurev
source share
4 answers

create a child stream with a time rule. Then pop out of it. You can do this from the GUI. Here is 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 in the general case, you can reuse / reuse in other places to do your own tooltips in time. Thus, for most poart you only need one stream (for example, you do not need a time stream for each story based pop).

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

HTH - dave

+8
source share

By the way, AccuRev 4.9 adds the functionality of "pop -t" and indicates a point at a time to fill in the "how" code. This should be about what you are looking for in the future ...

+10
source share

You can do this from the command line without creating a stream as follows

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

This will extract all the files from the stream_name stream, as it was on November 1, 2012, and put them in c:\MyDirectory

The -t option can also accept a transaction number, so you can specify -t 12345 . The final parameter \.\ Means root - you can specify any path in Accurev, for example \.\MyProject\src

+4
source share

Similar to what Dave described, AccuRev has a blog post that discusses this topic in more detail in this thread:

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

Cheers, ~ James

+2
source share

All Articles