File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -224,7 +224,12 @@ def touch(fname):
224
224
log .debug ("Running `git log --name-only --pretty=\" format:\" %s`" % self .commit_range )
225
225
changes = subprocess .check_output ("git log --name-only --pretty=\" format:\" %s" % self .commit_range , shell = True )
226
226
changes = os .linesep .join ([s for s in changes .splitlines () if s ]) # drop empty lines
227
- log .debug ("Result:\n %s" , changes )
227
+ if len (changes .splitlines ()) > 1000 :
228
+ log .debug ("Change list is >1000 lines, uploading to sprunge.us instead of printing to console" )
229
+ url = subprocess .check_output ("git log --name-only %s | curl -F 'sprunge=<-' http://sprunge.us" % self .commit_range , shell = True )
230
+ log .debug ("Uploaded to %s" , url )
231
+ else :
232
+ log .debug ("Result:\n %s" , changes )
228
233
229
234
# Look for changes to core TFB framework code
230
235
if re .search (r'^toolset/' , changes , re .M ) is not None :
You can’t perform that action at this time.
0 commit comments