[Top][All Lists]

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

Re: serialization of CVS commands?

From: Larry Jones
Subject: Re: serialization of CVS commands?
Date: Sat, 19 May 2001 14:44:56 -0400 (EDT)

Ken McKinney writes:
> The question has come up as to whether the rtag
> command is "serialized" -- IE,
> whether a developer can commit a file with a change after the rtag is
> issued but before the rtag command completes.

Yes, that can happen.  There is a certain amount of checking that rtag
does before locking the tree it's going to tag, and if you tag more than
one module (or a module that is an alias for multiple modules), then
each module is locked and tagged separately.  (Prior to CVS 1.11.1 there
were even more holes because rtag locked each directory individually
rather than locking the entire tree.  Unfortunately, it also cached
information from the repository before locking and didn't check that it
was still valid after, so it could lose commits that happened while an
rtag was in progress.)

Whether that really matters or not depends on how you specify what
revision to tag.  If you do something like "-r HEAD" then it matters; if
you do something like "-D now", it doesn't.

-Larry Jones

Shut up and go get me some antiseptic. -- Calvin

reply via email to

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