On Tue, Jun 16, 2009 at 02:02:03PM -0400, James Carlson wrote: > In short, Mercurial just doesn't do that at > all, and versioning is something better left to packaging anyway.
well, archives keep *you* mentioning http://www.selenic.com/mercurial/wiki/KeywordExtension That not really counts towards "doesnt do that at all", does it? > > > The higher level issue (how does versioning work anyway?) has been > > > discussed several times. > > > > I've read the two mail threads mentioned in "Mercurial Workflow"/"No > > ID keywords". The thread where it was decided to drop sccs keywords > > only talks and cares about versioning of the modules and other sun built > > binaries. What I am interested in is to tell which system header files > > were used to produce user's binaries. I want to be able to approximate > > user's compilation environment given a binary of a questionable origin. > > That's a good question, and I'm afraid we just have no way of doing > that. > > In theory, we could develop some new tool to stamp the header files in > ON builds, but I'm not sure it would necessarily solve the problem. Why not? As soon as headers get unique idents we can use those. > > > You see, we put into binaries (to comment sections and debug sections) > > lots of info one can use to reproduce the environment: user's ident > > values, versions of the compiler components and the linker. And we used > > to put useful ident strings of system headers as well. Not anymore. > > > > So since #pragma-ident-to-comment-section path is now useless to tell the > > header files from the binary, I am looking for any reasonable subsitute. > > In theory it would be enough to have hg hash. But something more readable > > and in a sence monotoneously increasing would be better. > > I think it'd be nice if the tool chain "knew" that a given file came > from packaged software, and extracted the packaging-resident > information necessary to identify the source. Still, we need some way to imprint this information into the executable built from that source. ident/mcs combo did that for us previously. regards, Fedor.
