Support older, more deployed version of mercurial

This commit is contained in:
Dave Smith 2010-04-14 10:39:46 -06:00
parent ab817cd020
commit 7218213d1c

View file

@ -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}.