File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed
branches/master-rebranch/utils Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -1457,4 +1457,4 @@ refs/tags/swift-DEVELOPMENT-SNAPSHOT-2019-08-02-a: ddd2b2976aa9bfde5f20fe37f6bd2
1457
1457
refs/tags/swift-DEVELOPMENT-SNAPSHOT-2019-08-03-a: 171cc166f2abeb5ca2a4003700a8a78a108bd300
1458
1458
refs/heads/benlangmuir-patch-1: baaebaf39d52f3bf36710d4fe40cf212e996b212
1459
1459
refs/heads/i-do-redeclare: 8c4e6d5de5c1e3f0a2cedccf319df713ea22c48e
1460
- refs/heads/master-rebranch: 9ec0a6cf8039bd87c1a27235f91085be36ce3f9a
1460
+ refs/heads/master-rebranch: ef957ca28e77326aef34f4df6bea201f2f1bf67c
Original file line number Diff line number Diff line change @@ -76,9 +76,12 @@ class RoundTripTask(object):
76
76
77
77
contents = '' .join (map (lambda l : l .decode ('utf-8' , errors = 'replace' ),
78
78
open (self .input_filename ).readlines ()))
79
- lines = difflib .unified_diff (contents ,
80
- self .stdout .decode ('utf-8' ,
81
- errors = 'replace' ),
79
+ stdout_contents = self .stdout .decode ('utf-8' , errors = 'replace' )
80
+
81
+ if contents == stdout_contents :
82
+ return None
83
+
84
+ lines = difflib .unified_diff (contents , stdout_contents ,
82
85
fromfile = self .input_filename ,
83
86
tofile = '-' )
84
87
diff = '\n ' .join (line for line in lines )
You can’t perform that action at this time.
0 commit comments