Cloning to a downgraded repository - examples don't seem to work
Pierre-Yves David
pierre-yves.david at ens-lyon.org
Thu Jan 18 09:41:00 UTC 2024
Out of curiosity, why do you need a repository using such a old format ?
On 1/3/24 12:50, Chris Green wrote:
> In the section "Missing Requirement" it has the following example for
> cloning a repository into a downgraded copy:-
>
> hg --config format.dotencode=0 clone --pull repoA repoB
>
> I have been trying this but it doesn't seem to be working, maybe I'm
> misunderstanding what it does (quite likely!).
>
> To get down to details, I have a mercurial repository in ~/.cfg and in
> ~/.cfg/.hg/requires it has:-
>
> share-safe
>
> I want to clone this repository so that I can use it with some older
> versions of mercurial that don't have share-safe, so I did:-
>
> hg --config format.share-safe=0 clone --pull .cfg .newcfg
>
> However the resulting repository in .newcfg still has 'share-safe' in
> the requires file and older mercurials give the error message about
> not having 'share-safe'.
>
> So, what am I doing wrong?
>
>
>
> While I'm about it can someone explain what the --pull option does in
> the above command please. I tried it without the --pull and it still
> worked but the resulting .newcfg repository used much less disk space
> than the old one. Does it not copy deleted files or something?
>
--
Pierre-Yves David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20240118/de78ec93/attachment.html>
More information about the Mercurial
mailing list