219 wrapfunction(bundle2, 'writenewbundle', wrapper.writenewbundle) |
221 wrapfunction(bundle2, 'writenewbundle', wrapper.writenewbundle) |
220 |
222 |
221 @templatekeyword('lfs_files') |
223 @templatekeyword('lfs_files') |
222 def lfsfiles(repo, ctx, **args): |
224 def lfsfiles(repo, ctx, **args): |
223 """List of strings. LFS files added or modified by the changeset.""" |
225 """List of strings. LFS files added or modified by the changeset.""" |
|
226 args = pycompat.byteskwargs(args) |
|
227 |
224 pointers = wrapper.pointersfromctx(ctx) # {path: pointer} |
228 pointers = wrapper.pointersfromctx(ctx) # {path: pointer} |
225 return sorted(pointers.keys()) |
229 files = sorted(pointers.keys()) |
|
230 |
|
231 makemap = lambda v: { |
|
232 'file': v, |
|
233 } |
|
234 |
|
235 # TODO: make the separator ', '? |
|
236 f = templatekw._showlist('lfs_file', files, args) |
|
237 return templatekw._hybrid(f, files, makemap, pycompat.identity) |
226 |
238 |
227 @command('debuglfsupload', |
239 @command('debuglfsupload', |
228 [('r', 'rev', [], _('upload large files introduced by REV'))]) |
240 [('r', 'rev', [], _('upload large files introduced by REV'))]) |
229 def debuglfsupload(ui, repo, **opts): |
241 def debuglfsupload(ui, repo, **opts): |
230 """upload lfs blobs added by the working copy parent or given revisions""" |
242 """upload lfs blobs added by the working copy parent or given revisions""" |