Accurev: How can I get a list of all users from a stream?

519 views Asked by At

I need to get a list of all users who've contributed to a stream. I think I can just dump the entire history of the stream then parse it for the users like this (see hist for details):

accurev hist -s <stream> -a -fv

but this seems very crude, especially since I'm not interested in the history itself. Is there a more elegant way of doing this?

2

There are 2 answers

0
parsley72 On BEST ANSWER

This works nicely:

accurev hist -p <depot> -s <stream> -a -fv | sed -n 's/.*user: \(.*\)/\1/p' | sort | uniq
0
jstanley On

You need to run the accurev hist command to obtain this information.

You can add the "-k promote" option to restrict the output to show only promote operations.

Also, you can use the -fx option to format the output in XML and create script to generate a simple list of users.