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

login
register
mail settings
Submitter Mads Kiilerich
Date Nov. 7, 2013, 12:59 a.m.
Message ID <c82c2a903790087c7001.1383785944@localhost.localdomain>
Download mbox | patch
Permalink /patch/2864/
State Accepted
Commit 5cb0ff40374d5c2f0053ac1920abb2eb757a073c
Headers show

Comments

Mads Kiilerich - Nov. 7, 2013, 12:59 a.m.
# HG changeset patch
# User Mads Kiilerich <madski@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

Patch

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