diff --git a/git-push-to-try b/git-push-to-try index 28cd0a8..84bcb2d 100755 --- a/git-push-to-try +++ b/git-push-to-try @@ -34,12 +34,20 @@ shift git-push-to-hg $tip_cmd $revs "$hg_repo" +# avoid using process substitution because Windows. +# Use a temp file instead. +commit_msg_filename=$TMP/git-temp-$RANDOM-$$ + commit_msg=$(hg log -R "$hg_repo" -l1 --template '{desc}') -hg_cmd qref -sl <(echo "try: $@ $commit_msg") +echo "try: $@ $commit_msg" > $commit_msg_filename +hg_cmd qref -sl $commit_msg_filename +rm $commit_msg_filename echo "try: $@" hg -R "$hg_repo" push -f ssh://hg.mozilla.org/try echo echo "https://tbpl.mozilla.org/?tree=Try&rev=$(hg -R "$hg_repo" log -l1 --template "{node|short}")" +# reset phases - probably not needed once bug 725362 lands. +hg_cmd phase --force --draft "mq()" hg_cmd qpop -a