[EMAIL PROTECTED] wrote:
Hi
I've created a little python script to produce patches from log
messages - i.e.:
patchmaker "Bug 123"
But it breaks down when the revision is the very first revision.
Usually it makes diffs like this:
cmd = "cvs -q diff -u -r %s -r %s %s" % (self.prevrev, self.rev, fobj)
e.g.:
cvs -q diff -u -r 1.4.7.8 -r 1.4.7.7 somefile
But there's no previous rev to the first rev - and you can't do
cvs -q diff -u -r 0 -r 1.1 somefile
Help appreciated!
how about when self.prevrev==0
cvs diff -u --new-file -D"1 Jan 1970" -r1.1 somefile
The trick is, the file was (probably) not put into CVS with a date before "1
Jan 1970".
--
Todd Denniston
Crane Division, Naval Surface Warfare Center (NSWC Crane)
Harnessing the Power of Technology for the Warfighter
_______________________________________________
info-cvs mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/info-cvs