[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Removing rollback from VC mode - request for comment
From: |
Eric S. Raymond |
Subject: |
Re: Removing rollback from VC mode - request for comment |
Date: |
Thu, 11 Dec 2014 12:45:08 -0500 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
Eli Zaretskii <address@hidden>:
> > In other VCSes it would be difficult to even attempt this.
>
> ??? It's known as "reverse cherry-picking", and is AFAIK possible in
> Git, bzr, and hg.
>
> Or maybe I don't understand what ttn was alluding to.
You don't, not quite. Reverse cherry pick doesn't actually do the git
equivalent of removing a delta; the history is not altered. Reverse
cherry pic only requires forward composition of a reversed patch onto
the current branch tip - a much, *much* more tractable problem.
The git equivalent of actually removing a delta would be *really hard*.
You'd have to apply a reverse patch (in effect) against the blob, then
against all of its successors, dealing with conflicts in some way.
All the downstream hashes would be invalidated. A mess.
This is why git only lets you remove tip deltas.
--
<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>
- Removing rollback from VC mode - request for comment, Eric S. Raymond, 2014/12/11
- Re: Removing rollback from VC mode - request for comment, David Kastrup, 2014/12/11
- Re: Removing rollback from VC mode - request for comment, Thien-Thi Nguyen, 2014/12/11
- Re: Removing rollback from VC mode - request for comment,
Eric S. Raymond <=
- Re: Removing rollback from VC mode - request for comment, Eli Zaretskii, 2014/12/11
- Re: Removing rollback from VC mode - request for comment, Sergey Organov, 2014/12/11
- Re: Removing rollback from VC mode - request for comment, Sergey Organov, 2014/12/11
- Re: Removing rollback from VC mode - request for comment, Eric S. Raymond, 2014/12/11
- Re: Removing rollback from VC mode - request for comment, Stephen J. Turnbull, 2014/12/11
- Re: Removing rollback from VC mode - request for comment, Steinar Bang, 2014/12/12
- Re: Removing rollback from VC mode - request for comment, Stephen J. Turnbull, 2014/12/11
- Re: Removing rollback from VC mode - request for comment, Eric S. Raymond, 2014/12/11
Re: Removing rollback from VC mode - request for comment, Steinar Bang, 2014/12/11