Debian Codegraph @

tests/test-record.t

raw
1 Set up a repo
2
3 $ cat <<EOF >> $HGRCPATH
4 > [ui]
5 > interactive = true
6 > [extensions]
7 > record =
8 > EOF
9
10 $ hg init a
11 $ cd a
12
13 Record help
14
15 $ hg record -h
16 hg record [OPTION]... [FILE]...
17
18 interactively select changes to commit
19
20 If a list of files is omitted, all changes reported by 'hg status' will be
21 candidates for recording.
22
23 See 'hg help dates' for a list of formats valid for -d/--date.
24
25 If using the text interface (see 'hg help config'), you will be prompted for
26 whether to record changes to each modified file, and for files with multiple
27 changes, for each change to use. For each query, the following responses are
28 possible:
29
30 y - record this change
31 n - skip this change
32 e - edit this change manually
33
34 s - skip remaining changes to this file
35 f - record remaining changes to this file
36
37 d - done, skip remaining changes and files
38 a - record all changes to all remaining files
39 q - quit, recording no changes
40
41 ? - display help
42
43 This command is not available when committing a merge.
44
45 (use 'hg help -e record' to show help for the record extension)
46
47 options ([+] can be repeated):
48
49 -A --addremove mark new/missing files as added/removed before
50 committing
51 --close-branch mark a branch head as closed
52 --amend amend the parent of the working directory
53 -s --secret use the secret phase for committing
54 --draft use the draft phase for committing
55 -e --edit invoke editor on commit messages
56 -I --include PATTERN [+] include names matching the given patterns
57 -X --exclude PATTERN [+] exclude names matching the given patterns
58 -m --message TEXT use text as commit message
59 -l --logfile FILE read commit message from file
60 -d --date DATE record the specified date as commit date
61 -u --user USER record the specified user as committer
62 -S --subrepos recurse into subrepositories
63 -w --ignore-all-space ignore white space when comparing lines
64 -b --ignore-space-change ignore changes in the amount of white space
65 -B --ignore-blank-lines ignore changes whose lines are all blank
66 -Z --ignore-space-at-eol ignore changes in whitespace at EOL
67
68 (some details hidden, use --verbose to show complete help)
69
70 Select no files
71
72 $ touch empty-rw
73 $ hg add empty-rw
74
75 $ hg record empty-rw<<EOF
76 > n
77 > EOF
78 diff --git a/empty-rw b/empty-rw
79 new file mode 100644
80 abort: empty commit message
81 [10]
82
83 $ hg tip -p
84 changeset: -1:000000000000
85 tag: tip
86 user:
87 date: Thu Jan 01 00:00:00 1970 +0000
88
89
90
91