UI discussions for revert --interactive and uncommit --interactive

Jordi GutiƩrrez Hermoso jordigh at octave.org
Tue May 26 16:24:22 CDT 2015


As a data point on what other people are doing, Emacs's magit has the
following interface for git:

 * All changes to the working directory appear as diff that are about
   to be applied.
   
 * A hunk can be staged by selecting it and pressing "s".

 * A hunk can be deleted by selecting it and pressing "k".

There is never a reverse diff for applying or undoing changes. Diffs
are always changes potentially applied to the repo, never changes
potentially potentially applied to the working directory.

The most consistent approach to me would be that the record interface
for revert should ask "keep this change?" (instead of "apply this
change?"), and the curses interface should show everything as applied
and you pick the changes that you want to disappear (and save into
.orig files).






More information about the Mercurial-devel mailing list