Is it possible to clone with hgsubversion steps?

I am trying to clone a fairly large subversion repository with hgsubversion .

hg clone --startrev 8890 svn+https://my.reposit.ory/trunk trunk_hg 

After about an hour, the clone operation aborts with an error message:

 [r20097] user: description abort: out of memory 

Is it possible to specify the final revision for the clone operation and get the remaining versions using pull ? Or somehow break the clone into smaller steps?

+7
source share
4 answers

You can specify a stop version with -r for cloning, as others have suggested. Another option (if you saved the clone where the errors occurred), you just need to run hg pull in a copy of trunk_hg . You may need to edit / create .hg/hgrc yourself to add [paths]\n default = svn+https://my.reposit.ory/trunk , since I think we will add that at the end of the cloning process. Perhaps run hg svn rebuildmeta before you pull only for good measure if the hgsubversion tracking metadata got hosed when OOM exited.

Hope this helps!

+6
source

http://www.selenic.com/mercurial/hg.1.html#clone

You can try using the -r <revid> flag to clone only a specific set of changes. Although this may or may not work with hgsvn.

+1
source

Cloning with a limited range of changes and then pulling out is the recommended method, and I can confirm that it works flawlessly for SVN repositories in a multi-GB size range.

+1
source

The following is a workaround for cloning an entire svn repo:

  • cloning start
  • interrupt it immediately ( Ctrl + C in windows)
  • than hg pull
  • you do not have enough memory
  • repeat step 3 until you check all the fixations.
0
source

All Articles