On Tue, Apr 23, 2013 at 07:42:05AM -0500, John Mehr wrote: > ... > Because the current, stable and releng branches all use > /usr/src by default, implementing a custom svnversion to > inform newvers.sh of which revision exists in /usr/src > would be problematic without leaving a small bread crumb > there for newvers.sh to use. If this is ok to do, I can > include this in the next revision (which should be ready > to go in the next couple of days). > ...
Please note that what svnversion reports is the last revision number of the *repository* as of the most recent update of the working copy in question -- not (necessarily) the last revision that actually applied to that working copy. To illustrate: g1-227(9.1-S)[1] cd /usr/src g1-227(9.1-S)[2] svnversion 249793M g1-227(9.1-S)[3] svn info Path: . Working Copy Root Path: /usr/src URL: file:///svn/freebsd/src/base/stable/9 Repository Root: file:///svn/freebsd/src/base Repository UUID: ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f Revision: 249793 Node Kind: directory Schedule: normal Last Changed Author: mckusick Last Changed Rev: 249788 Last Changed Date: 2013-04-22 23:28:49 -0700 (Mon, 22 Apr 2013) g1-227(9.1-S)[4] uname -v FreeBSD 9.1-STABLE #434 r249788M/249793:901504: Tue Apr 23 04:48:16 PDT 2013 r...@g1-227.catwhisker.org:/usr/obj/usr/src/sys/CANARY g1-227(9.1-S)[5] (Note the "M" suffix, indicating that I've modified the sources. That is because I modified newvers.sh to provide the string "r249788M/249793:901504" instead of what the "stock" newvers.sh would provide, which would have been "r249793M".) Peace, david -- David H. Wolfskill da...@catwhisker.org Taliban: Evil men with guns afraid of truth from a 14-year old girl. See http://www.catwhisker.org/~david/publickey.gpg for my public key.
pgpGsIr1gzMzB.pgp
Description: PGP signature