Mercurial > hg-stable
changeset 35013:58e7791e243b
ui: add configlist doctest to document a bit more of the whitespace behavior
I'm surprised this wasn't explicitly tested, so I added a test.
author | Augie Fackler <augie@google.com> |
---|---|
date | Wed, 25 Oct 2017 23:01:54 -0400 |
parents | 3ce0e4b51f78 |
children | 5910db5d1913 |
files | mercurial/ui.py |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/ui.py Wed Nov 01 17:19:45 2017 -0500 +++ b/mercurial/ui.py Wed Oct 25 23:01:54 2017 -0400 @@ -695,6 +695,9 @@ >>> u.setconfig(s, b'list1', b'this,is "a small" ,test') >>> u.configlist(s, b'list1') ['this', 'is', 'a small', 'test'] + >>> u.setconfig(s, b'list2', b'this, is "a small" , test ') + >>> u.configlist(s, b'list2') + ['this', 'is', 'a small', 'test'] """ # default is not always a list v = self.configwith(config.parselist, section, name, default,