Mercurial > hg
comparison tests/test-uncommit.t @ 42903:66048f6b5d0d
uncommit: add options to update to the current user or current date
These are also from the evolve extension's version of uncommit.
I tried adding validation that both forms of user or date can't be specified at
the same time, but that fails because these show up in `opts` with a None value
whether or not the option was given on the command line. Presumably that means
the conditional in `resolvecommitoptions` could be simplified. But this is how
both evolve and MQ handle it.
Differential Revision: https://phab.mercurial-scm.org/D6828
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Sat, 07 Sep 2019 23:20:11 -0400 |
parents | ff1ff2aae132 |
children | a50661567f83 |
comparison
equal
deleted
inserted
replaced
42902:ff1ff2aae132 | 42903:66048f6b5d0d |
---|---|
40 -X --exclude PATTERN [+] exclude names matching the given patterns | 40 -X --exclude PATTERN [+] exclude names matching the given patterns |
41 -m --message TEXT use text as commit message | 41 -m --message TEXT use text as commit message |
42 -l --logfile FILE read commit message from file | 42 -l --logfile FILE read commit message from file |
43 -d --date DATE record the specified date as commit date | 43 -d --date DATE record the specified date as commit date |
44 -u --user USER record the specified user as committer | 44 -u --user USER record the specified user as committer |
45 -D --current-date record the current date as commit date | |
46 -U --current-user record the current user as committer | |
45 | 47 |
46 (some details hidden, use --verbose to show complete help) | 48 (some details hidden, use --verbose to show complete help) |
47 | 49 |
48 Uncommit with no commits should fail | 50 Uncommit with no commits should fail |
49 | 51 |