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:
parent
779394ac1f
commit
f10dea040c
@ -146,7 +146,9 @@ find_ebuilds() {
|
|||||||
done
|
done
|
||||||
|
|
||||||
# Replace with the filtered version
|
# 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
|
local sdir
|
||||||
SC_ROOT=${category:+../}
|
SC_ROOT=${category:+../}
|
||||||
@ -220,7 +222,7 @@ vcs_commit() {
|
|||||||
if [ ${SC_VCS%-svn} = git ]; then
|
if [ ${SC_VCS%-svn} = git ]; then
|
||||||
exec git commit -m "${msg}" ${1+-o} -- "${@}"
|
exec git commit -m "${msg}" ${1+-o} -- "${@}"
|
||||||
elif [ ${SC_VCS} = hg ]; then
|
elif [ ${SC_VCS} = hg ]; then
|
||||||
exec hg commit -m "${MSG}" -- ${1-.} "${@}"
|
exec hg commit -m "${msg}" -- ${1-.} "${@}"
|
||||||
elif [ ${SC_VCS} = svn ]; then
|
elif [ ${SC_VCS} = svn ]; then
|
||||||
exec svn commit -m "${msg}" -- "${@}"
|
exec svn commit -m "${msg}" -- "${@}"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user