Mercurial > hg-stable
view tests/test-revert-interactive-curses.t @ 45874:781b09790633
tests: show that interactive shelve can leave the repo with a merge state
If part of a file is shelved (as we already do in a test), there will
be an unfinished merge state left after `hg shelve` finishes. There
should never be a merge conflict and there should never be a reason
that the user would like to re-resolve conflicts, so we should clear
that state (see next patch).
Differential Revision: https://phab.mercurial-scm.org/D9334
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Mon, 16 Nov 2020 22:38:36 -0800 |
parents | 8b6a446508c2 |
children | e5e6282fa66a |
line wrap: on
line source
#require tic Revert interactive tests with the Curses interface $ cat <<EOF >> $HGRCPATH > [ui] > interactive = true > interface = curses > [experimental] > crecordtest = testModeCommands > EOF TODO: Make a curses version of the other tests from test-revert-interactive.t. When a line without EOL is selected during "revert -i" $ hg init $TESTTMP/revert-i-curses-eol $ cd $TESTTMP/revert-i-curses-eol $ echo 0 > a $ hg ci -qAm 0 $ printf 1 >> a $ hg ci -qAm 1 $ cat a 0 1 (no-eol) $ cat <<EOF >testModeCommands > c > EOF $ hg revert -ir'.^' reverting a $ cat a 0 When a selected line is reverted to have no EOL $ hg init $TESTTMP/revert-i-curses-eol2 $ cd $TESTTMP/revert-i-curses-eol2 $ printf 0 > a $ hg ci -qAm 0 $ echo 0 > a $ hg ci -qAm 1 $ cat a 0 $ cat <<EOF >testModeCommands > c > EOF $ hg revert -ir'.^' reverting a $ cat a 0 (no-eol)