[Buildbot-devel] Mercurial rev-ids 12 -> 40 char

Marcus Lindblom macke at yar.nu
Tue Jan 12 10:23:50 UTC 2010


Hi,

Would it upset anyone if I changed the getRev() step on Mercurial to get 
the full 40-char SHA-1 hex string, as opposed to the 'short' one that we 
get by default?

The reasons are:

1. there's a mismatch between the full revision id in change the the one 
returned by the source step which is both confusing and wrong (long and 
short ids don't compare equal.)

2. When a build's source-step fails, the rev id from change is shown 
grid views. If the source-step succeeds, the short rev is shown. This 
looks ugly and the mergings of compiled revs doesn't work (see above).

3. The short-rev id is not guaranteedly unique (it probably is during a 
short period though.)

4. Git always uses long-revs, so Buildbot might as well be consistent.

One could use short rev-ids, but that defeats the last two points.

By avoiding showing the full id in the HTML, it'd be easier on the eye 
too. Onecan always get the full-id by looking at the build page. (And/or 
we add the recently discussed change-link or some javascript/tooltip magic.)

Comments?

Cheers,
/Marcus







More information about the devel mailing list