cleanSource: Support Mercurial

This commit is contained in:
Eelco Dolstra 2014-02-03 23:43:54 +01:00
parent 9e7fe29e41
commit 34638ebc1e

View File

@ -10,7 +10,7 @@ rec {
cleanSource =
let filter = name: type: let baseName = baseNameOf (toString name); in ! (
# Filter out Subversion and CVS directories.
(type == "directory" && (baseName == ".git" || baseName == ".svn" || baseName == "CVS")) ||
(type == "directory" && (baseName == ".git" || baseName == ".svn" || baseName == "CVS" || baseName == ".hg")) ||
# Filter out backup files.
(lib.hasSuffix "~" baseName)
);