subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From danie...@apache.org
Subject svn commit: r1378960 - in /subversion/trunk/tools/server-side/svnpubsub: README.txt svnwcsub.py
Date Thu, 30 Aug 2012 14:34:13 GMT
Author: danielsh
Date: Thu Aug 30 14:34:12 2012
New Revision: 1378960

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

* svnwcsub.py
  (BackgroundWorker._update):
    Create file '.revision' with the revision number.

* README.txt:
    Document that.

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=1378960&r1=1378959&r2=1378960&view=diff
==============================================================================
--- subversion/trunk/tools/server-side/svnpubsub/README.txt (original)
+++ subversion/trunk/tools/server-side/svnpubsub/README.txt Thu Aug 30 14:34:12 2012
@@ -40,3 +40,9 @@ 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/^URL:.//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=1378960&r1=1378959&r2=1378960&view=diff
==============================================================================
--- subversion/trunk/tools/server-side/svnpubsub/svnwcsub.py (original)
+++ subversion/trunk/tools/server-side/svnpubsub/svnwcsub.py Thu Aug 30 14:34:12 2012
@@ -252,6 +252,7 @@ class BackgroundWorker(threading.Thread)
         ### check the loglevel before running 'svn info'?
         info = svn_info(self.svnbin, self.env, wc.path)
         logging.info("updated: %s now at r%s", wc.path, info['Revision'])
+        open(os.path.join(wc.path, '.revision'), 'w').write(info['Revision'])
 
     def _cleanup(self, wc):
         "Run a cleanup on the specified working copy."



Mime
View raw message