Received: from spf5.us4.outblaze.com (spf5.us4.outblaze.com [205.158.62.27]) by sdf.lonestar.org (8.13.1/8.12.10) with ESMTP id j18NECbs006438 for ; Tue, 8 Feb 2005 23:14:13 GMT Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by spf5.us4.outblaze.com (Postfix) with ESMTP id B9A1276F35 for ; Tue, 8 Feb 2005 23:15:07 +0000 (GMT) Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1CyemY-0000tZ-2p for migo@homemail.com; Tue, 08 Feb 2005 18:28:34 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Cyem6-0000sd-M3 for gnu-arch-users@gnu.org; Tue, 08 Feb 2005 18:28:06 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Cyem4-0000rm-P0 for gnu-arch-users@gnu.org; Tue, 08 Feb 2005 18:28:05 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Cyem4-0000rV-MK for gnu-arch-users@gnu.org; Tue, 08 Feb 2005 18:28:04 -0500 Received: from [192.94.73.21] (helo=sdf.lonestar.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CyeYI-00081s-Gl for gnu-arch-users@gnu.org; Tue, 08 Feb 2005 18:13:51 -0500 Received: from sdf.lonestar.org (IDENT:migo@ukato.freeshell.org [192.94.73.7]) by sdf.lonestar.org (8.13.1/8.12.10) with ESMTP id j18NCqbj006052; Tue, 8 Feb 2005 23:12:53 GMT Received: (from migo@localhost) by sdf.lonestar.org (8.13.1/8.12.8/Submit) id j18NCqAR023132; Tue, 8 Feb 2005 23:12:52 GMT Date: Tue, 8 Feb 2005 23:12:51 +0000 From: Mikhael Goikhman To: Aaron Bentley Subject: Re: [Gnu-arch-users] Re: Making --setup default in tag and import Message-ID: <20050208231251.GA1604@ukato> Mail-Followup-To: Aaron Bentley , Stefan Monnier , gnu-arch-users@gnu.org References: <20050207184626.GB11858@ukato> <200502071913.LAA09656@emf.net> <87sm47i0d1.fsf-monnier+gmane.comp.version-control.arch.user@gnu.org> <4208DE97.40706@panoramicfeedback.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4208DE97.40706@panoramicfeedback.com> User-Agent: Mutt/1.4.2.1i Cc: gnu-arch-users@gnu.org, Stefan Monnier X-BeenThere: gnu-arch-users@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: a discussion list for all things arch-ish List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: gnu-arch-users-bounces+migo=homemail.com@gnu.org Errors-To: gnu-arch-users-bounces+migo=homemail.com@gnu.org Status: RO Content-Length: 1828 Lines: 42 On 08 Feb 2005 10:45:27 -0500, Aaron Bentley wrote: > > Stefan Monnier wrote: > >>There can not be an officially supported "undo in the archive" operation. > >>That's an absolute constraint. Sorry. > > > >Too bad. It's not like it's fundamentally impossible/difficult. > > Actually, it *is* fundamentally impossible. The arch model is that each > revision name corresponds with one and only one changeset or import. > Forever and ever. Break that rule, and you get to keep both pieces. These two requirements do not really conflict in any fundamental way. You may redo the past if you also redo or remove all its dependencies. There are several solutions here with a different set of consequences. One naive (and inconvenient) solution is to only allow getting revision in one hour from its creation and give time to the creator to replace it. A better solution is to use timestamps of archive revisions and invalidate any trees or secondary branches that depend on the revisions with older timestamps. Note, that invalidation is what a user intends when he undoes. He does not intend for the previous (replaced) changeset to be ever valid. One easier-to-implement solution (the one I suggested) is to only make cache and mirror processes aware of the archive changes by revalidating stored data, either on request or just all recently created data, and not to perform any automatical invalidation. The user is then responsible to invalidate (remove) any affected trees or revisions if any. If he worries about external trees or branches, then he should not undo in the archive. Regards, Mikhael. _______________________________________________ Gnu-arch-users mailing list Gnu-arch-users@gnu.org http://lists.gnu.org/mailman/listinfo/gnu-arch-users GNU arch home page: http://savannah.gnu.org/projects/gnu-arch/