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).
cvs
but i just created a tiny CVS repository for testing and AFAICT this isn't possible without post-filtering withgrep
or something.cvs history
does a search that matches the "file" specified on the command line with text that appears anywhere in any filename in the repo (so what the man page calls a "file" for history is actually a search pattern). Have you considered converting to something more modern and more sane? perhapssvn
if you're committed to cvs madness but also want new and improved.git
otherwise. – cas Mar 03 '18 at 09:50cvs
. – cas Mar 03 '18 at 09:50$
to the end of the filename, but it seems it doesn't do a regex search. google is not being helpful either - I guess cvs knowledge is one of those things that will be lost in time like tears in rain. – cas Mar 03 '18 at 09:53rcs
for some things. Well, strictly speaking, some of my Makefiles for sysadmin tasks still do - e.g. the Makefile in my /etc/postfix still updates the /etc/postfix/RCS repo mostly because I never bothered to git rid of it after switching toetckeeper
&git
, and because there's history inRCS/*,v
that never got imported into git. – cas Mar 05 '18 at 03:47