From: Robert Kaiser Date: Sun, 31 Jan 2010 20:16:12 +0000 (+0100) Subject: add hg options to allow e.g. confining diffs to a certain named branch for some repos X-Git-Tag: EarlyBlue-2.1a1~18 X-Git-Url: https://git-public.kairo.at/?a=commitdiff_plain;h=5aa0264dcf5103ea78f411b93bfd1540857019e9;p=themes.git add hg options to allow e.g. confining diffs to a certain named branch for some repos --- diff --git a/origdiff b/origdiff index 4acd2681..a62ca895 100755 --- a/origdiff +++ b/origdiff @@ -11,24 +11,30 @@ if [ -n "$1" ]; then DST_DATE=`TZ=America/Los_Angeles date +%Y-%m-%d` HG_COMM_DIR=/mnt/mozilla/hg/comm-central + COMM_HG_OPTIONS= COMM_DIR=suite/themes/classic/ COMM_LOG=$RUN_DIR/themelog-suitedefault.$SRC_DATE.$DST_DATE.log HG_MOZ_DIR=/mnt/mozilla/hg/comm-central/mozilla + MOZ_HG_OPTIONS= MOZ_DIR=toolkit/themes/winstripe/ MOZ_LOG=$RUN_DIR/themelog-tkwinstripe.$SRC_DATE.$DST_DATE.log HG_DOMI_DIR=/mnt/mozilla/hg/comm-central/mozilla/extensions/inspector + DOMI_HG_OPTIONS= DOMI_DIR=resources/skin/classic/ DOMI_LOG=$RUN_DIR/themelog-domiclassic.$SRC_DATE.$DST_DATE.log HG_CZ_DIR=/mnt/mozilla/hg/comm-central/mozilla/extensions/irc + CZ_HG_OPTIONS= CZ_DIR=xul/skin/ CZ_LOG=$RUN_DIR/themelog-chatzilla.$SRC_DATE.$DST_DATE.log for repo in $REPO_LIST; do HG_DIR_VAR="HG_${repo}_DIR" HG_DIR=${!HG_DIR_VAR} + HG_OPTIONS_VAR="${repo}_HG_OPTIONS" + HG_OPTIONS=${!HG_OPTIONS_VAR} SKIN_DIR_VAR="${repo}_DIR" SKIN_DIR=${!SKIN_DIR_VAR} LOG_VAR="${repo}_LOG" @@ -36,7 +42,7 @@ if [ -n "$1" ]; then if [ ! -e $LOG_NAME ]; then echo "Getting $LOG_NAME..." cd $HG_DIR - LC_ALL=C hg log -d ">$SRC_DATE" $SKIN_DIR > $LOG_NAME + LC_ALL=C hg log -d ">$SRC_DATE" $HG_OPTIONS $SKIN_DIR > $LOG_NAME fi done cd $RUN_DIR