www-infrastructure-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tony Stevenson <pct...@apache.org>
Subject Re: [danielsh@apache.org: svn commit: r1378960 - in /subversion/trunk/tools/server-side/svnpubsub: README.txt svnwcsub.py]
Date Thu, 30 Aug 2012 14:40:09 GMT
In the works of Daniel:

"Nice !"


On 30 Aug 2012, at 15:37, Daniel Shahaf <danielsh@apache.org> wrote:

> If your website or dist area is in svnpubsub (reminder: all CMS sites
> use svnpubsub), then you can tell what revision number the deployed tree
> is by inspecting the ".revision" file at the root of your site:
> 
> https://www.apache.org/dist/subversion/.revision
> https://subversion.apache.org/.revision
> 
> The .revision file is only updated after 'svn update' exited with code
> zero; if it is running, or exited with non-zero code, .revision won't be
> updated.
> 
> ----- Forwarded message from danielsh@apache.org -----
> 
>> Date: Thu, 30 Aug 2012 14:34:13 -0000
>> From: danielsh@apache.org
>> To: commits@subversion.apache.org
>> Subject: svn commit: r1378960 - in /subversion/trunk/tools/server-side/svnpubsub:
README.txt svnwcsub.py
>> Reply-To: dev@subversion.apache.org
>> Message-Id: <20120830143413.58F0C23889E2@eris.apache.org>
>> 
>> 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."
>> 
>> 
> 
> ----- End forwarded message -----
> 
> ______________________________________________________________________
> This email has been scanned by the Symantec Email Security.cloud service.
> For more information please visit http://www.symanteccloud.com
> ______________________________________________________________________

Cheers,
Tony

----------------------------------
Tony Stevenson

tony@pc-tony.com
tony@caret.cam.ac.uk
pctony@apache.org

http://www.pc-tony.com

GPG - 1024D/51047D66
----------------------------------


Mime
View raw message