lfs: use 'ui' provided to `upgrade` for output, instead of stealing srcrepo's
authorMatt Harbison <matt_harbison@yahoo.com>
Tue, 12 Dec 2017 20:28:38 -0500
changeset 35397 a7ff4071c8aa
parent 35396 c8edeb03ca94
child 35398 2123e7629ec0
lfs: use 'ui' provided to `upgrade` for output, instead of stealing srcrepo's Also spotted by Yuya.
hgext/lfs/wrapper.py
--- 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):