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

Greg Ward greg-hg at gerg.ca
Mon Jan 24 07:52:27 CST 2011


On Tue, Jan 18, 2011 at 1:02 PM, Felix Dorner <fdorner at tuenti.com> wrote:
> I wonder why it's called {branches} and not {branch}:
> hg log --template {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?

Mercurial 1.8 will have a {branch} keyword that behaves sensibly:

http://selenic.com/hg/rev/d79fdff55627

(Thanks to Eric Eisner for filling this gap!)

Greg


More information about the Mercurial mailing list