hgweb page with hg log -b <branchname>

Thomas Arendsen Hein thomas at intevation.de
Wed Dec 30 04:19:26 CST 2009


* Sune Foldager <cryo at cyanite.org> [20091229 23:17]:
> Showing a log filtered by branch name (like log -b) seems only partially
> useful... because technically the commits tagged with a given name don't
> really constitute a "branch" in a graph sense. For that, all ancestors
> would need to be included. With hg log, this would mean something like
> "hg log -f -r <branch name>", for the tip-most head of the branch at
> least. For others, the revision must be provided directly.

A workaround for this could be to provide a separate repository for
users to browse, currently this is done for the stable branch in
Mercurial's main and crew repositories.

In the crew repository I have the following hook:

changegroup.stable = hg push -qf -r stable ../crew-stable || true

This way the stable changesets of pushes to crew are forwarded to
the crew-stable repository for people to look at.

Thomas

-- 
thomas at intevation.de - http://intevation.de/~thomas/ - OpenPGP key: 0x5816791A
Intevation GmbH, Neuer Graben 17, 49074 Osnabrueck - AG Osnabrueck, HR B 18998
Geschaeftsfuehrer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner


More information about the Mercurial-devel mailing list