Deployer: Mercurial support?

Created on 17 Dec 2016  路  10Comments  路  Source: deployphp/deployer

| Q | A
| ----------------- | ---
| Issue Type | Question
| Deployer Version | master
| Local Machine OS | N/A
| Remote Machine OS | N/A

Is there a way to use it with Mercurial(hg) repo?

repository is mandatory in configuration, and it only accepts git, as I can see, but what to do, if I don't use git?

feature

Most helpful comment

Now you can override deploy:update_code with you own strategy:

task('deploy:update_code', function () {
    run('hg clone {{repository}} {{release_path}}');
});

All 10 comments

I have plans to add support for other vcs.

@curious-jim What kind of branching do you use? Common branches or bookmarks?

I use common branches

I think we can come in form of recipe, or plugin.

@elfet Mercurial is DVCS as git and have almost same API: pull, push, clone, merge, branch, hg update equals git checkout. So I guess that it'd better just create VcsInterface and GitVcs, MercurialVcs, etc. Also we can define concrete vcs type by repository env parameter. What do you think about it?

@pluseg nice idea, let me think about it a while. PS. interesting how this done in capistrano and ansible.

+1

any news?

Now you can override deploy:update_code with you own strategy:

task('deploy:update_code', function () {
    run('hg clone {{repository}} {{release_path}}');
});

Tested, working great. Thanks

Was this page helpful?
0 / 5 - 0 ratings

Related issues

lsv picture lsv  路  4Comments

exts picture exts  路  3Comments

timkley picture timkley  路  4Comments

osbulbul picture osbulbul  路  3Comments

chouex picture chouex  路  4Comments