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/08/30 16:34:13 UTC

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

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."



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

Posted by Daniel Shahaf <da...@apache.org>.
Bert Huijben wrote on Thu, Aug 30, 2012 at 20:41:38 +0200:
> 
> 
> > -----Original Message-----
> > From: danielsh@apache.org [mailto:danielsh@apache.org]
> > Sent: donderdag 30 augustus 2012 16:34
> > To: commits@subversion.apache.org
> > Subject: svn commit: r1378960 - in /subversion/trunk/tools/server-
> > side/svnpubsub: README.txt svnwcsub.py
> > 
> > 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`.
> 
> Doesn't this document that you wrote the URL to the revision file?
> (Or did I miss some magic sed syntax?)

Heh, no.  r1379063.

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

Posted by Bert Huijben <be...@qqmail.nl>.

> -----Original Message-----
> From: danielsh@apache.org [mailto:danielsh@apache.org]
> Sent: donderdag 30 augustus 2012 16:34
> To: commits@subversion.apache.org
> Subject: svn commit: r1378960 - in /subversion/trunk/tools/server-
> side/svnpubsub: README.txt svnwcsub.py
> 
> 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`.

Doesn't this document that you wrote the URL to the revision file?
(Or did I miss some magic sed syntax?)

	Bert