I've been doing a lot of testing and can have a dozen different copies of 
rsyslog that all claim to be the same version number.

the ability of git to give more precise versions (as described in the 
message from the git mailing list below) would be handy in eliminating 
confusion.

the nice thing is that if a person is using a tagged version, this just 
reports the tag with nothing extra, so changing the makefile to use this 
would not affect most people.

David Lang

---------- Forwarded message ----------
Date: Thu, 22 Oct 2009 10:01:25 +0200
From: Martin Langhoff <[email protected]>
To: Robin Rosenberg <[email protected]>
Cc: [email protected], [email protected]
Subject: Re: Deciding between Git/Mercurial

On Sun, Sep 27, 2009 at 8:01 PM, Robin Rosenberg
<[email protected]> wrote:
> s?ndag 27 september 2009 14:24:32 skrev Anteru 
> <[email protected]>:
>> Mercurial's revision number system: With git, I get an SHA1 hash for
>> every commit, but it's not possible to see whether Hash1 is newer than
>> Hash2, while Mecurial also adds a running number to each commit. What's
>
> But those numbers cannot be communicated since they are local to your
> clone.

You can use git-describe, which will look for the latest tag, and make
a combo of latest tag, commits since the tag, short form of sha1. So
you get "v1.6.3-33-g1234" - 33 commits after 1.6.3. Works very well to
integrate in versioning. The git project itself uses it in the
Makefile to set the versions, same as the kernel folk do -- I use it
to version even RPM/DEBs.

hth,



m
-- 
  [email protected]
  [email protected] -- School Server Architect
  - ask interesting questions
  - don't get distracted with shiny stuff  - working code first
  - http://wiki.laptop.org/go/User:Martinlanghoff
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com

Reply via email to