373 return util.sortdict(items) |
373 return util.sortdict(items) |
374 |
374 |
375 makemap = lambda v: { |
375 makemap = lambda v: { |
376 'file': v, |
376 'file': v, |
377 'lfsoid': pointers[v].oid() if pointers[v] else None, |
377 'lfsoid': pointers[v].oid() if pointers[v] else None, |
378 'lfspointer': templatekw.hybriddict(pointer(v)), |
378 'lfspointer': templateutil.hybriddict(pointer(v)), |
379 } |
379 } |
380 |
380 |
381 # TODO: make the separator ', '? |
381 # TODO: make the separator ', '? |
382 f = templatekw._showlist('lfs_file', files, templ, mapping) |
382 f = templateutil._showlist('lfs_file', files, templ, mapping) |
383 return templatekw._hybrid(f, files, makemap, pycompat.identity) |
383 return templateutil.hybrid(f, files, makemap, pycompat.identity) |
384 |
384 |
385 @command('debuglfsupload', |
385 @command('debuglfsupload', |
386 [('r', 'rev', [], _('upload large files introduced by REV'))]) |
386 [('r', 'rev', [], _('upload large files introduced by REV'))]) |
387 def debuglfsupload(ui, repo, **opts): |
387 def debuglfsupload(ui, repo, **opts): |
388 """upload lfs blobs added by the working copy parent or given revisions""" |
388 """upload lfs blobs added by the working copy parent or given revisions""" |