2007年3月20日星期二

How to generate a patch file in CVS?

There is one potential problem in generating a patch file from CVS repository. The RCS keyword in source files may be expanded leading to false alarm. The cvs rdiff command has an options -k to prevent this from happening, as such:

cvs -q rdiff -u -kk -ko -r rev1 -r rev2 module_name

The patch will be output to standard output. You can use your shell's redirection mechanism to generate a patch file.

没有评论: