hg import to apply patch to a subdirectory

Sean Farley sean.michael.farley at gmail.com
Thu May 3 13:53:22 CDT 2012


> I can see how this would be useful, though it's not something I've
> needed before -- when I apply patches coming from 'hg export', then
> they're already rooted correctly at the repository root.
>
> Where do you get your patches from if they only apply on a subdirectory?

These patches usually come from subdirectories that /should/ be
subrepositories but for reasons out of my control are not. Using
transplant has been extremely nice for the 'strip' direction (I was
able to patch transplant to pass --strip down to patch.patch) but the
other direction would be more code intrusion than just a patch for
transplant.py; hence this email asking about potential ideas.


More information about the Mercurial-devel mailing list