I've recently needed to clone into development tree of some large projects (e.g. https://hg.mozilla.org/mozilla-central), but the problem is I'm on an slow unstable connection and thus I may not clone into the repository in a single pass.
Is it possible to pause/resume the cloning process somehow?
Clone a remote Mercurial repositoryFrom the main menu, select Hg | Get from Version Control. The Get from Version Control dialog opens. In the dialog that opens, select Mercurial from the Version control list and specify the URL of the remote repository you want to clone. Click Clone.
Once you decide that a file no longer belongs in your repository, use the hg remove command.
Strictly speaking, the term repository refers to the directory named . hg (dot hg) in the repository root directory. The repository root directory is the parent directory of the . hg directory. Mercurial stores its internal data structures – the metadata – inside that .
To clone a large repository in multiple passes, you can use the --rev
option on the clone command. For example:
hg clone --rev 100 <remote URL> <local path>
cd <local path>
hg pull --rev 200
hg pull --rev 300
etc
See this related SO question.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With