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