[Top][All Lists]

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

Re: Question re: deleted tags

From: Derek Price
Subject: Re: Question re: deleted tags
Date: Wed, 19 Jan 2005 18:26:20 -0500
User-agent: Mozilla Thunderbird 1.0 (Windows/20041206)

Larry Jones wrote:

Derek Price writes:
Since tag deletion is considered a relatively rare operation (as well it should be), no one has ever bother to write the code for the expensive, complete tag search that would be necessary to determine if the tag is really completely gone and should really be deleted from val-tags.

It's not necessary -- since val-tags is just a cache, it would be safe
to just delete it regardless.  Of course, the first thing that needs to
be done is to add some kind of locking for the val-tags file since there
isn't any right now and the more we update it the better the chance of
it getting corrupted by simultaneous updates.

Well, "fixing" it this way would put us back in the position where checkouts and updates could sometimes report that tags don't exist when they do. I think this is worse than not checking out any data when the tag doesn't exist in the project or sub-project being checked out (which can happen anyhow when the tag is correctly in val-tags). I just fixed this on feature by having the tag command itself update the "cache".



reply via email to

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