This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Add revision number to gcc version?
- From: David Daney <ddaney at avtrex dot com>
- To: Daniel Jacobowitz <drow at false dot org>
- Cc: "H. J. Lu" <hjl at lucon dot org>, Mike Stump <mrs at apple dot com>, gcc at gcc dot gnu dot org
- Date: Thu, 15 Dec 2005 16:09:41 -0800
- Subject: Re: Add revision number to gcc version?
- References: <20051114171441.GA12412@lucon.org> <787EE306-43A7-4D88-B458-E39420CED0D7@apple.com> <20051114220547.GA16652@lucon.org> <20051215221609.GA25537@lucon.org> <43A1F57A.50903@avtrex.com> <20051215233529.GA16869@nevyn.them.org>
Daniel Jacobowitz wrote:
On Thu, Dec 15, 2005 at 03:00:10PM -0800, David Daney wrote:
I like this, but what if you also did an svn status to see if there were
any modifications WRT the branch/revision and then add either 'clean' or
'modified' to the information.
So you would get (gcc-4_1-branch revision 108596 modified) or
(gcc-4_1-branch revision 108596 clean)
I think we already had this discussion and decided that svn status took
too long in many cases.
Maybe have a configure option to disable svn status and return 'unknown'
if you disable the svn status part.
It is unfortunate that svn status is so slow, as I think this would be
useful information to know.
FWIW:
[daney@dl2 gcc]$ time svn status -q
M libjava/java/util/GregorianCalendar.java
M libjava/java/util/Calendar.java
real 0m9.361s
user 0m2.023s
sys 0m1.198s
[daney@dl2 gcc]$ time find . -name dave -ls
real 0m0.857s
user 0m0.223s
sys 0m0.536s
If the buffer cache does not contain the needed blocks, it is
significantly slower.
David Daney