hg import to apply patch to a subdirectory
Sean Farley
sean at mcs.anl.gov
Fri May 4 16:24:31 CDT 2012
> Actually, transplant --filter splits each change into separate header and
> patch files for this reason, so I believe your simple example will work. A
> similar workflow is documented at
>
> http://mercurial.selenic.com/wiki/TransplantExtension
Thanks for the tip (I missed the import.sh script the first time). A
few problems arose following the tips in this email thread:
1) patchutils doesn't handle creation (prepends 'foo' to /dev/null) very well
2) both the import.sh example and patchutils are a no-go on windows;
something more pythonic would probably be necessary
3) installing patchutils / writing import.sh is a minor overhead
placed on each dev as opposed to transplant (or rather, patch.patch?)
handling the path prepending
More information about the Mercurial-devel
mailing list