Solved How to find my ports tree revision.

On a fresh version of FreeBSD 11.2, I can find out the revision used for FreeBSD base by uname -a
How can I tell the revision number of my ports tree?
I see nothing in portsnap and with a fresh install would svnlite be able to provide this?
I see an portsnap-INDEX file but it looks like md5 sigs..
/usr/ports/UPDATING only shows dates not revisions.
 
If I recall correctly portsnap(8) doesn't provide the SVN info, so there's no way to figure it out. With an SVN ports tree it's easy of course: svnlite info /usr/ports.
 
What is this telling me? Does it know I modified my ports tree?
Code:
svn: E155007: '/usr/ports' is not a working copy
Or is this because it is stock11.2-RELEASE ports tree. I have not updated it while working on a deleted port.
 
On a fresh version of FreeBSD 11.2, I can find out the revision used for FreeBSD base by uname -a
How can I tell the revision number of my ports tree?

For the base, there is some code in /usr/src/sys/conf/newvers.sh that does fetch the revision from various possible VCS tools. It then gets compiled into the kernel and can be shown with uname.

For ports no such feature does exist.
 
Back
Top