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
--- 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
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
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.
--- 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
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