What I was talking about is basically that except that it's the upstream changeset. I think Ali pointed out in an email I can't find at the moment that if someone sends output to the list, we have no idea what they started with if we only have their local most recent changeset.

Gabe

Nathan Binkert wrote:
What exactly are you trying to do? Stick the changset in the output? If so, do it how we do the date.

On May 21, 2008, at 1:12 PM, Ali Saidi <[EMAIL PROTECTED]> wrote:

This diff stamps a file adds the mercurial id to the output, however Nate complained that if the revision in the working directory changed (which could happen if you qdeleted a patch) then you would have to recompile (although not much just a re-linking). Something that could fix that (that I didn't try) would be to remove the build dependency from that file, but you would have to add a dependency to every other file in the build that would execute some python that would cause that file to regenerated.

Ali


<hgver.diff>

On May 21, 2008, at 4:08 PM, Gabe Black wrote:

I've been thinking about how this could actually be done, and it seems to me that there could be a hook in the head (hooks are propagated, right?) which adjusted a header file every time a changeset was pushed into the head to have that hex value in a variable. The adjustment to the header file would be part of the changeset so that moving around revisions would keep it consistent, and I don't know if you could really do it any other way. That would ensure that unless the downstream users explicitly modify that header file for some reason, which would be a little weird, the output would reflect the last changeset that was stamped by the root. One downside to all this is that that file would change constantly and clutter the history and the repository metadata.

Gabe
_______________________________________________
m5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/m5-dev


_______________________________________________
m5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/m5-dev
_______________________________________________
m5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/m5-dev

_______________________________________________
m5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/m5-dev

Reply via email to