Application Delivery Management
Application Modernization & Connectivity
CyberRes by OpenText
IT Operations Management
PROBLEM/ABSTRACT:
How to interpret the output from the command "accurev hist -fev filename"?
Example output:
transaction 46626; promote; 2004/09/13 17:20:43 ; user: jason
# Header Changes
\.\Lib\Web\Global.h 138/1 (423/1)
# Added Lib Web Directory
\.\Lib\Web\Global.h 423/1 (423/1)
ancestor: (none - initial version)
eid: 19059; mdate: 2004/07/18 14:24:44 ; cksum: 2716049752; sz: 4022;
type: text
1. What is the meaning of the non-parenthesized and parenthesized numbers 138/1 (423/1)?
2. What does the existence, in the same transaction, of two lines containing \.\Lib\Web\Global.h signifies?
3. There appears to be two separate comments that apply to this transaction. How does one transaction get two comments? What operations do they each come from?
SOLUTION:
Answer #1:
The numbers seen above represent virtual and real versions of the element. 138/1 represents the virtual version of this element and (423/1) represents the real version of the element.
Here are the definitions of a real and virtual version.
real version
A version of an element, created in some user's workspace, recording a change to the contents and/or pathname of the element.
virtual version
A version of an element, created in a dynamic stream as an alias for (reference to) a previously created real version.
Answer #2:
The existence of the two lines containing \.\Lib\Web\Global.h represents the real and virtual version. Looking at the output above, you have the following two lines:
# Header Changes
\.\Lib\Web\Global.h 138/1 (423/1)
# Added Lib Web Directory
\.\Lib\Web\Global.h 423/1 (423/1)
The bottom line \.\Lib\Web\Global.h 423/1 (423/1) represents a keep operation. The number 423 is the number associated with your workspace stream. If you run the command 'accurev show -p <depot name> streams' you will see the number 423 is your wspace stream. The number 1 represents the version number.
The top line \.\Lib\Web\Global.h 138/1 (423/1) represents the promote operation. The number 138 is the number associated with your backing stream. If you run the command 'accurev show -p <depot name> streams' you will see the number 138 is your backing stream. The number 1 represents the version number.
Answer #3:
When you promote an element, the keep operation is also associated with the promote operation. From the output, the line "# Added Lib Web Directory " is when you performed a keep and the line "# Header Changes " is the promote comment.
For more information contact AccuRev Support