[PATCH] hgweb: don't display branch hashes in summary
Josef "Jeff" Sipek
jeffpc at josefsipek.net
Tue Nov 7 06:27:27 UTC 2006
On Mon, Nov 06, 2006 at 10:10:25PM -0800, Brendan Cully wrote:
> On Tuesday, 07 November 2006 at 00:55, Josef "Jeff" Sipek wrote:
> > On Mon, Nov 06, 2006 at 10:34:56PM +0100, Thomas Arendsen Hein wrote:
> > > * Josef 'Jeff' Sipek <jeffpc at josefsipek.net> [20061106 11:53]:
> > > > # HG changeset patch
> > > > # User Josef "Jeff" Sipek <jeff at josefsipek.net>
> > > > # Date 1162810299 18000
> > > > # Node ID 804dbe01b06fa7ad59ec0673437513aa4cf18418
> > > > # Parent a27d90c9336eb0ae8ddab2804f845ab3a5f50681
> > > > hgweb: don't display branch hashes in summary
> > >
> > > The what is explained, but the why isn't.
> > >
> > > Why shouldn't they be displayed?
> >
> > 1) It looks ugly :)
> >
> > 2) We don't display hashes for tags => being consistent
>
> Lots of repos don't have branch names for their heads though. What
> should be displayed in this case?
I suppose it would make sense to change the hgweb_mod.py line to do
something like:
name = name or hash[:12]
This way, if you do have names you get what you'd expect, and if you don't
you just see a bunch of hashes.
If there is interest, I'll make a proper patch.
Jeff.
--
I'm somewhere between geek and normal.
- Linus Torvalds
More information about the Mercurial-devel
mailing list