'hg import' (Re: newbie question for 'hg bookmark')

SungHyun Nam goweol at gmail.com
Mon Aug 30 02:36:00 UTC 2010


Martin Geisler wrote:
> SungHyun Nam<goweol at gmail.com>  writes:
> 
> that is, changeset A has the bookmark "patch10/perf-fixes" and your
> working copy is also placed at A (see "hg parents" or look it up in "hg
> help glossary").
> 
>>      $ patch -p1<  ../../0002-clean-up.patch
>>      $ patch -p1<  ../../0003-speed-up.patch
> 
> If you are ever on a Windows machine, you will be happy to know that you
> can use 'hg import --no-commit' instead of patch(1) on that platform.

'hg import' does not work.  Because I ran the 'patch' in a sub
directory.  I mean:
    proj/
is top directory,
And I run the 'patch -p1' command in the
    proj/subdir

BTW, 'git apply' don't do anything by default if there occurs
reject.  'hg import' apply anyway and I have to do 'hg up -C' and
remove all the rejected/added files manually (I could do 'git
clean -f' in this case).  And I find 'hg import' does not have
'--dry-run' option.  So that, user have to use 'patch' command if
he wants to do dry-run?

I told in the hope someone improves it.

Thanks,
namsh



More information about the Mercurial mailing list