[Top][All Lists]

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

Re: Using rdiff to check if tag exists

From: Alvaro Martinez Echevarria
Subject: Re: Using rdiff to check if tag exists
Date: Thu, 13 Nov 2003 08:47:28 -0800 (PST)

On Thu, 13 Nov 2003, Aldo TENDRON wrote:

> Hello,
> I have a problem using rdiff to check it a tag exists for a given
> module.
> [...]

Hehe, I've tried that before, and stumbled with the same problem.
The reason is, I think, when a tag has been successfully used it
ends up in the cache file CVSROOT/val-tags; that will be the
first thing looked at by the subsequent rdiff commands you are
issuing. As long as the tag is there, no error is shown.

So the first time you rdiffed on d, the actual files in the
module had to be looked at, and the tag wasn't there, so an error happened.
Then you rdiffed on c, which contains the tag, so the tag is
added to val-tags. The second time you check on d, the tag
"exists", even though the diff will be obviously empty.

The only reliable way I've found to check for the existence of
tags is 'cvs stat -v' (but that's a pain for directories).

Álvaro Martínez Echevarría    <address@hidden>
Cisco Systems
510 McCarthy Blvd.
Milpitas, CA 95035
Phone: +1-408-526-7179

reply via email to

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