Fix white space
authorPaul Crowley <paul@lshift.net>
Tue, 06 Sep 2011 11:02:31 +0100
changeset 311 3cbde66305e4
parent 310 38c222727017
child 312 4e65f8242c0b
Fix white space
NEWS
README
dev/chroot-test/action/go
dev/chroot-test/action/install-installables
dev/chroot-test/copy-installables
dev/chroot-test/run-test
doc/manual.docbook
setup.py
src/init/conf/remote-hgrc.d/access.rc
src/init/hginit
src/mercurialserver/access.py
src/mercurialserver/refreshauth.py
src/mercurialserver/ruleset.py
src/mercurialserver/servelog.py
--- a/NEWS	Tue Sep 06 11:00:24 2011 +0100
+++ b/NEWS	Tue Sep 06 11:02:31 2011 +0100
@@ -40,7 +40,7 @@
 * Belatedly added NEWS file :-)
 
 Upgrading: move the paths/hgrc entry in .mercurial-server to env/HGRCPATH,
-and add an entry under paths that reads 
+and add an entry under paths that reads
 "authorized_keys = ~/.ssh/authorized_keys"
 
 ====================
@@ -89,4 +89,3 @@
 ====================
 
 * First numbered release
-
--- a/README	Tue Sep 06 11:00:24 2011 +0100
+++ b/README	Tue Sep 06 11:02:31 2011 +0100
@@ -2,7 +2,7 @@
 
 mercurial-server gives your developers remote read/write access to
 centralized Mercurial repositories using SSH public key authentication; it
-provides convenient and fine-grained key management and access control. 
+provides convenient and fine-grained key management and access control.
 
 http://www.lshift.net/mercurial-server.html
 
@@ -25,7 +25,7 @@
 Though mercurial-server is currently targeted at Debian-based systems such
 as Ubuntu, other users have reported success getting it running on other
 Unix-based systems such as Red Hat. Running it on a non-Unix system such as
-Windows is not supported. You will need root privileges to install it. 
+Windows is not supported. You will need root privileges to install it.
 
 The best way to install mercurial-server is using your package management
 system - there are pre-built .deb files on the website. However, there is
@@ -41,4 +41,3 @@
 See doc/manual.docbook for the rest of the documentation.
 
 Paul Crowley, paul@lshift.net, 2010
-
--- a/dev/chroot-test/action/go	Tue Sep 06 11:00:24 2011 +0100
+++ b/dev/chroot-test/action/go	Tue Sep 06 11:02:31 2011 +0100
@@ -33,4 +33,3 @@
 /etc/init.d/ssh stop
 
 #touch results
-
--- a/dev/chroot-test/action/install-installables	Tue Sep 06 11:00:24 2011 +0100
+++ b/dev/chroot-test/action/install-installables	Tue Sep 06 11:02:31 2011 +0100
@@ -1,6 +1,5 @@
 aptitude --allow-untrusted --quiet --without-recommends --assume-yes  install \
     make mercurial xsltproc docbook-xsl openssh-server \
-    python python-support adduser 
+    python python-support adduser
 cd mercurial-server
 make setup-adduser
-
--- a/dev/chroot-test/copy-installables	Tue Sep 06 11:00:24 2011 +0100
+++ b/dev/chroot-test/copy-installables	Tue Sep 06 11:02:31 2011 +0100
@@ -1,4 +1,3 @@
 
 hg st -mac0n -X '.hg*' -X 'dev/**' \
     | cpio -p -0 -d $BACKING/action/mercurial-server
-
--- a/dev/chroot-test/run-test	Tue Sep 06 11:00:24 2011 +0100
+++ b/dev/chroot-test/run-test	Tue Sep 06 11:02:31 2011 +0100
@@ -61,4 +61,3 @@
 
 chroot $MOUNT ./action/go
 echo "Completed successfully"
-
--- a/doc/manual.docbook	Tue Sep 06 11:00:24 2011 +0100
+++ b/doc/manual.docbook	Tue Sep 06 11:02:31 2011 +0100
@@ -45,7 +45,7 @@
 <systemitem class="systemname">spoon</systemitem> and you have
 installed mercurial-server on <systemitem
 class="systemname">jeeves</systemitem> using the package management system (see the README for more on installation). We assume that you have created your SSH public key, set up your SSH agent with this key, and that this key gives you access to <systemitem
-class="systemname">jeeves</systemitem>.  
+class="systemname">jeeves</systemitem>.
 </para>
 <screen><computeroutput>jay@spoon:~$ </computeroutput><userinput>ssh -A jeeves</userinput>
 <computeroutput>jay@jeeves:~$ </computeroutput><userinput>ssh-add -L > my-key</userinput>
@@ -532,4 +532,3 @@
 </section>
 </section>
 </article>
-
--- a/setup.py	Tue Sep 06 11:00:24 2011 +0100
+++ b/setup.py	Tue Sep 06 11:02:31 2011 +0100
@@ -14,10 +14,9 @@
     scripts = ['src/hg-ssh', 'src/refresh-auth'],
     data_files = [
         ('init', [
-            'src/init/hginit', 
-            'src/init/dot-mercurial-server', 
+            'src/init/hginit',
+            'src/init/dot-mercurial-server',
             'src/init/hgadmin-hgrc'
         ]),
     ],
 )
-
--- a/src/init/conf/remote-hgrc.d/access.rc	Tue Sep 06 11:00:24 2011 +0100
+++ b/src/init/conf/remote-hgrc.d/access.rc	Tue Sep 06 11:02:31 2011 +0100
@@ -2,4 +2,3 @@
 
 [hooks]
 pretxnchangegroup.access = python:mercurialserver.access.hook
-
--- a/src/init/hginit	Tue Sep 06 11:00:24 2011 +0100
+++ b/src/init/hginit	Tue Sep 06 11:02:31 2011 +0100
@@ -14,4 +14,3 @@
 cd repos/hgadmin
 hg init .
 cp $1/init/hgadmin-hgrc .hg/hgrc
-
--- a/src/mercurialserver/access.py	Tue Sep 06 11:00:24 2011 +0100
+++ b/src/mercurialserver/access.py	Tue Sep 06 11:02:31 2011 +0100
@@ -25,4 +25,3 @@
         if not allow(ctx):
             raise mercurial.util.Abort(_('%s: access denied for changeset %s') %
                 (__name__, mercurial.node.short(ctx.node())))
-
--- a/src/mercurialserver/refreshauth.py	Tue Sep 06 11:00:24 2011 +0100
+++ b/src/mercurialserver/refreshauth.py	Tue Sep 06 11:02:31 2011 +0100
@@ -39,7 +39,7 @@
                 if not goodkey.match(keyname):
                     # Encode it for safe quoting
                     keyname = "--base64 " + base64.b64encode(keyname)
-                p = subprocess.Popen(("ssh-keygen", "-i", "-f", ffn), 
+                p = subprocess.Popen(("ssh-keygen", "-i", "-f", ffn),
                     stdout=subprocess.PIPE, stderr=subprocess.PIPE)
                 newkey = p.communicate()[0]
                 if p.wait() == 0:
@@ -57,7 +57,6 @@
     akeys.close()
     os.chmod(akeyfile + "_new", stat.S_IRUSR)
     os.rename(akeyfile + "_new", akeyfile)
-    
+
 def hook(ui, repo, hooktype, node=None, source=None, **kwargs):
     refreshAuth()
-
--- a/src/mercurialserver/ruleset.py	Tue Sep 06 11:00:24 2011 +0100
+++ b/src/mercurialserver/ruleset.py	Tue Sep 06 11:02:31 2011 +0100
@@ -35,7 +35,7 @@
 
 class Ruleset(object):
     '''Class representing the rules in a rule file'''
-    
+
     levels = ["init", "write", "read", "deny"]
 
     def __init__(self):
@@ -44,7 +44,7 @@
 
     def set(self, **kw):
         self.preset.update(kw)
-        
+
     def get(self, k):
         return self.preset.get(k, None)
 
@@ -62,7 +62,7 @@
                 if a <= levelindex:
                     return True
         return False
-    
+
     def readfile(self, fn):
         f = open(fn)
         try:
@@ -76,10 +76,9 @@
                     ix = self.levels.index(l[0])
                 else:
                     ix = len(self.levels)
-                self.rules.append((ix, 
+                self.rules.append((ix,
                     rule([c.split("=", 1) for c in l[1:]])))
         finally:
             f.close()
 
 rules = Ruleset()
-
--- a/src/mercurialserver/servelog.py	Tue Sep 06 11:00:24 2011 +0100
+++ b/src/mercurialserver/servelog.py	Tue Sep 06 11:02:31 2011 +0100
@@ -10,10 +10,10 @@
 import time
 import fcntl
 
-try: 
+try:
     import json
     json.log
-except ImportError: 
+except ImportError:
     import simplejson as json
 
 from mercurialserver import ruleset, changes
@@ -41,4 +41,3 @@
          )))
     finally:
         log.close()
-