Skip to content

Commit

Permalink
Get push-to-try working on Windows and without a post-commit hook to …
Browse files Browse the repository at this point in the history
…reset phases
  • Loading branch information
mhammond committed Aug 6, 2013
1 parent 18e011b commit 0258b51
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion git-push-to-try
Expand Up @@ -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

0 comments on commit 0258b51

Please sign in to comment.