mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-23 05:31:28 +00:00
nightly build, scripts: Remove svn support
Remove deprecated svn support.
This commit is contained in:
@@ -48,16 +48,7 @@ done
|
||||
for d in "${@-.}"; do
|
||||
(
|
||||
if cd "$d"; then
|
||||
if [ -e .svn ]; then
|
||||
if ! type -p svn >&/dev/null; then
|
||||
echo "$0: svn: not found."
|
||||
exit 0
|
||||
fi
|
||||
"$(dirname "$0")"/list-non-source-files |
|
||||
while read -r f; do
|
||||
if ! word_in_list "$f" "${exclude[@]}"; then rm -rf -- "$f"; fi;
|
||||
done
|
||||
elif [ -e .git ] || [ -e ../.git ]; then
|
||||
if [ -e .git ] || [ -e ../.git ]; then
|
||||
if ! type -p git >&/dev/null; then
|
||||
echo "$0: git: not found."
|
||||
exit 0
|
||||
|
||||
@@ -18,11 +18,7 @@ prefix_matches() {
|
||||
for d in "${@-.}"; do
|
||||
(
|
||||
cd "$d" &&
|
||||
if [ -e .svn ]; then
|
||||
svn status --no-ignore |
|
||||
grep '^[I?] ' |
|
||||
cut -c8-
|
||||
elif git branch >&/dev/null; then
|
||||
if git branch >&/dev/null; then
|
||||
exec 3< <(find . -type f | cut -c3- | grep -v '^\.git/' | sort)
|
||||
git ls-tree -r HEAD | cut -f2 -d' ' | sort |
|
||||
while read -r f; do
|
||||
|
||||
@@ -5,25 +5,12 @@ list_source_files() {
|
||||
|
||||
d="$(cd "$1" && echo "$PWD")"
|
||||
r="$d"
|
||||
while [ "$r" != "/" ] && [ ! -e "$r/.svn" ] && [ ! -e "$r/.git" ] &&
|
||||
while [ "$r" != "/" ] && [ ! -e "$r/.git" ] &&
|
||||
[ ! -e "$r/.hg" ]; do
|
||||
r="$(dirname "$r")"
|
||||
done
|
||||
|
||||
if [ -e "$r/.svn" ]; then
|
||||
(
|
||||
cd "$d" || exit $?
|
||||
svn status -v | \
|
||||
grep -vE '^[D?]|^Performing|^$' | \
|
||||
cut -c3- | \
|
||||
while read -r a b c f; do
|
||||
if [ -f "$f" ] || [ -h "$f" ]; then
|
||||
echo "$a $b $c" >/dev/null
|
||||
echo "$f"
|
||||
fi
|
||||
done
|
||||
)
|
||||
elif [ -e "$r/.git" ]; then
|
||||
if [ -e "$r/.git" ]; then
|
||||
subdir="${d#"${r}"}"
|
||||
if [ "$r" != "" ]; then
|
||||
( cd "$d" && git ls-tree --name-only -r HEAD ) | sed "s|^$subdir/||"
|
||||
|
||||
Reference in New Issue
Block a user