tags:

views:

62

answers:

0

I have a CVS tree with some modified files and some new/added. I use:

cvs -q -x diff -u

To generate a patch that lists all the changes. However, it lacks the newly added files. Im doing some googling to find the correct parameter flag but I dont have much luck.

Anyone with wisdom to share?

(This is on Windows but I assume it doesnt matter)

Edit: Okay, so apparently it does matter that its Windows. The correct option to include newly added (with cvs add) files is with the -N option. My problem now is that -N means "compare file with /dev/null", which doesnt exist under windows.

So I must trick cvs diff to compare with some other empty file or find the proper parameter. Any ideas?

Edit2: Found this related question regarding /dev/null on windows, and it seems that comparing with nul on Windows should be valid. But specifying the -N flag yields this output when cvs diff reaches a new file:

cvs [server aborted]: Cannot use reserved filename 'nul' on NT based machines

Have I missunderstood something or is this a bug in cvs or tortoisecvs? From the looks of it, nul should be able to be used as /dev/null on a NT machine. What is cvs complaining about?