From c11cd7bc6260ad5da6f6070be1608b1f172a784a Mon Sep 17 00:00:00 2001 From: Loic d'Anterroches Date: Mon, 26 Jan 2009 09:44:32 +0100 Subject: [PATCH] Fixed issue 110, SyncMercurial error and undocumented requirement. Added the documentation. --- doc/syncmercurial.mdtext | 14 ++++++++++++++ scripts/SyncMercurial.sh | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/doc/syncmercurial.mdtext b/doc/syncmercurial.mdtext index e4565fc..0d13de9 100644 --- a/doc/syncmercurial.mdtext +++ b/doc/syncmercurial.mdtext @@ -54,6 +54,20 @@ need to put the following lines in your configuration file: $cfg['idf_plugin_syncmercurial_private_notify'] = '/home/indefero/tmp/notify.tmp'; $cfg['idf_plugin_syncmercurial_private_url'] = '/hg/%s'; +You also need to provide the base definition of the hgrc file. For example: + + $cfg['idf_plugin_syncmercurial_hgrc'] = array( + 'web' => array('push_ssl' => 'false', + 'allow_push' => '', + 'description' => '', + 'allow_archive' => 'bz2, zip, gz', + 'style' => 'gitweb', + 'contact' => ''), + 'hooks' => array(), + 'extensions' => array(), + ); + + ## Cron configuration As InDefero modifies the private_indefero.conf, apache needs to be reloaded. diff --git a/scripts/SyncMercurial.sh b/scripts/SyncMercurial.sh index 888fe15..c067e9d 100644 --- a/scripts/SyncMercurial.sh +++ b/scripts/SyncMercurial.sh @@ -4,7 +4,7 @@ private_notify="/home/indefero/tmp/notify.tmp" reload_cmd="/usr/sbin/apachectl -k graceful" if [ -e $private_notify ]; then - $reload_cmd rm -f $private_notify + $reload_cmd fi