Patchwork [3,of,6] largefiles: add missing \n in ui.warn messages

login
register
mail settings
Submitter Mads Kiilerich
Date Oct. 23, 2013, 5:54 p.m.
Message ID <ebadc2a98fa4c6fed4fa.1382550848@localhost.localdomain>
Download mbox | patch
Permalink /patch/2808/
State Accepted
Commit 72214af683a2b932f7be350085b7fbc041f237fd
Headers show

Comments

Mads Kiilerich - Oct. 23, 2013, 5:54 p.m.
# HG changeset patch
# User Mads Kiilerich <madski@unity3d.com>
# Date 1382325774 -28800
#      Mon Oct 21 11:22:54 2013 +0800
# Branch stable
# Node ID ebadc2a98fa4c6fed4fa6acd39d2cd235d96d5f3
# Parent  123ddcdbcb014b3ec0eae4b9798f30bfa3d66970
largefiles: add missing \n in ui.warn messages

Patch

diff --git a/hgext/largefiles/proto.py b/hgext/largefiles/proto.py
--- a/hgext/largefiles/proto.py
+++ b/hgext/largefiles/proto.py
@@ -40,7 +40,7 @@  def putlfile(repo, proto, sha):
             tmpfp.close()
             lfutil.linktousercache(repo, sha)
         except IOError, e:
-            repo.ui.warn(_('largefiles: failed to put %s into store: %s') %
+            repo.ui.warn(_('largefiles: failed to put %s into store: %s\n') %
                          (sha, e.strerror))
             return wireproto.pushres(1)
     finally:
diff --git a/hgext/largefiles/remotestore.py b/hgext/largefiles/remotestore.py
--- a/hgext/largefiles/remotestore.py
+++ b/hgext/largefiles/remotestore.py
@@ -26,7 +26,7 @@  class remotestore(basestore.basestore):
                 _('remotestore: could not put %s to remote store %s')
                 % (source, self.url))
         self.ui.debug(
-            _('remotestore: put %s to remote store %s') % (source, self.url))
+            _('remotestore: put %s to remote store %s\n') % (source, self.url))
 
     def exists(self, hashes):
         return dict((h, s == 0) for (h, s) in self._stat(hashes).iteritems())
diff --git a/tests/test-largefiles.t b/tests/test-largefiles.t
--- a/tests/test-largefiles.t
+++ b/tests/test-largefiles.t
@@ -1678,6 +1678,7 @@  Corrupt the cached largefile in r7 and m
   pushing to http://localhost:$HGPORT1/
   searching for changes
   remote: largefiles: failed to put 4cdac4d8b084d0b599525cf732437fb337d422a8 into store: largefile contents do not match hash
+  
   abort: remotestore: could not put $TESTTMP/r7/.hg/largefiles/4cdac4d8b084d0b599525cf732437fb337d422a8 to remote store http://localhost:$HGPORT1/ (glob)
   [255]
   $ mv 4cdac4d8b084d0b599525cf732437fb337d422a8 r7/.hg/largefiles/4cdac4d8b084d0b599525cf732437fb337d422a8