equal
deleted
inserted
replaced
26 for name, value in items.items(): |
26 for name, value in items.items(): |
27 ui.setconfig('auth', name, value) |
27 ui.setconfig('auth', name, value) |
28 return ui |
28 return ui |
29 |
29 |
30 def test(auth, urls=None): |
30 def test(auth, urls=None): |
31 print('CFG:', pycompat.sysstr(stringutil.pprint(auth))) |
31 print('CFG:', pycompat.sysstr(stringutil.pprint(auth, bprefix=True))) |
32 prefixes = set() |
32 prefixes = set() |
33 for k in auth: |
33 for k in auth: |
34 prefixes.add(k.split('.', 1)[0]) |
34 prefixes.add(k.split('.', 1)[0]) |
35 for p in prefixes: |
35 for p in prefixes: |
36 for name in ('.username', '.password'): |
36 for name in ('.username', '.password'): |