[PATCH] hgweb: add heads to gitweb summary
Thomas Arendsen Hein
thomas at intevation.de
Fri Oct 13 09:05:55 UTC 2006
* Brendan Cully <brendan at kublai.com> [20061013 00:39]:
> + def heads(**map):
> + parity = 0
> + count = 0
> +
> + branches = self.repo.branchlookup(self.repo.heads())
> + revs = dict.fromkeys([cl.rev(n) for n in branches]).keys()
I'm not sure if using the known-to-be-replaced branch code here is
good, so showing the hash might be a better option for now.
Additionally we can get around the problem with conflicting command
names with cmd=heads vs. http://hg.kublai.com/mercurial/crew/heads
easily now: If the NWI heads command is mapped to cmd=somethingelse,
then we can show a separate page here.
But having it on the summary page is useful anyway.
Thomas
--
Email: thomas at intevation.de
http://intevation.de/~thomas/
More information about the Mercurial-devel
mailing list