[PATCH 1 of 1] Issue919: add a standard extension to recreate hardlinks between repositories

Benoit Boissinot benoit.boissinot at ens-lyon.org
Fri Nov 6 04:45:30 CST 2009


On Thu, Nov 05, 2009 at 10:43:58PM -0000, Jesse Glick wrote:
> # HG changeset patch
> # User Jesse Glick <jesse.glick at sun.com>
> # Date 1257460683 18000
> # Node ID 8dbb7387f6fc25098572ff38c8a701e388de5d6b
> # Parent  8773d46861f5cd26bf629228c0e3ae4378b001c7
> Issue919: add a standard extension to recreate hardlinks between repositories.
> Having to run a standalone Python script from the contrib dir is a nuisance.
> Also makes various improvements to locking, file discovery, etc.
> Should also update: http://www.selenic.com/mercurial/wiki/index.cgi/RecreateHardlinksBetweenRepositories

Pushed to crew: 9729:aa9ccab5af37

I omitted the change to the help text since I think it needs some more
work (and it isn't critical). For example if we add that, it should go
after the text which explains hardlinking.

thanks,

Benoit

> diff --git a/mercurial/commands.py b/mercurial/commands.py
> --- a/mercurial/commands.py
> +++ b/mercurial/commands.py
> @@ -618,7 +618,7 @@
>      in the destination.
>  
>      Using -r/--rev (or 'clone src#rev dest') implies --pull, even for
> -    local source repositories.
> +    local source repositories. Use relink extension to reclaim hardlinks.
>  
>      For efficiency, hardlinks are used for cloning whenever the source
>      and destination are on the same filesystem (note this applies only

-- 
:wq


More information about the Mercurial-devel mailing list