##// END OF EJS Templates
bundle2: inline debug logging...
Gregory Szorc -
r35114:589eed45 default
parent child Browse files
Show More
@@ -1193,6 +1193,9 b' def decodepayloadchunks(ui, fh):'
1193 Part payload data consists of framed chunks. This function takes
1193 Part payload data consists of framed chunks. This function takes
1194 a file handle and emits those chunks.
1194 a file handle and emits those chunks.
1195 """
1195 """
1196 dolog = ui.configbool('devel', 'bundle2.debug')
1197 debug = ui.debug
1198
1196 headersize = struct.calcsize(_fpayloadsize)
1199 headersize = struct.calcsize(_fpayloadsize)
1197 readexactly = changegroup.readexactly
1200 readexactly = changegroup.readexactly
1198
1201
@@ -1211,7 +1214,10 b' def decodepayloadchunks(ui, fh):'
1211 'negative payload chunk size: %s' % chunksize)
1214 'negative payload chunk size: %s' % chunksize)
1212
1215
1213 chunksize = _unpack(_fpayloadsize, readexactly(fh, headersize))[0]
1216 chunksize = _unpack(_fpayloadsize, readexactly(fh, headersize))[0]
1214 indebug(ui, 'payload chunk size: %i' % chunksize)
1217
1218 # indebug() inlined for performance.
1219 if dolog:
1220 debug('bundle2-input: payload chunk size: %i\n' % chunksize)
1215
1221
1216 class unbundlepart(unpackermixin):
1222 class unbundlepart(unpackermixin):
1217 """a bundle part read from a bundle"""
1223 """a bundle part read from a bundle"""
General Comments 0
You need to be logged in to leave comments. Login now