Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Push to remote Mercurial repository

I have a Mercurial repository on a remote VPS. The VPS has SSH access enabled. What are my options for pushing code changes from my development machine to the remote VPS?

like image 309
richzilla Avatar asked Oct 01 '11 23:10

richzilla


People also ask

How do I create a remote repository in Mercurial?

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.

What is a Mercurial repository?

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 .


1 Answers

If your VPS has Mercurial installed, simply:

hg push ssh://username@host/path/relative/to/home

or add to the repo's hgrc

[paths]
default-push = ssh://username@host/path/relative/to/home

and just

hg push
like image 139
Lazy Badger Avatar answered Sep 28 '22 09:09

Lazy Badger