[PATCH V2] test-hardlinks: add testcase for repo copied with 'cp -al'

Patrick Mézard pmezard at gmail.com
Fri Nov 19 05:08:42 CST 2010


Le 17/11/10 17:02, Adrian Buehlmann a écrit :
> # HG changeset patch
> # User Adrian Buehlmann <adrian at cadifra.com>
> # Date 1290009270 -3600
> # Node ID 40082f25be6eaf0a21f2b310eeb4f53fbe815689
> # Parent  8b167ee8242fd7117185150a0015a753019f145e
> test-hardlinks: add testcase for repo copied with 'cp -al'
> 
> This patch adds a case to test-hardlinks.t which demonstrates that
> hardlinks in the working directory are broken up (using 'hg update').
> 
> Motivation for this patch:
> 
> 'hg help clone' shows copying repositories *and* the working directory
> using 'cp -al', creating hardlinks in the *working directory* too (not
> just in the store).
> 
> Note that we can't use 'cp -al' since for example MacOS X doesn't
> support these options on cp. I'm thus using the same trick as in
> test-hardlinks-safety.t for creating hardlinks in the working dir.

In crew: http://hg.intevation.org/mercurial/crew/rev/42ac864ed394

Thanks!

--
Patrick Mézard


More information about the Mercurial-devel mailing list