Show More
@@ -5214,11 +5214,6 b' def paths(ui, repo, search=None, **opts)' | |||
|
5214 | 5214 | assert subopt not in (b'name', b'url') |
|
5215 | 5215 | if showsubopts: |
|
5216 | 5216 | fm.plain(b'%s:%s = ' % (name, subopt)) |
|
5217 | if isinstance(value, bool): | |
|
5218 | if value: | |
|
5219 | value = b'yes' | |
|
5220 | else: | |
|
5221 | value = b'no' | |
|
5222 | 5217 | display = urlutil.path_suboptions_display[subopt] |
|
5223 | 5218 | value = display(value) |
|
5224 | 5219 | fm.condwrite(showsubopts, subopt, b'%s\n', value) |
@@ -688,6 +688,11 b' def pathsuboption(option, attr, display=' | |||
|
688 | 688 | return register |
|
689 | 689 | |
|
690 | 690 | |
|
691 | def display_bool(value): | |
|
692 | """display a boolean suboption back to the user""" | |
|
693 | return b'yes' if value else b'no' | |
|
694 | ||
|
695 | ||
|
691 | 696 | @pathsuboption(b'pushurl', b'_pushloc') |
|
692 | 697 | def pushurlpathoption(ui, path, value): |
|
693 | 698 | u = url(value) |
@@ -768,7 +773,7 b' def delta_reuse_policy(ui, path, value):' | |||
|
768 | 773 | return DELTA_REUSE_POLICIES.get(value) |
|
769 | 774 | |
|
770 | 775 | |
|
771 | @pathsuboption(b'multi-urls', b'multi_urls') | |
|
776 | @pathsuboption(b'multi-urls', b'multi_urls', display=display_bool) | |
|
772 | 777 | def multiurls_pathoption(ui, path, value): |
|
773 | 778 | res = stringutil.parsebool(value) |
|
774 | 779 | if res is None: |
General Comments 0
You need to be logged in to leave comments.
Login now