[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gnu-arch-users] Re: Making --setup default in tag and import
From: |
Mikhael Goikhman |
Subject: |
Re: [Gnu-arch-users] Re: Making --setup default in tag and import |
Date: |
Tue, 8 Feb 2005 23:12:51 +0000 |
User-agent: |
Mutt/1.4.2.1i |
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] Re: [GNU-arch-dev] Re: GNU Arch status update, Tom Lord, 2005/02/07
- [Gnu-arch-users] Re: [GNU-arch-dev] Re: GNU Arch status update, Cameron Patrick, 2005/02/07
- [Gnu-arch-users] Re: [GNU-arch-dev] Re: GNU Arch status update, Tom Lord, 2005/02/07
- [Gnu-arch-users] Making --setup default in tag and import, Mikhael Goikhman, 2005/02/07
- [Gnu-arch-users] Re: Making --setup default in tag and import, Tom Lord, 2005/02/07
- [Gnu-arch-users] Re: Making --setup default in tag and import, Mikhael Goikhman, 2005/02/07
- [Gnu-arch-users] Re: Making --setup default in tag and import, Stefan Monnier, 2005/02/08
- Re: [Gnu-arch-users] Re: Making --setup default in tag and import, Aaron Bentley, 2005/02/08
- Re: [Gnu-arch-users] Re: Making --setup default in tag and import,
Mikhael Goikhman <=
- Re: [Gnu-arch-users] Re: Making --setup default in tag and import, Ben Finney, 2005/02/08
- Re: [Gnu-arch-users] Re: Making --setup default in tag and import, Mikhael Goikhman, 2005/02/08
- Re: [Gnu-arch-users] Re: Making --setup default in tag and import, Miles Bader, 2005/02/08
- Re: [Gnu-arch-users] Re: Making --setup default in tag and import, James Blackwell, 2005/02/09
- [Gnu-arch-users] Re: Making --setup default in tag and import, Stefan Monnier, 2005/02/09
- Re: [Gnu-arch-users] Re: Making --setup default in tag and import, Cameron Patrick, 2005/02/09
- [Gnu-arch-users] Re: Making --setup default in tag and import, Stefan Monnier, 2005/02/09
- Re: [Gnu-arch-users] Re: Making --setup default in tag and import, Tom Lord, 2005/02/09
- Re: [Gnu-arch-users] Re: Making --setup default in tag and import, Mikhael Goikhman, 2005/02/09
- Re: [Gnu-arch-users] Re: Making --setup default in tag and import, Tom Lord, 2005/02/09