hgext/lfs/__init__.py
changeset 36921 32f9b7e3f056
parent 36598 c3f9d0c303e8
child 37068 aa97e06a1912
equal deleted inserted replaced
36920:6ff6e1d6b5b8 36921:32f9b7e3f056
   141     node,
   141     node,
   142     pycompat,
   142     pycompat,
   143     registrar,
   143     registrar,
   144     revlog,
   144     revlog,
   145     scmutil,
   145     scmutil,
   146     templatekw,
   146     templateutil,
   147     upgrade,
   147     upgrade,
   148     util,
   148     util,
   149     vfs as vfsmod,
   149     vfs as vfsmod,
   150     wireproto,
   150     wireproto,
   151 )
   151 )
   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"""