Mercurial > public > mercurial-scm > hg-stable
diff hgext/lfs/wrapper.py @ 35482: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 |
line wrap: on
line diff
--- a/hgext/lfs/wrapper.py Thu Dec 21 14:13:39 2017 -0500 +++ b/hgext/lfs/wrapper.py Thu Dec 21 23:31:46 2017 -0500 @@ -273,9 +273,7 @@ def extractpointers(repo, revs): """return a list of lfs pointers added by given revs""" - ui = repo.ui - if ui.debugflag: - ui.write(_('lfs: computing set of blobs to upload\n')) + repo.ui.debug('lfs: computing set of blobs to upload\n') pointers = {} for r in revs: ctx = repo[r]