how to clone/convert pull only certain changesets from a repostitory

Uwe Brauer oub at mat.ucm.es
Sun Oct 16 21:07:25 UTC 2022


Hi

That looks really strange/difficult:

I have a large repositories with a couple of named branches and topic.

I want to publish only part of it, basically everything which is on the
default branch.

However there are also quite some merges. 

    1. The most promising approach, was to use convert. So I wrote up a
       filemap that only includes the files (in subdirectories) that
       should be included in the default branch, then

       - hg manifest --all showed me precisely the files of the default
         branch and nothing else, however 

       - hg branches showed me a lot of branches, but these branches
         seemed _empty_

    2. Hg clone -b default also results in files that do not belong to
       the default branch (because of the merges I presume).

    3. I could rebase the whole repository but I am not sure whether
       that will not be a big mess and besides a rebase of a merge seems not be possible, but I might be wrong

Any comments on this issue

Regards

Uwe Brauer 


-- 
I strongly condemn Putin's war of aggression against the Ukraine.
I support to deliver weapons to Ukraine's military. 
I support the ban of Russia from SWIFT.
I support the EU membership of the Ukraine. 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5671 bytes
Desc: not available
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20221016/67dcd591/attachment.p7s>


More information about the Mercurial mailing list