From 07269ebdb9bf814e454c1bf8333215c3d0282add Mon Sep 17 00:00:00 2001 From: Tuncer Ayaz Date: Tue, 7 Dec 2010 19:32:58 +0100 Subject: Add VCS dir check for bzr and svn --- src/rebar_deps.erl | 5 +++++ 1 file changed, 5 insertions(+) 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. -- cgit v1.1