hg-ssh
changeset 10 524b4a45ef0a
parent 7 2935e7232bd3
child 15 f3654416d178
--- a/hg-ssh	Thu Apr 17 11:55:04 2008 +0100
+++ b/hg-ssh	Thu Apr 17 15:36:10 2008 +0100
@@ -11,14 +11,18 @@
 # of the GNU General Public License, incorporated herein by reference.
 
 """
-hg-ssh - limit access to hg repositories reached via ssh.  Part of hg-admin-tools.
+hg-ssh - limit access to hg repositories reached via ssh.  Part of
+hg-admin-tools.
 
 This script is called by hg-ssh-wrapper with two arguments:
 
 hg-ssh <rulefile> <keyname>
 
-It expects to find the command the SSH user was trying to run in the environment variable
-SSH_ORIGINAL_COMMAND, and uses it to determine what the user was trying to do and to what repository, and then checks each rule in the rule file in turn for a matching rule which decides what to do, defaulting to disallowing the action.
+It expects to find the command the SSH user was trying to run in the
+environment variable SSH_ORIGINAL_COMMAND, and uses it to determine
+what the user was trying to do and to what repository, and then checks
+each rule in the rule file in turn for a matching rule which decides
+what to do, defaulting to disallowing the action.
 """
 
 # enable importing on demand to reduce startup time
@@ -89,6 +93,7 @@
 
 rulefile = sys.argv[1]
 keyname = sys.argv[2]
-todispatch = get_cmd(rulefile, keyname, os.environ.get('SSH_ORIGINAL_COMMAND', '?'))
+todispatch = get_cmd(rulefile, keyname, 
+    os.environ.get('SSH_ORIGINAL_COMMAND', '?'))
 dispatch.dispatch(todispatch)