Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 4 Jan 2024 12:49:03 -0700
From:      Warner Losh <imp@bsdimp.com>
To:        Jamie Landeg-Jones <jamie@catflap.org>
Cc:        Tomoaki AOKI <junchoon@dec.sakura.ne.jp>, Brooks Davis <brooks@freebsd.org>,  Yuri <yuri@freebsd.org>, FreeBSD Current <freebsd-current@freebsd.org>,  Bakul Shah <bakul@iitbombay.org>
Subject:   Re: git repo port issues?
Message-ID:  <CANCZdfrUHDbWd7_SzsF67be6xjpXPVQUD5y33DPpD-tO_0UMTw@mail.gmail.com>
In-Reply-To: <202401041914.404JEJCm083648@donotpassgo.dyslexicfish.net>
References:  <202401031913.403JDZBt028036@donotpassgo.dyslexicfish.net> <ZZWz-14AXfcSY2AD@spindle.one-eyed-alien.net> <46C8698A-A004-4B5F-9107-6D9FD3685074@iitbombay.org> <ZZXui1gm0IIVoWca@spindle.one-eyed-alien.net> <20240104183539.cef54811b98fe53c5841edca@dec.sakura.ne.jp> <202401041914.404JEJCm083648@donotpassgo.dyslexicfish.net>

next in thread | previous in thread | raw e-mail | index | archive | help
--000000000000c2494a060e24065b
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

On Thu, Jan 4, 2024, 12:14=E2=80=AFPM Jamie Landeg-Jones <jamie@catflap.org=
> wrote:

> Tomoaki AOKI <junchoon@dec.sakura.ne.jp> wrote:
>
> >
> > Or create database (key-value store would be sufficient) storing commit
> > order (like r* of svn) and commit hash.
> > I'm still not certain whether commit order or commit hash should be the
> > "key". Possibly store hash as the key fisrt and store assigned MONOTONI=
C
> > order as value, then, add the just-stored order as key and hash as
> > value in another database would be neeed. If the database can contain 2
> > value for 1 key, it would be suitable for you to store the assigned
> > time in UTC as "when it is committed to FreeBSD master repo".
>
> I do miss the incrementing "r" value - it's a nice immediate way to
> tell which update is more recent. Actually, to me, that is more important
> than the date - I've attempted to base my changes on the date due to the
> absense of such a useful field.
>

See sys/conf/newvers.sh for the 'n' value we use in uname strings.  It's a
linear count of commits on the first-parent branch back to the start of the
repo.

Also, the dates usualy are first order correct and i use them for the stats
i run. Though I've also just dropped tags on the first commit of each year
too...

Also be advised that the pre FreeBSD 8 or so tree still has some surprising
artifacts in it.

Warner

Actually, I think I may implement such a thing on my local cgit repo.
>
> https://cgit.dyslexicfish.net/ports/latest/tree/
> https://cgit.dyslexicfish.net/src/current/tree/
>
> Cheers, Jamie
>
>

--000000000000c2494a060e24065b
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"auto"><div><br><br><div class=3D"gmail_quote"><div dir=3D"ltr" =
class=3D"gmail_attr">On Thu, Jan 4, 2024, 12:14=E2=80=AFPM Jamie Landeg-Jon=
es &lt;<a href=3D"mailto:jamie@catflap.org">jamie@catflap.org</a>&gt; wrote=
:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;bor=
der-left:1px #ccc solid;padding-left:1ex">Tomoaki AOKI &lt;<a href=3D"mailt=
o:junchoon@dec.sakura.ne.jp" target=3D"_blank" rel=3D"noreferrer">junchoon@=
dec.sakura.ne.jp</a>&gt; wrote:<br>
<br>
&gt;<br>
&gt; Or create database (key-value store would be sufficient) storing commi=
t<br>
&gt; order (like r* of svn) and commit hash.<br>
&gt; I&#39;m still not certain whether commit order or commit hash should b=
e the<br>
&gt; &quot;key&quot;. Possibly store hash as the key fisrt and store assign=
ed MONOTONIC<br>
&gt; order as value, then, add the just-stored order as key and hash as<br>
&gt; value in another database would be neeed. If the database can contain =
2<br>
&gt; value for 1 key, it would be suitable for you to store the assigned<br=
>
&gt; time in UTC as &quot;when it is committed to FreeBSD master repo&quot;=
.<br>
<br>
I do miss the incrementing &quot;r&quot; value - it&#39;s a nice immediate =
way to<br>
tell which update is more recent. Actually, to me, that is more important<b=
r>
than the date - I&#39;ve attempted to base my changes on the date due to th=
e<br>
absense of such a useful field.<br></blockquote></div></div><div dir=3D"aut=
o"><br></div><div dir=3D"auto">See sys/conf/newvers.sh for the &#39;n&#39; =
value we use in uname strings.=C2=A0 It&#39;s a linear count of commits on =
the first-parent branch back to the start of the repo.</div><div dir=3D"aut=
o"><br></div><div dir=3D"auto">Also, the dates usualy are first order corre=
ct and i use them for the stats i run. Though I&#39;ve also just dropped ta=
gs on the first commit of each year too...</div><div dir=3D"auto"><br></div=
><div dir=3D"auto">Also be advised that the pre FreeBSD 8 or so tree still =
has some surprising artifacts in it.</div><div dir=3D"auto"><br></div><div =
dir=3D"auto">Warner</div><div dir=3D"auto"><br></div><div dir=3D"auto"><div=
 class=3D"gmail_quote"><blockquote class=3D"gmail_quote" style=3D"margin:0 =
0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Actually, I think I may implement such a thing on my local cgit repo.<br>
<br>
<a href=3D"https://cgit.dyslexicfish.net/ports/latest/tree/" rel=3D"norefer=
rer noreferrer" target=3D"_blank">https://cgit.dyslexicfish.net/ports/lates=
t/tree/</a><br>
<a href=3D"https://cgit.dyslexicfish.net/src/current/tree/" rel=3D"noreferr=
er noreferrer" target=3D"_blank">https://cgit.dyslexicfish.net/src/current/=
tree/</a><br>
<br>
Cheers, Jamie<br>
<br>
</blockquote></div></div></div>

--000000000000c2494a060e24065b--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfrUHDbWd7_SzsF67be6xjpXPVQUD5y33DPpD-tO_0UMTw>