[PATCH v2] templates: add substring and string length operations

Kevin Bullock kbullock+mercurial at ringworld.org
Tue Jul 18 17:15:55 EDT 2017


> On Jul 18, 2017, at 16:10, Rodrigo Damazio <rdamazio at google.com> wrote:
> 
> Hold on, I have a newer version I'm finishing which will support slicing over lists as well, as Yuya suggested.

OK, dropped for now.

pacem in terris / мир / शान्ति / ‎‫سَلاَم‬ / 平和
Kevin R. Bullock

> On Tue, Jul 18, 2017 at 2:01 PM, Kevin Bullock <kbullock+mercurial at ringworld.org> wrote:
> > On Jul 14, 2017, at 18:42, Rodrigo Damazio Bovendorp via Mercurial-devel <mercurial-devel at mercurial-scm.org> wrote:
> >
> > # HG changeset patch
> > # User Rodrigo Damazio Bovendorp <rdamazio at google.com>
> > # Date 1500075683 25200
> > #      Fri Jul 14 16:41:23 2017 -0700
> > # Node ID c4bac4ea7b1ea923d6ba4299cd9c974469b39cb0
> > # Parent  c0d8de2724ce6240d2a4241aff78ce2ee92359c2
> > templates: add substring and string length operations
> >
> > This will allow substr(text, start, end) and strlen(text) in templates,
> > permitting various text formatting, such as making a (non-graphing) log line be
> > limited to terminal width ("substr(desc, 0, termwidth)")
> 
> Looks straightforward, queued, thanks.
> 
> pacem in terris / мир / शान्ति / ‎‫سَلاَم‬ / 平和
> Kevin R. Bullock
> 
> 



More information about the Mercurial-devel mailing list