I've looked for that in the manual, but I can't generate a patch for the last commit. I tried
hg qnew patch_name
but it does only file with
# HG changeset patch # Parent a6a8e225d16ff5970a8926ee8d24272a1c099f9c
I also tried
hg export tip
but it doesn't do anything. I committed the changes exactly.
How to generate a patch file with the last commit in?
Patch fileThese files are also called diffs, as they were traditionally generated by the 'diff' program. While there are many different formats for patch files, the most common is the unified diff format. Mercurial can generate patch files in the unified diff format with the hg diff command.
The command to do this is export
:
$ hg export -o FILE -r REV
It doesn't require redirection and will thus work correctly on any platform/shell.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With