[llvm-dev] [cfe-dev] [lldb-dev] GitHub anyone?

Robinson, Paul via llvm-dev llvm-dev at lists.llvm.org
Thu Jun 2 11:22:57 PDT 2016


> > How do you get monotonically increasing number with a history graph?
> 
> I think what we're trying to get is a "pushed" revision number, i.e.
> tracking the state of the upstream repositories at a given time.

I think I've mentioned this before but internally we are (mostly) using
"rev-list --count --first-parent branch-name" which gives us a 
monotonically increasing number per-branch.  The --first-parent means 
each merge counts as one, which is enough for build-number uniqueness.
Unique sequential build numbers meet our internal needs.  If this number
gets incorporated into the version numbering self-reported by Clang/LLVM,
then it's not hard to map back onto git commits.
--paulr



More information about the llvm-dev mailing list