summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTuncer Ayaz <tuncer.ayaz@gmail.com>2010-12-07 19:32:58 +0100
committerTuncer Ayaz <tuncer.ayaz@gmail.com>2010-12-07 19:32:58 +0100
commit07269ebdb9bf814e454c1bf8333215c3d0282add (patch)
treef026e015da21ce3a7c27d2b8777d5f30f98bd8c9 /src
parent3e12630f2342fee628afd3112cc77fd769983ce3 (diff)
Add VCS dir check for bzr and svn
Diffstat (limited to 'src')
-rw-r--r--src/rebar_deps.erl5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/rebar_deps.erl b/src/rebar_deps.erl
index 794e423..0852b01 100644
--- a/src/rebar_deps.erl
+++ b/src/rebar_deps.erl
@@ -373,5 +373,10 @@ has_vcs_dir(git, Dir) ->
filelib:is_dir(filename:join(Dir, ".git"));
has_vcs_dir(hg, Dir) ->
filelib:is_dir(filename:join(Dir, ".hg"));
+has_vcs_dir(bzr, Dir) ->
+ filelib:is_dir(filename:join(Dir, ".bzr"));
+has_vcs_dir(svn, Dir) ->
+ filelib:is_dir(filename:join(Dir, ".svn"))
+ orelse filelib:is_dir(filename:join(Dir, "_svn"));
has_vcs_dir(_, _) ->
true.