[PATCH 2 of 2] lfs: use 'ui' provided to `upgrade` for output, instead of stealing srcrepo's
Matt Harbison
mharbison72 at gmail.com
Wed Dec 13 00:33:03 EST 2017
# HG changeset patch
# User Matt Harbison <matt_harbison at 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):
More information about the Mercurial-devel
mailing list