Mercurial > hg
comparison hgext/lfs/__init__.py @ 36519:94c4ae452293
templatekw: pass templater to _showlist() by an explicit argument
Prepares for switching to the (context, mapping) API.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sun, 25 Feb 2018 15:43:35 +0900 |
parents | 9ff5cbfbc26a |
children | c3f9d0c303e8 |
comparison
equal
deleted
inserted
replaced
36518:7937850a523d | 36519:94c4ae452293 |
---|---|
376 'lfsoid': pointers[v].oid() if pointers[v] else None, | 376 'lfsoid': pointers[v].oid() if pointers[v] else None, |
377 'lfspointer': templatekw.hybriddict(pointer(v)), | 377 'lfspointer': templatekw.hybriddict(pointer(v)), |
378 } | 378 } |
379 | 379 |
380 # TODO: make the separator ', '? | 380 # TODO: make the separator ', '? |
381 f = templatekw._showlist('lfs_file', files, args) | 381 f = templatekw._showlist('lfs_file', files, args['templ'], args) |
382 return templatekw._hybrid(f, files, makemap, pycompat.identity) | 382 return templatekw._hybrid(f, files, makemap, pycompat.identity) |
383 | 383 |
384 @command('debuglfsupload', | 384 @command('debuglfsupload', |
385 [('r', 'rev', [], _('upload large files introduced by REV'))]) | 385 [('r', 'rev', [], _('upload large files introduced by REV'))]) |
386 def debuglfsupload(ui, repo, **opts): | 386 def debuglfsupload(ui, repo, **opts): |