Browse Source

Improved ./bin/sde-commit to produce status and diff for svn working copies

karasz/new-early
Alejandro Mery 17 years ago
parent
commit
c44f1e9e25
1 changed files with 10 additions and 0 deletions
  1. +10
    -0
      bin/sde-commit

+ 10
- 0
bin/sde-commit

@ -143,6 +143,16 @@ if [ -d ".git" ]; then
git-diff-index -M --cached -p HEAD | sed -e "s,^\(---\|\+\+\+\) [ab]/,\1 $root/," |
awk -f $SDEROOT/lib/sde-commit/commit-message.awk > $logfile
fi
elif [ -d ".svn" ]; then
# svn status
svn status -- $locations > $tmpfile.status
svn diff -- $locations > $tmpfile.diff
if [ -z "$logfile" ]; then
logfile=$tmpfile.log
cat $tmpfile.diff | sed -e "s,^\(---\|\+\+\+\) [ab]/,\1 $root/," |
awk -f $SDEROOT/lib/sde-commit/commit-message.awk > $logfile
fi
else
echo_abort 3 "$root: unknown version control system."
fi

Loading…
Cancel
Save