[Top][All Lists]

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

Re: CVS Transaction

From: Pierre Asselin
Subject: Re: CVS Transaction
Date: Wed, 7 Sep 2005 23:33:11 +0000 (UTC)
User-agent: tin/1.6.2-20030910 ("Pabbay") (UNIX) (NetBSD/2.0 (i386))

Mateusz [PEYN] Adamus <address@hidden> wrote:

> Is there in CVS something like DB transactions?

> Fore example:
> 1. login to cvs
> 2. start transaction
> 3. create branch
> 4. do something on this branch
> 5. if 4 = OK then commit transaction (branch stays)
>     else rollback tran (delete branch)

I don't see how you could do implement that without taking a write
lock on the entire module ... which would defeat the "C" in "CVS".

When I need to be careful about races, I generally find it sufficient
to plant temporary tags from a working sandbox ("cvs tag", not "cvs
rtag").  The tag operation is not atomic, but it produces well-defined
results because the revision numbers for the tags are taken from
the sandbox.

pa at panix dot com

reply via email to

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