Firstly, where I work we're forced to use CVS and don't have any other choice. I personally use git.
Sometimes I don't always do a cvs update
on a module but I'll download the actual file off the production server which is guaranteed to be the latest ( 99% of cases ).
I end up doing a cvs commit
to find I failed to update so the scenario is like this:
cvs commit file.xml
cvs commit: Up-to-date check failed for 'file.xml'
mv file.xml 2
cvs update file.xml
rm file.xml
cvs mv 2 file.xml
I was thinking about writing a shell script that automatically cvs updates the files I'm committing and commits over them... but wondering if there's some native way of doing it.
Any advice other than not using cvs appreciated!
PS - And I use !!:n
where n
is the number. I just didn't use that in my code example since it's more legible as it is.