The name command displays the name of an element, given its integer element-ID. By default,
name displays the name that the element has in your workspace stream. With the
-v option, you can display the element’s name in another stream.
One consequence of AccuRev’s cross-link facility is that two (or more) different versions of the same element can appear at different pathnames in the same workspace or stream. This is called double vision. It is not an error — at least, not from AccuRev’s perspective. Seeing the same element twice might be exactly what you intended, or it might signify that you’ve left some refactoring work unfinished.
In a double-vision situation, the name command lists all of an element’s pathnames in a workspace or stream:
You can use the -fv option to display the cross-link details in a double-vision situation:
> accurev name -fv -e 305
\.\dir09\sub03\file04.txt
\.\dir02\sub02\moved_from_9_3_4.txt
xlink \.\dir02 from amen55_mnt_john to amen55_dvt
Display the name that stream gizmo_dvt currently uses for the element with element-ID 311: