summaryrefslogtreecommitdiff
path: root/commit.d
diff options
context:
space:
mode:
authorkes31 <kriserik@quantentunnel.de>2013-10-01 08:05:43 +0200
committerkes31 <kriserik@quantentunnel.de>2013-10-01 08:05:43 +0200
commit3f83f64594e1d89bb774a7f2194448225bea8fea (patch)
tree67f1b93d93539fed050da7b51cb2d4b0e99228eb /commit.d
parent316662205a8d4ecc2e0b7868d97b319f2a308371 (diff)
Autopush support for mercurial added.
The commit script was edited, for using the default branch of mercurial to do autopush.
Diffstat (limited to 'commit.d')
-rwxr-xr-xcommit.d/99push2
1 files changed, 2 insertions, 0 deletions
diff --git a/commit.d/99push b/commit.d/99push
index 9a5d81e..5aa8d21 100755
--- a/commit.d/99push
+++ b/commit.d/99push
@@ -2,6 +2,8 @@
if [ -n "$PUSH_REMOTE" ]; then
if [ "$VCS" = git ] && [ -d .git ]; then
git push "$PUSH_REMOTE" master || true
+ elif [ "$VCS" = hg ] && [ -d .hg ]; then
+ hg push "$PUSH_REMOTE" || true
else
echo "PUSH_REMOTE not yet supported for $VCS" >&2
fi