##// END OF EJS Templates
stream_in: avoid debug calls when debug is disabled
Matt Mackall -
r16398:def78975 default
parent child Browse files
Show More
@@ -2224,7 +2224,9 b' class localrepository(repo.repository):'
2224 except (ValueError, TypeError):
2224 except (ValueError, TypeError):
2225 raise error.ResponseError(
2225 raise error.ResponseError(
2226 _('Unexpected response from remote server:'), l)
2226 _('Unexpected response from remote server:'), l)
2227 self.ui.debug('adding %s (%s)\n' % (name, util.bytecount(size)))
2227 if self.ui.debugflag:
2228 self.ui.debug('adding %s (%s)\n' %
2229 (name, util.bytecount(size)))
2228 # for backwards compat, name was partially encoded
2230 # for backwards compat, name was partially encoded
2229 ofp = self.sopener(store.decodedir(name), 'w')
2231 ofp = self.sopener(store.decodedir(name), 'w')
2230 for chunk in util.filechunkiter(fp, limit=size):
2232 for chunk in util.filechunkiter(fp, limit=size):
General Comments 0
You need to be logged in to leave comments. Login now