largefiles: add missing \n in ui.warn messages stable
authorMads Kiilerich <madski@unity3d.com>
Mon, 21 Oct 2013 11:22:54 +0800
branchstable
changeset 19948 72214af683a2
parent 19947 2a03faf8b5fe
child 19949 29f12a7a03ee
largefiles: add missing \n in ui.warn messages
hgext/largefiles/proto.py
hgext/largefiles/remotestore.py
tests/test-largefiles.t
--- a/hgext/largefiles/proto.py	Thu Oct 24 01:49:56 2013 +0800
+++ b/hgext/largefiles/proto.py	Mon Oct 21 11:22:54 2013 +0800
@@ -40,7 +40,7 @@
             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:
--- a/hgext/largefiles/remotestore.py	Thu Oct 24 01:49:56 2013 +0800
+++ b/hgext/largefiles/remotestore.py	Mon Oct 21 11:22:54 2013 +0800
@@ -26,7 +26,7 @@
                 _('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())
--- a/tests/test-largefiles.t	Thu Oct 24 01:49:56 2013 +0800
+++ b/tests/test-largefiles.t	Mon Oct 21 11:22:54 2013 +0800
@@ -1678,6 +1678,7 @@
   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