I have a patch, made with hg export 42
in another repository, that modifies the files
asd/fgh/foo/bar.c
asd/fgh/foo/fish.h
boo/hoo.txt
I need to import this patch to a repository that has the structure like:
src/foo/bar.c
src/foo/fish.h
boo/hoo.txt
Is there any command that can accomplish this - I can re-run the hg export
on the old repo if needed, and am willing to ignore the files that have same path (e.g. boo/hoo.txt
)
I thought originally that hg import -p3 patch.diff
in repository/src
would have done this, but apparently it still wants to create the asd/fgh/
hierarchy in the top level (and place .rej files there)