Re: How many versions?

2003-06-25 Thread Ross Patterson
On Wednesday 25 June 2003 10:17 am, Mark <[EMAIL PROTECTED]> wrote: > Given 2 revisions of a single file. How can a script find out if other > revisions exist between them. Try "cvs log -RS -r$REV1::$REV2" if you're using cvs 1.11.2 or later. For earlier releases (where -S isn't available), try

Re: How many versions?

2003-06-25 Thread Mark
--- Larry Jones <[EMAIL PROTECTED]> wrote: > Mark writes: > > > > Given 2 revisions of a single file. How can a script find out if other > > revisions exist between them. > > The simplest way is to run "cvs log -rrev1::rev2" and parse the line in > the output that says: > > total revision

Re: How many versions?

2003-06-25 Thread Paul Sander
The rinfo program has a mode to display one-line summaries of ranges of versions. Doing a line-count on its output should give you what you want. Sources for the rinfo program are located at http://www.wakawaka.com/source.html Alternatively, you could try this: cvs log -N -rver1::ver2 file | gre

Re: How many versions?

2003-06-25 Thread Larry Jones
Mark writes: > > Given 2 revisions of a single file. How can a script find out if other > revisions exist between them. The simplest way is to run "cvs log -rrev1::rev2" and parse the line in the output that says: total revisions: n;selected revisions: m "m" is the number you want.

Re: How many versions?

2003-06-25 Thread Mark
--- Mark <[EMAIL PROTECTED]> wrote: > > Given 2 revisions of a single file. How can a script find out if other > revisions exist between them. > > revision examples for this question: > > 1.12 and 1.12.2.1 -- have no revisions between them > 1.12 and 1.12.2.2 -- do have revisons between them

How many versions?

2003-06-25 Thread Mark
Given 2 revisions of a single file. How can a script find out if other revisions exist between them. revision examples for this question: 1.12 and 1.12.2.1 -- have no revisions between them 1.12 and 1.12.2.2 -- do have revisons between them 1.13 and 1.14 -- have no revisions between them