Mercurial > hg
diff tests/test-add.t @ 37778:f10cb49951e1
forget: rename --confirm to --interactive
Differential Revision: https://phab.mercurial-scm.org/D3405
author | Sushil khanchi <sushilkhanchi97@gmail.com> |
---|---|
date | Wed, 18 Apr 2018 19:25:35 +0530 |
parents | e7bf5a73e4e1 |
children | 3ff9d2ec6d88 |
line wrap: on
line diff
--- a/tests/test-add.t Tue Apr 17 13:46:18 2018 +0200 +++ b/tests/test-add.t Wed Apr 18 19:25:35 2018 +0530 @@ -273,19 +273,19 @@ $ cd .. -test --confirm option in forget +test --interactive mode in forget - $ hg init forgetconfirm - $ cd forgetconfirm + $ hg init interactiveforget + $ cd interactiveforget $ echo foo > foo $ hg commit -qAm "foo" $ echo bar > bar $ hg commit -qAm "bar" - $ hg forget foo --dry-run --confirm - abort: cannot specify both --dry-run and --confirm + $ hg forget foo --dry-run -i + abort: cannot specify both --dry-run and --interactive [255] - $ hg forget foo --config ui.interactive=True --confirm << EOF + $ hg forget foo --config ui.interactive=True -i << EOF > ? > n > EOF @@ -297,7 +297,7 @@ ? - ? (display help) forget foo [Ynsa?] n - $ hg forget foo bar --config ui.interactive=True --confirm << EOF + $ hg forget foo bar --config ui.interactive=True -i << EOF > y > n > EOF @@ -308,14 +308,14 @@ R bar $ hg up -qC . - $ hg forget foo bar --config ui.interactive=True --confirm << EOF + $ hg forget foo bar --config ui.interactive=True -i << EOF > s > EOF forget bar [Ynsa?] s $ hg st $ hg up -qC . - $ hg forget foo bar --config ui.interactive=True --confirm << EOF + $ hg forget foo bar --config ui.interactive=True -i << EOF > a > EOF forget bar [Ynsa?] a