Search code examples
accurev

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


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?


Solution

  • This works nicely:

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