[Bug 4842] New: allow template aliases to be defined in config

mercurial-bugs at selenic.com mercurial-bugs at selenic.com
Thu Sep 24 15:45:47 CDT 2015


http://bz.selenic.com/show_bug.cgi?id=4842

            Bug ID: 4842
           Summary: allow template aliases to be defined in config
           Product: Mercurial
           Version: earlier
          Hardware: PC
                OS: Windows
            Status: UNCONFIRMED
          Severity: feature
          Priority: wish
         Component: templater
          Assignee: bugzilla at selenic.com
          Reporter: rm at fb.com
                CC: mercurial-devel at selenic.com

We have command aliases and revset aliases. We should have template aliases as
well.

Proposal:

  [templates]
  mydata = '{branches} {bookmarks}'
  mylog = '{desc|firstline} {mydata}'

  [ui]
  logtemplate='{mylog}\n'

This would make composing log templates much better.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Mercurial-devel mailing list