envoy-deployscript icon indicating copy to clipboard operation
envoy-deployscript copied to clipboard

Different scm (mercurial)

Open enstain opened this issue 9 years ago • 1 comments

I'm going to use this script on bitbucket mercurial repo, so I have to rewrite "git" calls into "hg". I guess, instead of rewriting script, we could incapsulate exact commands working with repository into modules, so just set some kind of var like $scm = "git" ("mercurial", anything else) in envoy.config like Capistrano does

enstain avatar Feb 22 '17 12:02 enstain

ok,i see ,in the script there are many commands:

git fetch origin;
git pull;
git checkout -B xxx
git clone xxx

i haven't use mercurial (hg) yet. but i think we should build some command map for your request.

nickfan avatar Feb 22 '17 23:02 nickfan