From owner-freebsd-questions@freebsd.org Sun Mar 21 22:36:13 2021 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 220675AF8FF for ; Sun, 21 Mar 2021 22:36:13 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: from mail-oi1-x22c.google.com (mail-oi1-x22c.google.com [IPv6:2607:f8b0:4864:20::22c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4F3XXr1Rz9z4Xxr for ; Sun, 21 Mar 2021 22:36:12 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: by mail-oi1-x22c.google.com with SMTP id z15so11170496oic.8 for ; Sun, 21 Mar 2021 15:36:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=npKNEwdnpX/BKBhABAfizOtCRfCrXq/EGd18hLQG9mU=; b=lDuk1rAL5ZpjYJW2lsTq7rU8bzRTw4wu0qNgafi53TjXaHhDsPZ6G8AYabGP2cD6N5 /oT3MklMIl/HQPA5XfU1nGWLlcM79LWOKx81VqzobLSGWE39yqDrKEXFbTfOJq6xeagJ sBjhqHfXeZES9SBMILnXwrBYebpK0QB5LoilFfBQVWUAuXG4JsjVAwfXtxUuR7v5Kwc2 A+5p+KgjlIpxyqoKY2mdiSUYWeYgKuJTjgLquJa7li0o8r6gJW6PljmlnDBuCcPeWZmM 7DhfpxMCRn8ukqGyqDAHkykGAgn1g4cDgKYzVxw/MPSSxTR1GicaYh8W+e7e9EY5+/xR Tusw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=npKNEwdnpX/BKBhABAfizOtCRfCrXq/EGd18hLQG9mU=; b=k3PPVKvIMuX7py5rFWGeQap3bBsTCnMUAPpEZgdVGw6ulxfXyqaKTnZz2R1ZtbKT8r Eta9nCl64wzN/fJ8PNDnNlSdhwiATFs13Ql6JUQcgSO89LMMgOrq5XGWhNh+eLOyaLE6 xwsVxxYq9EvORLKUrvr59kmtXeBLAFf/FPYqhznrgzW2+xm0VICKa6zr2QQVSE0KI6qZ NgWja2TDjOAWAH/r/GBxYsmEkcpFEZqNtjXThmxHzAMzzWoY08+vU5enP6yhijf8hOBl xzcgBwIFAGkFhwnWnYY2YRRgPKZmIlmX8cCcueuiyn+eTNP/EeY53CWi1eTwPpcWFM/E qa8Q== X-Gm-Message-State: AOAM531J8t3Nfz8zn/n1VhVKWrw5k8ksaSnSz2KeWqgnmspYzUgZt8lJ wcGtP7fFLDl+H6JycLiER8KfCP78U3BxRupahS+Yp8VERnc= X-Google-Smtp-Source: ABdhPJyHlrm4T88Rin7ZWbicGpQLeHN0XOduSsfk22cfaCJqtn2vcZfoPkRaFcD6pFnd25AjTAqH0F9C1qJLlrzrxQ4= X-Received: by 2002:a54:450c:: with SMTP id l12mr8085361oil.133.1616366171120; Sun, 21 Mar 2021 15:36:11 -0700 (PDT) MIME-Version: 1.0 References: <20210321165225.11fa1f5559373032ea629412@3dresearch.com> In-Reply-To: <20210321165225.11fa1f5559373032ea629412@3dresearch.com> From: Kevin Oberman Date: Sun, 21 Mar 2021 15:35:54 -0700 Message-ID: Subject: Re: /usr/src revision number To: Janos Dohanics Cc: FreeBSD Questions X-Rspamd-Queue-Id: 4F3XXr1Rz9z4Xxr X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=lDuk1rAL; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of kob6558@gmail.com designates 2607:f8b0:4864:20::22c as permitted sender) smtp.mailfrom=kob6558@gmail.com X-Spamd-Result: default: False [-3.58 / 15.00]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-0.88)[-0.882]; FORGED_SENDER(0.30)[rkoberman@gmail.com,kob6558@gmail.com]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RBL_DBL_DONT_QUERY_IPS(0.00)[2607:f8b0:4864:20::22c:from]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FROM_NEQ_ENVFROM(0.00)[rkoberman@gmail.com,kob6558@gmail.com]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; SPAMHAUS_ZRD(0.00)[2607:f8b0:4864:20::22c:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::22c:from]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-questions] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.34 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Mar 2021 22:36:13 -0000 On Sun, Mar 21, 2021 at 1:53 PM Janos Dohanics 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 > >