|
1 hg import [OPTION]... PATCH... |
|
2 |
|
3 aliases: patch |
|
4 |
|
5 import an ordered set of patches |
|
6 |
|
7 Import a list of patches and commit them individually (unless --no-commit |
|
8 is specified). |
|
9 |
|
10 If there are outstanding changes in the working directory, import will |
|
11 abort unless given the -f/--force flag. |
|
12 |
|
13 You can import a patch straight from a mail message. Even patches as |
|
14 attachments work (to use the body part, it must have type text/plain or |
|
15 text/x-patch). From and Subject headers of email message are used as |
|
16 default committer and commit message. All text/plain body parts before |
|
17 first diff are added to commit message. |
|
18 |
|
19 If the imported patch was generated by hg export, user and description |
|
20 from patch override values from message headers and body. Values given on |
|
21 command line with -m/--message and -u/--user override these. |
|
22 |
|
23 If --exact is specified, import will set the working directory to the |
|
24 parent of each patch before applying it, and will abort if the resulting |
|
25 changeset has a different ID than the one recorded in the patch. This may |
|
26 happen due to character set problems or other deficiencies in the text |
|
27 patch format. |
|
28 |
|
29 With -s/--similarity, hg will attempt to discover renames and copies in |
|
30 the patch in the same way as 'addremove'. |
|
31 |
|
32 To read a patch from standard input, use "-" as the patch name. If a URL |
|
33 is specified, the patch will be downloaded from it. See 'hg help dates' |
|
34 for a list of formats valid for -d/--date. |
|
35 |
|
36 options: |
|
37 |
|
38 -p --strip directory strip option for patch. This has the same |
|
39 meaning as the corresponding patch option (default: 1) |
|
40 -b --base base path |
|
41 -f --force skip check for outstanding uncommitted changes |
|
42 --no-commit don't commit, just update the working directory |
|
43 --exact apply patch to the nodes from which it was generated |
|
44 --import-branch use any branch information in patch (implied by --exact) |
|
45 -m --message use <text> as commit message |
|
46 -l --logfile read commit message from <file> |
|
47 -d --date record datecode as commit date |
|
48 -u --user record the specified user as committer |
|
49 -s --similarity guess renamed files by similarity (0<=s<=100) |
|
50 |
|
51 global options: |
|
52 -R --repository repository root directory or name of overlay bundle file |
|
53 --cwd change working directory |
|
54 -y --noninteractive do not prompt, assume 'yes' for any required answers |
|
55 -q --quiet suppress output |
|
56 -v --verbose enable additional output |
|
57 --config set/override config option |
|
58 --debug enable debugging output |
|
59 --debugger start debugger |
|
60 --encoding set the charset encoding (default: cp1251) |
|
61 --encodingmode set the charset encoding mode (default: strict) |
|
62 --traceback always print a traceback on exception |
|
63 --time time how long the command takes |
|
64 --profile print command execution profile |
|
65 --version output version information and exit |
|
66 -h --help display help and exit |