comparison tests/test-doctest.py @ 36511:aa3294027936

cmdutil: expand filename format string by templater (BC) This is BC because '{}' could be a valid filename before, but I believe good programmers wouldn't use such catastrophic output filenames. On the other hand, '\' has to be escaped since it is a directory separator on Windows. Thanks to Matt Harbison for spotting this weird issue. This patch also adds cmdutil.rendertemplate(ctx, tmpl, props) as a simpler way of expanding template against single changeset. .. bc:: '{' in output filename passed to archive/cat/export is taken as a start of a template expression.
author Yuya Nishihara <yuya@tcha.org>
date Sun, 07 Jan 2018 11:53:07 +0900
parents 898c6f812a51
children f99d64e8a4e4
comparison
equal deleted inserted replaced
36509:638c012a87ef 36511:aa3294027936
40 runner.run(test) 40 runner.run(test)
41 runner.summarize() 41 runner.summarize()
42 42
43 testmod('mercurial.changegroup') 43 testmod('mercurial.changegroup')
44 testmod('mercurial.changelog') 44 testmod('mercurial.changelog')
45 testmod('mercurial.cmdutil')
45 testmod('mercurial.color') 46 testmod('mercurial.color')
46 testmod('mercurial.config') 47 testmod('mercurial.config')
47 testmod('mercurial.context') 48 testmod('mercurial.context')
48 testmod('mercurial.dagparser', optionflags=doctest.NORMALIZE_WHITESPACE) 49 testmod('mercurial.dagparser', optionflags=doctest.NORMALIZE_WHITESPACE)
49 testmod('mercurial.dispatch') 50 testmod('mercurial.dispatch')