mirror of
https://github.com/correl/rebar.git
synced 2024-12-18 11:06:20 +00:00
Support older, more deployed version of mercurial
This commit is contained in:
parent
ab817cd020
commit
7218213d1c
1 changed files with 3 additions and 3 deletions
|
@ -250,8 +250,8 @@ use_source(AppDir, App, VsnRegex, Source, Count) ->
|
||||||
|
|
||||||
download_source(AppDir, {hg, Url, Rev}) ->
|
download_source(AppDir, {hg, Url, Rev}) ->
|
||||||
ok = filelib:ensure_dir(AppDir),
|
ok = filelib:ensure_dir(AppDir),
|
||||||
Cmd = ?FMT("hg clone -u ~s ~s", [Rev, Url]),
|
rebar_utils:sh(?FMT("hg clone -U ~s", [Url]), [], filename:dirname(AppDir)),
|
||||||
rebar_utils:sh(Cmd, [], filename:dirname(AppDir));
|
rebar_utils:sh(?FMT("hg update ~s", [Rev]), [], AppDir);
|
||||||
download_source(AppDir, {git, Url, Rev}) ->
|
download_source(AppDir, {git, Url, Rev}) ->
|
||||||
ok = filelib:ensure_dir(AppDir),
|
ok = filelib:ensure_dir(AppDir),
|
||||||
rebar_utils:sh(?FMT("git clone -n ~s", [Url]), [], filename:dirname(AppDir)),
|
rebar_utils:sh(?FMT("git clone -n ~s", [Url]), [], filename:dirname(AppDir)),
|
||||||
|
@ -293,7 +293,7 @@ scm_client_vsn(Path, VsnArg, VsnRegex) ->
|
||||||
false
|
false
|
||||||
end.
|
end.
|
||||||
|
|
||||||
required_scm_client_vsn(hg) -> {1, 4};
|
required_scm_client_vsn(hg) -> {1, 3};
|
||||||
required_scm_client_vsn(git) -> {1, 6};
|
required_scm_client_vsn(git) -> {1, 6};
|
||||||
required_scm_client_vsn(bzr) -> {2, 0};
|
required_scm_client_vsn(bzr) -> {2, 0};
|
||||||
required_scm_client_vsn(svn) -> {1, 6}.
|
required_scm_client_vsn(svn) -> {1, 6}.
|
||||||
|
|
Loading…
Reference in a new issue