You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by da...@apache.org on 2012/09/10 12:40:29 UTC

svn commit: r1382749 - in /subversion/trunk/tools/server-side/svnpubsub: README.txt svnwcsub.py

Author: danielsh
Date: Mon Sep 10 10:40:28 2012
New Revision: 1382749

URL: http://svn.apache.org/viewvc?rev=1382749&view=rev
Log:
[in tools/server-side/svnpubsub]

Remove the '.revision' feature.  Those who want it can implement it via
the post-update hook.

* svnwcsub.py
  (BackgroundWorker._update): Remove code.
  
* README.txt:
    Remove documentation.

Modified:
    subversion/trunk/tools/server-side/svnpubsub/README.txt
    subversion/trunk/tools/server-side/svnpubsub/svnwcsub.py

Modified: subversion/trunk/tools/server-side/svnpubsub/README.txt
URL: http://svn.apache.org/viewvc/subversion/trunk/tools/server-side/svnpubsub/README.txt?rev=1382749&r1=1382748&r2=1382749&view=diff
==============================================================================
--- subversion/trunk/tools/server-side/svnpubsub/README.txt (original)
+++ subversion/trunk/tools/server-side/svnpubsub/README.txt Mon Sep 10 10:40:28 2012
@@ -40,10 +40,3 @@ Installation instructions:
 
    (eg svnwcsub.py, svnpubsub/client.py,
        'curl -i http://${hostname}:2069/commits/json')
-
-
-Other notes:
-
-- svnwcsub.py will create a file called ".revision" in the root of the working
-  copy it updates.  That file will contain
-  `svn info ./ | sed -ne s/^Revision:.//p`.

Modified: subversion/trunk/tools/server-side/svnpubsub/svnwcsub.py
URL: http://svn.apache.org/viewvc/subversion/trunk/tools/server-side/svnpubsub/svnwcsub.py?rev=1382749&r1=1382748&r2=1382749&view=diff
==============================================================================
--- subversion/trunk/tools/server-side/svnpubsub/svnwcsub.py (original)
+++ subversion/trunk/tools/server-side/svnpubsub/svnwcsub.py Mon Sep 10 10:40:28 2012
@@ -276,15 +276,6 @@ class BackgroundWorker(threading.Thread)
         info = svn_info(self.svnbin, self.env, wc.path)
         logging.info("updated: %s now at r%s", wc.path, info['Revision'])
 
-        ### update the .revision file
-        dotrevision = os.path.join(wc.path, '.revision') 
-        try:
-            os.unlink(dotrevision)
-        except OSError, e:
-            if e.errno != errno.ENOENT:
-                raise
-        open(dotrevision, 'w').write(info['Revision'])
-
         ## Run the hook
         if self.hook:
             args = [self.hook, ['post-update', 'boot'][boot],