{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{'
$dgit --dgit=$dgit --dget:-u --dput:--config=$tmp/dput.cf \
-dtest-dummy $DGIT_TEST_OPTS $DGIT_TEST_DEBUG \
- -k39B13D8A "$@"
+ -k39B13D8A $t_dgit_xopts "$@"
: '}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}
'
}
}
t-output () {
- printf "%s\n" "$1" >$tmp/t.want
+ printf "%s${1:+\n}" "$1" >$tmp/t.want
shift
"$@" >$tmp/t.got
diff $tmp/t.want $tmp/t.got
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