Mercurial > diff-colorize
Help: absorb
hg absorb [OPTION] [FILE]...
incorporate corrections into the stack of draft changesets
absorb analyzes each change in your working directory and attempts to amend the changed lines into the changesets in your stack that first introduced those lines.
If absorb cannot find an unambiguous changeset to amend for a change, that change will be left in the working directory, untouched. They can be observed by 'hg status' or 'hg diff' afterwards. In other words, absorb does not write to the working directory.
Changesets outside the revset '::. and not public() and not merge()' will not be changed.
Changesets that become empty after applying the changes will be deleted.
By default, absorb will show what it plans to do and prompt for confirmation. If you are confident that the changes will be absorbed to the correct place, run 'hg absorb -a' to apply the changes immediately.
Returns 0 on success, 1 if all chunks were ignored and nothing amended.
(use 'hg help -e absorb' to show help for the absorb extension)
options ([+] can be repeated):
-a | --apply-changes | apply changes without prompting for confirmation |
-p | --print-changes | always print which changesets are modified by which changes |
-i | --interactive | interactively select which chunks to apply |
-e | --edit-lines | edit what lines belong to which changesets before commit (EXPERIMENTAL) |
-n | --dry-run | do not perform actions, just print output |
--style STYLE | display using template map file (DEPRECATED) | |
-T | --template TEMPLATE | display with template |
-I | --include PATTERN [+] | include names matching the given patterns |
-X | --exclude PATTERN [+] | exclude names matching the given patterns |
--mq | operate on patch repository |
global options ([+] can be repeated):
-R | --repository REPO | repository root directory or name of overlay bundle file |
--cwd DIR | change working directory | |
-y | --noninteractive | do not prompt, automatically pick the first choice for all prompts |
-q | --quiet | suppress output |
-v | --verbose | enable additional output |
--color TYPE | when to colorize (boolean, always, auto, never, or debug) | |
--config CONFIG [+] | set/override config option (use 'section.name=value') | |
--debug | enable debugging output | |
--debugger | start debugger | |
--encoding ENCODE | set the charset encoding (default: UTF-8) | |
--encodingmode MODE | set the charset encoding mode (default: strict) | |
--traceback | always print a traceback on exception | |
--time | time how long the command takes | |
--profile | print command execution profile | |
--version | output version information and exit | |
-h | --help | display help and exit |
--hidden | consider hidden changesets | |
--pager TYPE | when to paginate (boolean, always, auto, or never) (default: auto) |