info-cvs
[Top][All Lists]
Advanced

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

RE: race condition?


From: Thornley, David
Subject: RE: race condition?
Date: Tue, 22 Jan 2002 12:12:01 -0600

> -----Original Message-----
> From: David Hugh-Jones [mailto:address@hidden
> Sent: Tuesday, January 22, 2002 11:38 AM
> To: address@hidden
> Subject: race condition?
> 
> 
>       
> One of our developers pointed out that 
> 
> cvs commit foo bar
> followed by
> cvs rtag I_just_uploaded_this foo bar
> 
> contains a race condition. Someone else might have committed 
> between the two 
> tags.
> 
> Assuming we want to use tags as a way of assigning blame, is 
> there a way 
> round this?
> 
I'd use "cvs tag", not "cvs rtag", since "tag" tags the revisions
in the sandbox, not the repository.  As long as your developer doesn't
update between the commit and the tag, the tag should get exactly
what he or she had then.

If your developer wants to tag things that existed at that moment
but which were not in the sandbox, you can always use "rtag"
followed by "cvs tag -F" to force the tag to move to what's in
the sandbox.




reply via email to

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