Mercurial templates: Why is it {branches} and not {branch}

Matt Mackall mpm at selenic.com
Tue Jan 18 14:26:42 CST 2011


On Tue, 2011-01-18 at 19:02 +0100, Felix Dorner wrote:
> Hi,
> 
> I wonder why it's called {branches} and not {branch}:
> hg log --template {branches}

Historical accident. Before our current named branch scheme, there's was
a short-lived scheme that worked much more like our tag scheme and
allowed changesets to be on multiple branches.

> AFAIU a plural doesn't make sense here. I guess now it's too late to
> change it, but maybe could add an alias, so {branch} would also work?

Sure, care to try making a patch?

-- 
Mathematics is the supreme nostalgia of our time.




More information about the Mercurial mailing list