Show More
@@ -200,7 +200,8 b' def showbookmarks(**args):' | |||||
200 | repo = args['ctx']._repo |
|
200 | repo = args['ctx']._repo | |
201 | bookmarks = args['ctx'].bookmarks() |
|
201 | bookmarks = args['ctx'].bookmarks() | |
202 | current = repo._bookmarkcurrent |
|
202 | current = repo._bookmarkcurrent | |
203 |
|
|
203 | makemap = lambda v: {'bookmark': v, 'current': current} | |
|
204 | c = [makemap(v) for v in bookmarks] | |||
204 | f = _showlist('bookmark', bookmarks, **args) |
|
205 | f = _showlist('bookmark', bookmarks, **args) | |
205 | return _hybrid(f, c, lambda x: x['bookmark']) |
|
206 | return _hybrid(f, c, lambda x: x['bookmark']) | |
206 |
|
207 | |||
@@ -242,7 +243,8 b' def showextras(**args):' | |||||
242 | field of this changeset.""" |
|
243 | field of this changeset.""" | |
243 | extras = args['ctx'].extra() |
|
244 | extras = args['ctx'].extra() | |
244 | extras = util.sortdict((k, extras[k]) for k in sorted(extras)) |
|
245 | extras = util.sortdict((k, extras[k]) for k in sorted(extras)) | |
245 |
|
|
246 | makemap = lambda k: {'key': k, 'value': extras[k]} | |
|
247 | c = [makemap(k) for k in extras] | |||
246 | f = _showlist('extra', c, plural='extras', **args) |
|
248 | f = _showlist('extra', c, plural='extras', **args) | |
247 | return _hybrid(f, c, lambda x: '%s=%s' % (x['key'], x['value'])) |
|
249 | return _hybrid(f, c, lambda x: '%s=%s' % (x['key'], x['value'])) | |
248 |
|
250 | |||
@@ -269,7 +271,8 b' def showfilecopies(**args):' | |||||
269 | copies.append((fn, rename[0])) |
|
271 | copies.append((fn, rename[0])) | |
270 |
|
272 | |||
271 | copies = util.sortdict(copies) |
|
273 | copies = util.sortdict(copies) | |
272 |
|
|
274 | makemap = lambda k: {'name': k, 'source': copies[k]} | |
|
275 | c = [makemap(k) for k in copies] | |||
273 | f = _showlist('file_copy', c, plural='file_copies', **args) |
|
276 | f = _showlist('file_copy', c, plural='file_copies', **args) | |
274 | return _hybrid(f, c, lambda x: '%s (%s)' % (x['name'], x['source'])) |
|
277 | return _hybrid(f, c, lambda x: '%s (%s)' % (x['name'], x['source'])) | |
275 |
|
278 | |||
@@ -282,7 +285,8 b' def showfilecopiesswitch(**args):' | |||||
282 | """ |
|
285 | """ | |
283 | copies = args['revcache'].get('copies') or [] |
|
286 | copies = args['revcache'].get('copies') or [] | |
284 | copies = util.sortdict(copies) |
|
287 | copies = util.sortdict(copies) | |
285 |
|
|
288 | makemap = lambda k: {'name': k, 'source': copies[k]} | |
|
289 | c = [makemap(k) for k in copies] | |||
286 | f = _showlist('file_copy', c, plural='file_copies', **args) |
|
290 | f = _showlist('file_copy', c, plural='file_copies', **args) | |
287 | return _hybrid(f, c, lambda x: '%s (%s)' % (x['name'], x['source'])) |
|
291 | return _hybrid(f, c, lambda x: '%s (%s)' % (x['name'], x['source'])) | |
288 |
|
292 |
General Comments 0
You need to be logged in to leave comments.
Login now