For a script I'm working on to implement bisection using CVS, I want to figure out what the 'timestamp' is of the current checkout. In other words, if I'm on a branch/tag, I want to know the last timestamp something got commited to that branch/tag. If I'm on head, I want to know the last timestamp on head.
I know this is not 100% guaranteed, since cvs checkouts can have different files at different timestamps/revisions/..., but a correct-in-most-cases solution is fine by me.
Naively, I thought that
cvs log -N | grep ^date: | sort | tail -n 1 | cut -d\; -f1
was going to do it, but it turns out it goes through the whole commit history, for all branches/tags.