[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: RCS, again: another removed functionality: undo last-checkin
From: |
David Kastrup |
Subject: |
Re: RCS, again: another removed functionality: undo last-checkin |
Date: |
Mon, 21 Sep 2015 10:27:19 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) |
Eli Zaretskii <address@hidden> writes:
>> From: David Kastrup <address@hidden>
>> Cc: address@hidden, address@hidden, address@hidden
>> Date: Mon, 21 Sep 2015 10:13:25 +0200
>>
>> > Thanks, but would this mean that "git revert" for a commit pushed to
>> > the "staging" branch would be wrong? If so, can you explain why?
>>
>> It depends on whether the commit has moved to master already. If it
>> has, revert is the only option. If you noticed a mistake and want to
>> stop the commit from reaching master, you have to act fast enough that
>> the automated process will not make it progress into master. If the
>> commit has been stopped by the automated process, you definitely do not
>> want to add a revert on top of it to staging and have the combined
>> commit+revert reach master.
>
> OK, but what would you do instead, then, in the case where the commit
> is on "staged", but not yet on master?
You fix staging. Once the automated process finishes, it checks the
main repository and finds that the state of staging no longer contains
the commit it tested. So it does not push to master (it does send out a
diagnostic Email). The next time it runs, it picks up the fixed state
of staging and will hopefully finish.
At one point of time, our automated procedure did not do this "is my
tested commit still in staging" check before pushing to master. That
was a lot more annoying: you noticed a problem, fixed it, and about an
hour later the unfixed state (which already had made it into the testing
procedure) still appeared in master, deadlocking the machinery because
now staging and master were out of synch.
This additional test right before pushing to master closed that time
window: once you successfully reset staging in the repository, you are
safe from the unfixed state getting pushed.
--
David Kastrup
- Re: RCS, again: another removed functionality: undo last-checkin, (continued)
- Re: RCS, again: another removed functionality: undo last-checkin, Stefan Monnier, 2015/09/20
- Re: RCS, again: another removed functionality: undo last-checkin, Uwe Brauer, 2015/09/20
- Re: RCS, again: another removed functionality: undo last-checkin, Uwe Brauer, 2015/09/20
- Re: RCS, again: another removed functionality: undo last-checkin, Dmitry Gutov, 2015/09/20
- Re: RCS, again: another removed functionality: undo last-checkin, Eli Zaretskii, 2015/09/21
- Re: RCS, again: another removed functionality: undo last-checkin, David Kastrup, 2015/09/21
- Re: RCS, again: another removed functionality: undo last-checkin, Eli Zaretskii, 2015/09/21
- Re: RCS, again: another removed functionality: undo last-checkin, David Kastrup, 2015/09/21
- Re: RCS, again: another removed functionality: undo last-checkin, Eli Zaretskii, 2015/09/21
- Re: RCS, again: another removed functionality: undo last-checkin,
David Kastrup <=
- Re: RCS, again: another removed functionality: undo last-checkin, Eli Zaretskii, 2015/09/21
- Re: RCS, again: another removed functionality: undo last-checkin, David Kastrup, 2015/09/21
- Re: RCS, again: another removed functionality: undo last-checkin, Eli Zaretskii, 2015/09/21
- Re: RCS, again: another removed functionality: undo last-checkin, David Kastrup, 2015/09/21
- Re: RCS, again: another removed functionality: undo last-checkin, Bastian Beischer, 2015/09/21
- Re: RCS, again: another removed functionality: undo last-checkin, Richard Stallman, 2015/09/22
- Re: RCS, again: another removed functionality: undo last-checkin, Stephen J. Turnbull, 2015/09/22
- Re: RCS, again: another removed functionality: undo last-checkin, Richard Stallman, 2015/09/22
- Re: RCS, again: another removed functionality: undo last-checkin, Óscar Fuentes, 2015/09/22
- Re: RCS, again: another removed functionality: undo last-checkin, Eli Zaretskii, 2015/09/23