XP-Dev.com Documentation - User Guide - Mercurial - Importing Repositories
As Mercurial is a distributed version control system, you can use any regular Mercurial client to import new repositories or even migrate them over to XP-Dev.com
Small print: You’ll need to substitute the command below with the SSH URL of your Mercurial repository.
Importing New Mercurial Repositories into XP-Dev.com
- Enable a Mercurial Source Control
- Initialise a Mercurial repository the directory that you’d like to put under version control:
$ cd /path/to/project$ hg init - Add and commit all the folders and files into your local Mercurial repository
- Push out the changes to your remote repository:
$ hg push ssh://hg.xp-dev.com/repo
Alternatively, you could even do the following:
- Enable a Mercurial Source Control
- Clone the new (empty) remote Mercurial repository:
$ hg clone ssh://hg.xp-dev.com/repo$ cd repo - Add and commit all the folders and files into your local Mercurial repository
- Push out the changes to your remote repository:
$ hg push
Migrating Mercurial Repositories to XP-Dev.com
Steps below will publish your existing Mercurial repository to XP-Dev.com, including tags:
- Enable a Mercurial Source Control
- In your existing Mercurial repository, simply push your loca repository to your remote XP-Dev.com one:
$ hg push ssh://hg.xp-dev.com/repo@
Finally …
At this point, you should be able to clone your repository as you would normally do:
$ hg clone ssh://hg.xp-dev.com/repo
