Is there a way to push/pull hidden changesets?

Pierre-Yves David pierre-yves.david at ens-lyon.org
Tue Aug 31 15:32:58 UTC 2021


On 8/30/21 4:33 AM, James Cook wrote:
> I'm using the hg evolve extension, which leaves hidden changesets
> behind when I rewrite history. Is there a way to copy those changesets
> to another repository?


There is currently no way do do so. However two years ago, I started a 
series of patch to make it possible and got to the point where "it 
worked but needed some polish". I did not had time to get back to it 
since then, (and to be honest forgot a bit about it).


>
> What I've tried:
>
> hg push/pull seems to ignore them; indeed this is documented at
> https://www.mercurial-scm.org/doc/evolution/user-guide.html . I have
> tried using push --force and push -r <the hidden rev>, to no avail*.
>
> Why I want this:
>
> 1. When I switch computers, I'd still like to be able to see the full
>     history of my changes. So, I'd like to copy that history between my
>     private clones.
>
> 2. I'd like to back up that history so that if one repo fails, it's not
>     lost. Simply pushing copies to all my private clones would be a nice
>     and simple way to accomplish that.
>
> *push -r <hidden rev> causes hg to tell me "(use --hidden to access
> hidden revisions)", but with --hidden the changeset is still not
> pushed.
>
-- 
Pierre-Yves David




More information about the Mercurial mailing list