Changeset View
Changeset View
Standalone View
Standalone View
tests/test-uncommit.t
Show First 20 Lines • Show All 550 Lines • ▼ Show 20 Line(s) | can be uncommitted. | ||||
date: Mon Jun 30 12:12:12 1980 +0000 | date: Mon Jun 30 12:12:12 1980 +0000 | ||||
summary: uncommit with message | summary: uncommit with message | ||||
Bad option combinations | Bad option combinations | ||||
$ hg rollback -q --config ui.rollback=True | $ hg rollback -q --config ui.rollback=True | ||||
$ hg uncommit -U --user 'user' | $ hg uncommit -U --user 'user' | ||||
abort: cannot specify both --user and --currentuser | abort: cannot specify both --user and --currentuser | ||||
[255] | [10] | ||||
$ hg uncommit -D --date today | $ hg uncommit -D --date today | ||||
abort: cannot specify both --date and --currentdate | abort: cannot specify both --date and --currentdate | ||||
[255] | [10] | ||||
`uncommit <dir>` and `cd <dir> && uncommit .` behave the same... | `uncommit <dir>` and `cd <dir> && uncommit .` behave the same... | ||||
$ echo 2 > dir/file2.txt | $ echo 2 > dir/file2.txt | ||||
$ hg ci -Aqm 'add file2 in directory' | $ hg ci -Aqm 'add file2 in directory' | ||||
$ hg uncommit dir | $ hg uncommit dir | ||||
note: keeping empty commit | note: keeping empty commit | ||||
$ hg status | $ hg status | ||||
Show All 26 Lines |