improve hg-ssh-wrapper, suggest HGRCPATH trick
authorPaul Crowley <paul@lshift.net>
Thu, 17 Apr 2008 11:54:30 +0100
changeset 8 1efc50c61a26
parent 6 505d4789f91c
child 9 21d9048136dc
improve hg-ssh-wrapper, suggest HGRCPATH trick
hg-ssh-wrapper
--- a/hg-ssh-wrapper	Wed Apr 16 13:25:55 2008 +0100
+++ b/hg-ssh-wrapper	Thu Apr 17 11:54:30 2008 +0100
@@ -10,8 +10,15 @@
 # If your repository is laid out differently you may need to modify this file.
 
 set -e
-cd repos
+
+# Use a different hgrc for remote pulls - this way you can set
+# up notify for everything at once without affecting local operations
+# HGRCPATH=$(pwd)/remote-hgrc
+# export HGRCPATH
+
 # Set up this environment variable - useful for hg hooks to check.
 HG_ACL_USER=$1
 export HG_ACL_USER
-../admin/hg-admin-tools/hg-ssh hgadmin/hg-ssh-access.conf "$@"
+
+cd repos
+exec ../admin/hg-admin-tools/hg-ssh hgadmin/hg-ssh-access.conf "$@"