hgweb page with hg log -b <branchname>

Sune Foldager cryo at cyanite.org
Tue Dec 29 16:17:34 CST 2009


Hello Johan, crew and list :)

Some genereal comments on this...

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.

For hgweb, I also tend to think that logs like that are a lot more
useful than a filtered log. I contemplated adding it at some point, and
it's not too hard to make it work, but there are some rather annoying
problems with the current page navigation which is purely based on
revision numbers. Without changing that, you risk nothing happening when
you click on "-50" because there are simply no commits on the branch
within that range.

Another problem with -b is how to produce a connected graph (it's
hgweb's graph mode I was/am mostly interested in seeing this feature
in). Well, these are just some thoughts. Apologies if this is a separate
problem you're trying to solve.

I suppose it won't hurt with a page showing -b output and the other
thing put into graph mode as well... except for one thing: user
confusion, since both would be called, in some way, viewing a branch.

(To compare with git, only the behavior I describe will make sense with
their branches-by-head-pointers, I suppose.)

-- 
Sune



More information about the Mercurial-devel mailing list