# HG changeset patch
# User Matt Harbison <matt_harbi...@yahoo.com>
# Date 1513128518 18000
#      Tue Dec 12 20:28:38 2017 -0500
# Node ID d170af7c54722ee27aa5249e704cbfba404c0fa4
# Parent  380a4fb92c06e6725ec3027661ecf6f6d9e6cd1d
lfs: use 'ui' provided to `upgrade` for output, instead of stealing srcrepo's

Also spotted by Yuya.

diff --git a/hgext/lfs/wrapper.py b/hgext/lfs/wrapper.py
--- a/hgext/lfs/wrapper.py
+++ b/hgext/lfs/wrapper.py
@@ -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):
_______________________________________________
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel

Reply via email to