php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #50758 Print revision number
Submitted: 2010-01-14 21:55 UTC Modified: 2015-04-16 18:47 UTC
From: hannes dot magnusson at gmail dot com Assigned:
Status: Open Package: Doc Build problem
PHP Version: 5.3SVN-2010-01-14 (snap) OS: *
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: hannes dot magnusson at gmail dot com
New email:
PHP Version: OS:

 

 [2010-01-14 21:55 UTC] hannes dot magnusson at gmail dot com
Description:
------------
Currently the PHP manual prints the build date (i.e. when the manual 
was rendered), but that doesn't help figuring out how up2date the 
manual actually is.

If we could print out revision number, or even figuring out the last 
'svn up' timestamp, and print that with the builddate..

maybe introduce a PI for it?
<?getSVNRevision?> or something?


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-01-15 00:15 UTC] rquadling@php.net
As the manual is a collection of a LOT of files, each page would have a 
different date though surely?


 [2010-01-15 08:26 UTC] bjori@php.net
I was just thinking about the current checkout revision, not per-file.

I think figuring out the revision/last modification date for every 
single file would be a bit to much hassle.
 [2010-01-15 12:29 UTC] rquadling@php.net
If $Revision became $Id in the XML files (a one of BIG hit with all 
that that entails for translators), then a PI could extract the 
elements from the $Id entry.

But that is a massive issue for translators.

Unless there is a way to alter a file in SVN _WITHOUT_ it updating the 
Revision - which, thinking about it, sorts of invalidates the whole 
Revision process really.



But, running ...

svn info phpdoc/modules/doc-all/en

outputs ...

Path: phpdoc\modules\doc-all\en
URL: http://svn.php.net/repository/phpdoc/en/trunk
Repository Root: http://svn.php.net/repository
Repository UUID: c90b9560-bf6c-de11-be94-00142212c4b1
Revision: 293572
Node Kind: directory
Schedule: normal
Last Changed Author: stas
Last Changed Rev: 293566
Last Changed Date: 2010-01-15 01:58:44 +0000 (Fri, 15 Jan 2010)

Processing that should be fairly easy.
 [2010-03-12 16:20 UTC] moacir@php.net
-Type: Bug +Type: Feature/Change Request
 [2015-04-16 18:47 UTC] cmb@php.net
-Summary: [FR] Print revision number +Summary: Print revision number
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Dec 03 18:01:30 2024 UTC