Show More
@@ -4574,8 +4574,17 b' def import_(ui, repo, patch1=None, *patc' | |||
|
4574 | 4574 | Import a list of patches and commit them individually (unless |
|
4575 | 4575 | --no-commit is specified). |
|
4576 | 4576 | |
|
4577 | Because import first applies changes to the working directory, | |
|
4578 | import will abort if there are outstanding changes. | |
|
4577 | To read a patch from standard input, use "-" as the patch name. If | |
|
4578 | a URL is specified, the patch will be downloaded from there. | |
|
4579 | ||
|
4580 | Import first applies changes to the working directory (unless | |
|
4581 | --bypass is specified), import will abort if there are outstanding | |
|
4582 | changes. | |
|
4583 | ||
|
4584 | Use --bypass to apply and commit patches directly to the | |
|
4585 | repository, without affecting the working directory. Without | |
|
4586 | --exact, patches will be applied on top of the working directory | |
|
4587 | parent revision. | |
|
4579 | 4588 | |
|
4580 | 4589 | You can import a patch straight from a mail message. Even patches |
|
4581 | 4590 | as attachments work (to use the body part, it must have type |
@@ -4595,14 +4604,6 b' def import_(ui, repo, patch1=None, *patc' | |||
|
4595 | 4604 | the patch. This may happen due to character set problems or other |
|
4596 | 4605 | deficiencies in the text patch format. |
|
4597 | 4606 | |
|
4598 | Use --bypass to apply and commit patches directly to the | |
|
4599 | repository, not touching the working directory. Without --exact, | |
|
4600 | patches will be applied on top of the working directory parent | |
|
4601 | revision. | |
|
4602 | ||
|
4603 | With -s/--similarity, hg will attempt to discover renames and | |
|
4604 | copies in the patch in the same way as :hg:`addremove`. | |
|
4605 | ||
|
4606 | 4607 | Use --partial to ensure a changeset will be created from the patch |
|
4607 | 4608 | even if some hunks fail to apply. Hunks that fail to apply will be |
|
4608 | 4609 | written to a <target-file>.rej file. Conflicts can then be resolved |
@@ -4613,14 +4614,15 b' def import_(ui, repo, patch1=None, *patc' | |||
|
4613 | 4614 | cleanly, :hg:`import --partial` will create an empty changeset, |
|
4614 | 4615 | importing only the patch metadata. |
|
4615 | 4616 | |
|
4617 | With -s/--similarity, hg will attempt to discover renames and | |
|
4618 | copies in the patch in the same way as :hg:`addremove`. | |
|
4619 | ||
|
4616 | 4620 | It is possible to use external patch programs to perform the patch |
|
4617 | 4621 | by setting the ``ui.patch`` configuration option. For the default |
|
4618 | 4622 | internal tool, the fuzz can also be configured via ``patch.fuzz``. |
|
4619 | 4623 | See :hg:`help config` for more information about configuration |
|
4620 | 4624 | files and how to use these options. |
|
4621 | 4625 | |
|
4622 | To read a patch from standard input, use "-" as the patch name. If | |
|
4623 | a URL is specified, the patch will be downloaded from it. | |
|
4624 | 4626 | See :hg:`help dates` for a list of formats valid for -d/--date. |
|
4625 | 4627 | |
|
4626 | 4628 | .. container:: verbose |
General Comments 0
You need to be logged in to leave comments.
Login now