scripts/list-source-files: Handle Mercurial subdirectories properly

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5260 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2014-02-03 09:03:03 +00:00
parent d61106a512
commit be9a78a844
+7 -1
View File
@@ -29,7 +29,13 @@ list_source_files() {
echo "Ignored directory $1" >&2
fi
elif [ -e "$r/.hg" ]; then
hg manifest
subdir="${d#${r}}"
if [ -n "${subdir}" ]; then
subdir="${subdir#/}/"
hg manifest | sed -n "s|^$subdir||p"
else
hg manifest
fi
else
echo "Not under source control: $1 ?" >&2
fi