info-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How do I diff from 'add' to rev 1.1?


From: Holger
Subject: Re: How do I diff from 'add' to rev 1.1?
Date: 20 Sep 2006 08:26:20 -0700
User-agent: G2/1.0

Holger wrote:
> Todd Denniston wrote:
> > address@hidden 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
>
> Genius!
>
> It may be because we use the windoze cvsnt server here but with a
> slight change:
> cvs -q diff -u --new-file -D "2000-01-01" -r 1.1 somefile
> (our db is not that old)
>
> It works. Thx!

A small addition.
This works:
 cvs -q diff -u --new-file -D "1970-01-02" -r 1.1

This doesn't:
 cvs -q diff -u --new-file -D "1970-01-01" -r 1.1

"cvs [diff aborted]: Can't parse date/time: 1970-01-01"

Go figure!

Holger



reply via email to

[Prev in Thread] Current Thread [Next in Thread]