summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDave Smith <dizzyd@dizzyd.com>2010-04-14 10:39:46 -0600
committerDave Smith <dizzyd@dizzyd.com>2010-04-14 10:39:46 -0600
commit7218213d1c14c8ce0164fa9a65cc0a21537483ba (patch)
tree8f203b2ede37648268f0d4da7db58a0c5c2b8cf4 /src
parentab817cd020d141a2611ef0f2e3a663a93222d0d2 (diff)
Support older, more deployed version of mercurial
Diffstat (limited to 'src')
-rw-r--r--src/rebar_deps.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rebar_deps.erl b/src/rebar_deps.erl
index daa788e..b6efcda 100644
--- a/src/rebar_deps.erl
+++ b/src/rebar_deps.erl
@@ -250,8 +250,8 @@ use_source(AppDir, App, VsnRegex, Source, Count) ->
download_source(AppDir, {hg, Url, Rev}) ->
ok = filelib:ensure_dir(AppDir),
- Cmd = ?FMT("hg clone -u ~s ~s", [Rev, Url]),
- rebar_utils:sh(Cmd, [], filename:dirname(AppDir));
+ rebar_utils:sh(?FMT("hg clone -U ~s", [Url]), [], filename:dirname(AppDir)),
+ rebar_utils:sh(?FMT("hg update ~s", [Rev]), [], AppDir);
download_source(AppDir, {git, Url, Rev}) ->
ok = filelib:ensure_dir(AppDir),
rebar_utils:sh(?FMT("git clone -n ~s", [Url]), [], filename:dirname(AppDir)),
@@ -293,7 +293,7 @@ scm_client_vsn(Path, VsnArg, VsnRegex) ->
false
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(bzr) -> {2, 0};
required_scm_client_vsn(svn) -> {1, 6}.