changeset 35397:a7ff4071c8aa

lfs: use 'ui' provided to `upgrade` for output, instead of stealing srcrepo's Also spotted by Yuya.
author Matt Harbison <matt_harbison@yahoo.com>
date Tue, 12 Dec 2017 20:28:38 -0500
parents c8edeb03ca94
children 2123e7629ec0
files hgext/lfs/wrapper.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/lfs/wrapper.py	Tue Dec 12 20:22:38 2017 -0500
+++ b/hgext/lfs/wrapper.py	Tue Dec 12 20:28:38 2017 -0500
@@ -313,7 +313,7 @@
 
     for dirpath, dirs, files in srclfsvfs.walk():
         for oid in files:
-            srcrepo.ui.write(_('copying lfs blob %s\n') % oid)
+            ui.write(_('copying lfs blob %s\n') % oid)
             lfutil.link(srclfsvfs.join(oid), dstlfsvfs.join(oid))
 
 def upgraderequirements(orig, repo):