I used
Code: Select all
hg export -o isp_patch.diff
How to generate and apply such patch properly?
EDIT: invalid patch removed
Moderator: OpenTTD Developers
Code: Select all
hg export -o isp_patch.diff
You probably forgot to teach mercurial about the newly added files, thus forgot one or moreMcZapkie wrote:I applied this patch to the just cloned trunk (r27185), corrected some failed hunks, compiled successfully - now how to properly generate new patch?
I usedbut this patch applied to copy of original trunk is patching only existing sources and does not generate new files (infrastructure*.*).Code: Select all
hg export -o isp_patch.diff
How to generate and apply such patch properly?
Code: Select all
hg add FILENAME
Code: Select all
hg diff > mypatch.diff
Code: Select all
hg log -p -rXXX > mypatch.diff
I have no idea, how to check this revision number.If you have committed the patch (or used hg import or hg patch), you can use (XXX is the revision which adds the patch)
hg log -p -rXXX > mypatch.diff
Code: Select all
changeset: 22075:9a020e755fc9
tag: tip
parent: 22028:99087ab020b6
user: McZapkie <...>
date: <...>
summary: Hirundo patch applied
Code: Select all
hg rebase -sXXX -dYYY
Code: Select all
hg merge -rYYY
Code: Select all
changeset: 22075:9a020e755fc9
Users browsing this forum: No registered users and 37 guests