Patchwork [2,of,2] lfs: use 'ui' provided to `upgrade` for output, instead of stealing srcrepo's

login
register
mail settings
Submitter Matt Harbison
Date Dec. 13, 2017, 5:33 a.m.
Message ID <d170af7c54722ee27aa5.1513143183@Envy>
Download mbox | patch
Permalink /patch/26262/
State Accepted
Headers show

Comments

Matt Harbison - Dec. 13, 2017, 5:33 a.m.
# HG changeset patch
# User Matt Harbison <matt_harbison@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.

Patch

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):