Mercurial > hg
comparison hgext/lfs/wrapper.py @ 35478:5a73a0446afd
lfs: use ui.note() and ui.debug() instead of ui.write() and their flags
Even though the upload/download message is still in a ui.verbose check, I
switched that to ui.note() too so that the 'ui.note' label is applied. The
debug message is no longer marked for translation because check-code complained.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Thu, 21 Dec 2017 23:31:46 -0500 |
parents | 417e8e040102 |
children | 2526579a30e0 |
comparison
equal
deleted
inserted
replaced
35477:bb6a80fc969a | 35478:5a73a0446afd |
---|---|
271 return orig(ui, repo, source, filename, bundletype, outgoing, *args, | 271 return orig(ui, repo, source, filename, bundletype, outgoing, *args, |
272 **kwargs) | 272 **kwargs) |
273 | 273 |
274 def extractpointers(repo, revs): | 274 def extractpointers(repo, revs): |
275 """return a list of lfs pointers added by given revs""" | 275 """return a list of lfs pointers added by given revs""" |
276 ui = repo.ui | 276 repo.ui.debug('lfs: computing set of blobs to upload\n') |
277 if ui.debugflag: | |
278 ui.write(_('lfs: computing set of blobs to upload\n')) | |
279 pointers = {} | 277 pointers = {} |
280 for r in revs: | 278 for r in revs: |
281 ctx = repo[r] | 279 ctx = repo[r] |
282 for p in pointersfromctx(ctx).values(): | 280 for p in pointersfromctx(ctx).values(): |
283 pointers[p.oid()] = p | 281 pointers[p.oid()] = p |