kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #25917
Re: [PATCH] Update version string formatting after git migration
-
To:
<kicad-developers@xxxxxxxxxxxxxxxxxxx>
-
From:
Maciej Sumiński <maciej.suminski@xxxxxxx>
-
Date:
Sat, 27 Aug 2016 18:28:30 +0200
-
Authentication-results:
spf=pass (sender IP is 188.184.36.50) smtp.mailfrom=cern.ch; lists.launchpad.net; dkim=none (message not signed) header.d=none;lists.launchpad.net; dmarc=bestguesspass action=none header.from=cern.ch;
-
In-reply-to:
<20160827160620.GC497@turnip>
-
Spamdiagnosticmetadata:
NSPM
-
Spamdiagnosticoutput:
1:99
-
User-agent:
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0
On 08/27/2016 06:06 PM, Chris Pavlina wrote:
> Sure, if you're trying to pin down an _exact_ commit...but how does the
> fake bzr revno help you there? The bzr repo isn't used anymore, it's not
> like you can just check the bzr log for it.
>
> All you need is a sense of how old it is. If you need something more
> fine-grained you're going to need to look at the exact commit _anyway_.
>
> I really would like someone to explain to me how these fake bzr revision
> numbers are useful _when the commits themselves aren't tagged with
> them_. If I give you "revision 7423", you can't just go jump to that
> revision, it's only useful in the context of "this is older than this
> build 7992 I have", and I don't think many of us are keeping around
> multiple builds from the same day...
It is fairly easy to convert commit hashes to revision numbers:
# get the current revision number
$ git rev-list --count HEAD
9353
# show me hash of revision 9353
$ git rev-list --reverse HEAD | sed '9353!d'
beafaa2d8d3fad6951fc659f641ffc50de99164c
I may add aliases to our included git config file if it helps.
Personally I do not mind git hashes, it does not change much if one
looks for a revision number or a hash.
Regards,
Orson
Attachment:
signature.asc
Description: OpenPGP digital signature
References