Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Mar 2021 15:35:54 -0700
From:      Kevin Oberman <rkoberman@gmail.com>
To:        Janos Dohanics <web@3dresearch.com>
Cc:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: /usr/src revision number
Message-ID:  <CAN6yY1vQg1qchoGuECb8smBzQxk9A12=MS0+RCMMg-vOnJeLHA@mail.gmail.com>
In-Reply-To: <20210321165225.11fa1f5559373032ea629412@3dresearch.com>
References:  <20210321165225.11fa1f5559373032ea629412@3dresearch.com>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
On Sun, Mar 21, 2021 at 1:53 PM Janos Dohanics <web@3dresearch.com> wrote:

> Hello,
>
> with svn(1) it was easy to compare the revision number of the
> updated /usr/src with the installed version of FreeBSD.
>
> For example:
>
> # svn info /usr/src
> Path: .
> Working Copy Root Path: /usr/src
> URL: svn://svn.freebsd.org/base/stable/12
> Relative URL: ^/stable/12
> Repository Root: svn://svn.freebsd.org/base
> Repository UUID: ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
> Revision: 369499
> Node Kind: directory
> Schedule: normal
> Last Changed Author: git2svn
> Last Changed Rev: 369499
> Last Changed Date: 2021-03-21 11:54:54 -0400 (Sun, 21 Mar 2021)
>
> # uname -v
> FreeBSD 12.2-STABLE r368820 TURTLE2021010401
>
> Now on my laptop I have:
>
> # uname -v
> FreeBSD 13.0-RC2 #0 releng/13.0-n244684-13c22f74953
>
> Since I'd like to update to RC3, I did:
>
> 'git clone -b stable/13 --depth 1 https://git.freebsd.org/src.git
> /usr/src'
>
> How can I find what "revision" do I have now in /usr/src and how can I
> see if it is an increment compared to the installed kernel/userland?
>
> --
> Janos Dohanics
>


> Take a look at the newd git "Getting started" guide at
> https://docs.freebsd.org/en/articles/committers-guide/#git-primer. If you
> use a shallow clone, there is no easy way. If you have a full clone, you
> will have a hash starting with 'n' followed by 6 digits. This is a sequence
> count of commits to the relevant branch. In your case, the sequence is
> n244684.
>
> Also, the recommended way to update your clone is "git pull --ff-only",
> not a new clone. Much lower overhead.
> --
> Kevin Oberman, Part time kid herder and retired Network Engineer
> E-mail: rkoberman@gmail.com
> PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683
>
>



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?CAN6yY1vQg1qchoGuECb8smBzQxk9A12=MS0+RCMMg-vOnJeLHA>