Changeset View
Changeset View
Standalone View
Standalone View
tests/test-add.t
Show First 20 Lines • Show All 280 Lines • ▼ Show 20 Line(s) | test --interactive mode in forget | ||||
$ hg init interactiveforget | $ hg init interactiveforget | ||||
$ cd interactiveforget | $ cd interactiveforget | ||||
$ echo foo > foo | $ echo foo > foo | ||||
$ hg commit -qAm "foo" | $ hg commit -qAm "foo" | ||||
$ echo bar > bar | $ echo bar > bar | ||||
$ hg commit -qAm "bar" | $ hg commit -qAm "bar" | ||||
$ hg forget foo --dry-run -i | $ hg forget foo --dry-run -i | ||||
abort: cannot specify both --dry-run and --interactive | abort: cannot specify both --dry-run and --interactive | ||||
[255] | [10] | ||||
$ hg forget foo --config ui.interactive=True -i << EOF | $ hg forget foo --config ui.interactive=True -i << EOF | ||||
> ? | > ? | ||||
> n | > n | ||||
> EOF | > EOF | ||||
forget foo [Ynsa?] ? | forget foo [Ynsa?] ? | ||||
y - yes, forget this file | y - yes, forget this file | ||||
n - no, skip this file | n - no, skip this file | ||||
Show All 35 Lines |