import SVN repo with >2GB files

Gregory Szorc gregory.szorc at gmail.com
Sun Jul 26 19:39:06 UTC 2015


On Fri, Jul 24, 2015 at 11:03 AM, Chris Jones <chris at cjones.org> wrote:

> I'm importing a Subversion repository with a couple of files larger than
> 2GB. For obvious reasons, I want to use the largefiles extension; but as
> far as I know, there's no way to combine "hg convert" and "hg lfconvert"
> into one step. When I do the SVN->Hg conversion, though, it fails
> because of these two huge files.
>
> Is there any remedy for this situation?
>

Until there is something built in to `hg convert`, you'll have to hack
something together.

You could try creating a custom filemap for convert that ignores the large
files. Then, do the conversion. Then, create a new repository and `hg pull
-r <rev>` the converted repo in up to each commit where a large file was
modified. Next, manually (re)create the commit (with largefiles support),
adding largefiles integration where needed. Then, pull and rebase on top of
the new commit. Repeat for every commit touching a large file.

If you only have say a few dozen commits touching large files, this
shouldn't be too bad. If it is more, it might be easier to add largefiles
integration with convert (which sounds like a very useful feature to me).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20150726/7e908ddf/attachment-0002.html>


More information about the Mercurial mailing list