Micha Bieber wrote:
> Because it is a pretty often needed feature for many regular
> build processes, I jumped in here with the request - completely innocent
> from a users point of view.
Which is why there is a FAQ entry for how to accomplish it. Perhaps we
can improve the FAQ answer but there is no way to do anything different
given the nature of the existing WC code. It's not a matter of how
difficult it would be to add to the codebase; it is that without a
[pretty much complete] redesign, any change that would cause massive
slowdowns for _all_ users, not just the ones who wished to use this feature.
I'd recommend reading through the section of the book on Revisions:
and especially the section on "Limitations of Mixed Revisions" as this
touches on why a $GlobalRev$ keyword would be bad for performance. The
short answer is that the only time that keywords get updated in a file
is when the file is updated, and to have a $GlobalRev$ keyword would
normally require updating the entire WC after every commit (which for
large projects would be a massive slowdown). See Greg's message for a
possible way to shortcut that search/replace, but it isn't guaranteed
that this will be acceptable performance-wise either.
> Do you talk about the link from my original posting or do I miss
> something ? As far, as I can see the mentioned solution is platform-dependent.
Yes, the example code is specific to compiled/linked applications using
a Makefile, but in any non-trivial project, there will be some sort of
build process that can (in general) be leveraged to perform exactly the
same kind of transformation. That's why I asked about what language you
were using so we could suggest a way to use svnversion to extract that
information as part of the normal build process. It's not going to be
platform-independent, but it can be done everywhere, just differently.
Director of Information Research and Technology
Rowman & Littlefield Publishing Group
4501 Forbes Boulevard
Lanham, MD 20706
To unsubscribe, e-mail: firstname.lastname@example.org
For additional commands, e-mail: email@example.com
Received on Fri Jun 3 16:01:42 2005