I'm not sure if this is a cvs bug or what it is, but I'm debugging some crusty scripts and found
> cvs history -D "-1 days" -c "s-server-moo-3"
spits out
> M 2018-03-02 19:06 +0000 user 1.71 s-server-moo-39 Network-Configs/configs == /opt/rancid/customers/CUSTA/var/Network-Configs
>
> M 2018-03-02 20:06 +0000 user 1.72 s-server-moo-39 Network-Configs/configs == /opt/rancid/customers/CUSTA/var/Network-Configs
which is not what I want, it shouldn't find "39", it should only find "3". My old crusty script is totally the number of commits and logging warnings if the total is above 8 per day, therefore if s-server-moo-38 and s-server-moo-39 each have 5 commits, I get warnings.
I know I could just grep afterwards, but this seems like a very strange way for any version control system to search. I don't see anything under
history
in the man page that says it's supposed to behave like this (or a flag to use as a workaround).
Asked by Peter Turner
(1734 rep)
Mar 2, 2018, 08:47 PM