12345678910111213141516171819202122232425262728293031323334353637383940(* Yoann Padioleau
*
* Copyright (C) 2009 Yoann Padioleau
* Copyright (C) 2010 Facebook
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* version 2.1 as published by the Free Software Foundation, with the
* special exception on linking described in file license.txt.
*
* This library is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the file
* license.txt for more details.
*)typevcs_kind=Git|CVS|Mercurial|Subversionletstring_of_vcs_kindk=matchkwith|Git->"git"|CVS->"cvs"|Mercurial->"hg"|Subversion->"svn"lettool_of_vcs_kindk=matchkwith|Git->"git"|CVS->"cvs"|Mercurial->"hg"|Subversion->"svn"letdetect_vcs_source_treedir=match()with|_whenSys.file_exists(Filename.concatdir".git")->SomeGit|_whenSys.file_exists(Filename.concatdir"CVS")->SomeCVS|_whenSys.file_exists(Filename.concatdir".hg")->SomeMercurial|_whenSys.file_exists(Filename.concatdir".svn")->SomeSubversion|_->None