changeset 16:03afb04eae5a

Add remote configs
author Yasutaka Higa <e115763@ie.u-ryukyu.ac.jp>
date Sun, 02 Feb 2014 18:19:39 +0900
parents b3ce1cf12487
children 4810f100dd19
files config/remote_config/README config/remote_config/changegroup.sh config/remote_config/hgrc
diffstat 3 files changed, 15 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/config/remote_config/README	Sun Feb 02 18:19:39 2014 +0900
@@ -0,0 +1,5 @@
+config for remote repository.
+
+Apply: move changegroup.sh, hgrc into .hg directory.
+
+Usage: if pushed commits in configred repository, automatically run "hg update" and "./build.sh" by hook.
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/config/remote_config/changegroup.sh	Sun Feb 02 18:19:39 2014 +0900
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+export PATH=$HOME/.rbenv/bin:$PATH
+
+eval "$(rbenv init -)"
+
+hg update
+./build.sh
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/config/remote_config/hgrc	Sun Feb 02 18:19:39 2014 +0900
@@ -0,0 +1,2 @@
+[hooks]
+changegroup = .hg/changegroup.sh