Show More
@@ -1610,7 +1610,7 b' def getbundlechunks(repo, source, heads=' | |||
|
1610 | 1610 | for name in getbundle2partsorder: |
|
1611 | 1611 | func = getbundle2partsmapping[name] |
|
1612 | 1612 | func(bundler, repo, source, bundlecaps=bundlecaps, b2caps=b2caps, |
|
1613 | **kwargs) | |
|
1613 | **pycompat.strkwargs(kwargs)) | |
|
1614 | 1614 | |
|
1615 | 1615 | return bundler.getchunks() |
|
1616 | 1616 |
@@ -24,6 +24,7 b' from .i18n import _' | |||
|
24 | 24 | from . import ( |
|
25 | 25 | error, |
|
26 | 26 | mdiff, |
|
27 | pycompat, | |
|
27 | 28 | util, |
|
28 | 29 | vfs as vfsmod, |
|
29 | 30 | ) |
@@ -455,7 +456,8 b' def simplemerge(ui, local, base, other, ' | |||
|
455 | 456 | extrakwargs['base_marker'] = '|||||||' |
|
456 | 457 | extrakwargs['name_base'] = name_base |
|
457 | 458 | extrakwargs['minimize'] = False |
|
458 |
for line in m3.merge_lines(name_a=name_a, name_b=name_b, |
|
|
459 | for line in m3.merge_lines(name_a=name_a, name_b=name_b, | |
|
460 | **pycompat.strkwargs(extrakwargs)): | |
|
459 | 461 | out.write(line) |
|
460 | 462 | |
|
461 | 463 | if not opts.get('print'): |
@@ -119,23 +119,24 b' def _showlist(name, values, mapping, plu' | |||
|
119 | 119 | expand 'end_foos'. |
|
120 | 120 | ''' |
|
121 | 121 | templ = mapping['templ'] |
|
122 | strmapping = pycompat.strkwargs(mapping) | |
|
122 | 123 | if not plural: |
|
123 | 124 | plural = name + 's' |
|
124 | 125 | if not values: |
|
125 | 126 | noname = 'no_' + plural |
|
126 | 127 | if noname in templ: |
|
127 | yield templ(noname, **mapping) | |
|
128 | yield templ(noname, **strmapping) | |
|
128 | 129 | return |
|
129 | 130 | if name not in templ: |
|
130 | 131 | if isinstance(values[0], bytes): |
|
131 | 132 | yield separator.join(values) |
|
132 | 133 | else: |
|
133 | 134 | for v in values: |
|
134 | yield dict(v, **mapping) | |
|
135 | yield dict(v, **strmapping) | |
|
135 | 136 | return |
|
136 | 137 | startname = 'start_' + plural |
|
137 | 138 | if startname in templ: |
|
138 | yield templ(startname, **mapping) | |
|
139 | yield templ(startname, **strmapping) | |
|
139 | 140 | vmapping = mapping.copy() |
|
140 | 141 | def one(v, tag=name): |
|
141 | 142 | try: |
@@ -146,7 +147,7 b' def _showlist(name, values, mapping, plu' | |||
|
146 | 147 | vmapping[a] = b |
|
147 | 148 | except ValueError: |
|
148 | 149 | vmapping[name] = v |
|
149 | return templ(tag, **vmapping) | |
|
150 | return templ(tag, **pycompat.strkwargs(vmapping)) | |
|
150 | 151 | lastname = 'last_' + name |
|
151 | 152 | if lastname in templ: |
|
152 | 153 | last = values.pop() |
@@ -158,7 +159,7 b' def _showlist(name, values, mapping, plu' | |||
|
158 | 159 | yield one(last, tag=lastname) |
|
159 | 160 | endname = 'end_' + plural |
|
160 | 161 | if endname in templ: |
|
161 | yield templ(endname, **mapping) | |
|
162 | yield templ(endname, **strmapping) | |
|
162 | 163 | |
|
163 | 164 | def _formatrevnode(ctx): |
|
164 | 165 | """Format changeset as '{rev}:{node|formatnode}', which is the default |
General Comments 0
You need to be logged in to leave comments.
Login now