From f10dea040c3495e4413628435fd92046a7b8aef3 Mon Sep 17 00:00:00 2001 From: Nathan Phillip Brink Date: Mon, 20 Sep 2010 10:48:39 -0400 Subject: [PATCH] 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. --- sunrise-commit | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sunrise-commit b/sunrise-commit index ca6c136..c9bfe4f 100755 --- a/sunrise-commit +++ b/sunrise-commit @@ -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