/util/hg_hooks: 358668c35bc7: Pass all arguments to the hg proce...

Daniel Atallah datallah at pidgin.im
Fri Jul 13 00:27:55 EDT 2012


Changeset: 358668c35bc74135d783ff7dd5e7a672cc42a65e
Author:	 Daniel Atallah <datallah at pidgin.im>
Date:	 2012-07-13 00:27 -0400
Branch:	 default
URL: http://hg.pidgin.im/util/hg_hooks/rev/358668c35bc7

Description:

Pass all arguments to the hg process to facilitate --force

diffstat:

 notify_repo_sync.sh |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (10 lines):

diff --git a/notify_repo_sync.sh b/notify_repo_sync.sh
--- a/notify_repo_sync.sh
+++ b/notify_repo_sync.sh
@@ -8,5 +8,5 @@
 	WEBROOT=`echo "$REPO" | sed -e "s/^\/srv\/mercurial-server\/repos\//\//"`
 	NOTIFICATION_REPO=/srv/mercurial-server/notification-repo
 
-	nohup env -i hg --config notify.webroot=$WEBROOT --config cia.webroot=$WEBROOT --cwd $NOTIFICATION_REPO pull $1 >> /tmp/notifypull.log 2>&1 &
+	nohup env -i hg --config notify.webroot=$WEBROOT --config cia.webroot=$WEBROOT --cwd $NOTIFICATION_REPO pull $@ >> /tmp/notifypull.log 2>&1 &
 fi



More information about the Commits mailing list