Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Whats the Mercurial hg clone syntax to clone a repository to a folder on a local file system

Whats the Mercurial hg clone syntax to clone a repository to a folder on a local file system. Say I have a repository in C:\MyProject\ and I want to create a clone in G:\Version Control\MyProject\ - what would the command line be?

Thanks

like image 861
Simon Lomax Avatar asked Jul 07 '10 15:07

Simon Lomax


People also ask

How do I clone a Mercurial repository?

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.

How do you clone in Tortoise Hg?

To clone a repository you have to run the clone dialog. From the explorer context menu select TortoiseHg… ‣ Clone a repository or type thg clone. It is the path (or URL) of the repository that will be cloned.

What is hg command?

The hg command provides a command line interface to the Mercurial system.


1 Answers

hg help is your friend. hg help clone yields:

hg clone [OPTION]... SOURCE [DEST]

So, for this case it should be something like:

hg clone C:\MyProject "G:\Version Control\MyProject" 
like image 188
otherchirps Avatar answered Sep 20 '22 17:09

otherchirps