> -----Original Message-----
> From: David Hugh-Jones [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, January 22, 2002 11:38 AM
> To: [EMAIL PROTECTED]
> 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.


_______________________________________________
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs

Reply via email to