Mercurial: Fix vcs_commit() so that a commit message is specified. Also, fix relative path names so that one can remove a package by running sunrise-commit from a category directory instead of from a repository's root directory.

This commit is contained in:
Nathan Phillip Brink 2010-09-20 10:48:39 -04:00
parent 779394ac1f
commit f10dea040c

View File

@ -146,7 +146,9 @@ find_ebuilds() {
done
# Replace with the filtered version
SC_CHANGE_LIST=${SC_REMOVED_PACKAGE_LIST}
for pkg in ${CS_REMOVED_PACKAGE_LIST}; do
SC_CHANGE_LIST=${SC_ROOT}${pkg}
done
local sdir
SC_ROOT=${category:+../}
@ -220,7 +222,7 @@ vcs_commit() {
if [ ${SC_VCS%-svn} = git ]; then
exec git commit -m "${msg}" ${1+-o} -- "${@}"
elif [ ${SC_VCS} = hg ]; then
exec hg commit -m "${MSG}" -- ${1-.} "${@}"
exec hg commit -m "${msg}" -- ${1-.} "${@}"
elif [ ${SC_VCS} = svn ]; then
exec svn commit -m "${msg}" -- "${@}"
fi