# HG changeset patch # User Mads Kiilerich # Date 2013-10-23 17:49:56 # Node ID 2a03faf8b5fedaeba8c3f943357756ac72ab8809 # Parent b7aec4c881d16f84e4b85494d52f7bd381459986 largefiles: fix 'unexpected response' warning newlines Warnings should always end with \n. The warning message might contain or end with \n, so better show it with repr encoding. diff --git a/hgext/largefiles/proto.py b/hgext/largefiles/proto.py --- a/hgext/largefiles/proto.py +++ b/hgext/largefiles/proto.py @@ -96,7 +96,7 @@ def wirereposetup(ui, repo): self.ui.warn(_('remote: '), l, '\n') return int(d) except (ValueError, urllib2.HTTPError): - self.ui.warn(_('unexpected putlfile response: %s') % res) + self.ui.warn(_('unexpected putlfile response: %r\n') % res) return 1 # ... but we can't use sshrepository._call because the data= # argument won't get sent, and _callpush does exactly what we want