{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{'
$dgit --dgit=$dgit --dget:-u --dput:--config=$tmp/dput.cf \
-dtest-dummy $DGIT_TEST_OPTS $DGIT_TEST_DEBUG \
- -k39B13D8A "$@"
+ -k39B13D8A $t_dgit_xopts "$@"
: '}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}
'
}
t-setup-import () {
local setupname=$1
+ local setupsrc
+ local lock
if [ "x$tmpbase" = x ]; then
# ADTTMP was set on entry to tests/lib, so we
# are not sharing tmp area between tests
setupsrc="$tmp"
+ lock="$tmp/.dummy.lock"
else
setupsrc="$tmpbase/$setupname"
+ lock="$setupsrc.lock"
fi
local simport="$setupsrc/IMPORT"
if ! [ -e "$simport" ]; then
- with-lock-ex -w "$simport.lock" \
+ with-lock-ex -w "$lock" \
xargs -0 -a $tmp/.save-env \
bash -xec '
cd "$1"; shift
echo refs/tags/$tagpfx/${v//\~/_}
}
+t-format-ref () {
+ git log -n1 --pretty=format:"$1" "$2"
+}
+
+t-sametree-parent () {
+ local ref=$1
+ local parent
+ local ctree=$(t-format-ref '%T' "$ref")
+ while :; do
+ local psame=''
+ for parent in $(t-format-ref '%P' "$ref"); do
+ local ptree=$(t-format-ref '%T' "$parent")
+ if [ "x$ptree" = "x$ctree" ]; then
+ psame+=" $parent"
+ fi
+ done
+ case "$psame" in ""|" * *") break ;; esac
+ ref="${psame# }"
+ done
+ echo "$ref"
+}
+
t-check-pushed-master () {
local master=`t-git-get-ref refs/heads/master`
if [ x$master = x$t_ref_val ]; then return; fi
t-commit () {
local msg=$1
- v=${2:-1.$revision}
+ v=${2:-${majorv:-1}.$revision}
dch -v$v --distribution ${3:-unstable} "$1"
git add debian/changelog
debcommit