[PATCH 2 of 4 stable] largefiles: cache largefiles for update, also without printmessage

Mads Kiilerich mads at kiilerich.com
Wed Nov 6 18:59:04 CST 2013


# HG changeset patch
# User Mads Kiilerich <madski at unity3d.com>
# Date 1383785280 -3600
#      Thu Nov 07 01:48:00 2013 +0100
# Branch stable
# Node ID c82c2a903790087c7001bde121b7f40cef68a9e0
# Parent  5446efa8ad832a7f724d0db66ffc068801dc3fd2
largefiles: cache largefiles for update, also without printmessage

diff --git a/hgext/largefiles/lfcommands.py b/hgext/largefiles/lfcommands.py
--- a/hgext/largefiles/lfcommands.py
+++ b/hgext/largefiles/lfcommands.py
@@ -438,8 +438,9 @@ def updatelfiles(ui, repo, filelist=None
         if filelist is not None:
             lfiles = [f for f in lfiles if f in filelist]
 
-        if printmessage and lfiles:
-            ui.status(_('getting changed largefiles\n'))
+        if lfiles:
+            if printmessage:
+                ui.status(_('getting changed largefiles\n'))
             cachelfiles(ui, repo, None, lfiles)
 
         updated, removed = 0, 0


More information about the Mercurial-devel mailing list