Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mercurial copy patch to repository

I'm using Mercurial repository and I have a patch in 'git' format and I wanted to know how I can apply that patch to my current repository which is Local.

Thanks

like image 814
Abid Avatar asked Dec 07 '25 15:12

Abid


1 Answers

hg import <patchfile(s)> should be able to handle git-style patches.

Use hg import --no-commit <patchfile(s)> if you don't want it to automatically commit the changes after each patch is imported.

Mozilla's FAQ mentions this: https://developer.mozilla.org/en/Mercurial_FAQ#How_can_I_diff_and_patch_files.3f

like image 83
Amber Avatar answered Dec 10 '25 05:12

Amber