[Top][All Lists]

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

Re: RCS, again: another removed functionality: undo last-checkin

From: Stefan Monnier
Subject: Re: RCS, again: another removed functionality: undo last-checkin
Date: Wed, 23 Sep 2015 09:26:56 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

> Maybe we should have both "rollback" and "revert" commands.  Multiple
> backends seem to distinguish them already.

They are indeed very different, so it makes a lot of sense to have them
as completely separate commands.

The "revert" (which IIUC just installs a new change which undoes the
effect of some earlier change) can mostly be implemented in
a backend-independent way.

But the "rollback" (which IIUC can destructively remove an previous
existing commit, I guess I'd call it "uncommit") is a lot more
problematic, since various backends support it in very different ways
with very different limitations.  Generalizing the "Amend:" support of
vc-git.el to other backends would probably cover 99% of the use cases.

If you feel it's really important that user be able to delete a revision
from within Emacs, why not provide a vc-rcs-delete-commits command in
vc-rcs.el?  That would be a lot simpler to implement and wouldn't force us
to come up with some weird pseudo-generic functionality that might end
up not even supporting 100% of RCS's use cases.


reply via email to

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