Skip to content

Instantly share code, notes, and snippets.

@velyo
Created December 20, 2016 21:24
Show Gist options
  • Save velyo/588164a783c304eb0b8af26d4d3f09e7 to your computer and use it in GitHub Desktop.
Save velyo/588164a783c304eb0b8af26d4d3f09e7 to your computer and use it in GitHub Desktop.
Mercurial clone big repos in chunks

Clone big repository in small chunks using -r like this:

hg init montao
cd montao
hg pull -r 50 https://niklasr@bitbucket.org/niklasr/montao  # get the first 50 changesets
hg pull -r 100 https://niklasr@bitbucket.org/niklasr/montao  # get the next 50 changesets
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment