This is a followup question from Sync svn and mercurial repo
The solution worked nicely, however what we want to do is to break up a tree by cloning a number of specific folders to a mercurial repo so we modified the command to
hg clone https://username@serverAddress/svn/MainRepo/SubFolder/Folder/ --insecure
This gives us a
error: [SSL: UNKNOWN_PROTOCOL] unknown protocol (_ssl.c:661)
Any help?
Thanks for reading
Mercurial's design is incompatible with partial checkouts. I haven't looked at the
hgsubversioninternals, but I would expect support for partial checkouts to be neither easy nor a priority to implement. Note also that the official hgsubversion wiki states:Again this suggests that cloning a subdirectory will probably violate these assumptions, since the subdirectory has no
trunkandbranchessubfolders.As a work-around, consider doing a full checkout and then splitting it up into subrepos (keeping the history), as shown in this question. If you want to continue two-way synchronization with svn, this will require you to do it in two steps, first importing all changes from the subrepos into the hg mirror and then pushing these to svn.