Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.9.2, 1.9.3, and 2.0

chunks: do not add extra newline unless another patch is to be started

Changeset 5c7261a76714

Parent dae07d11bbb4

by Steve Borho

Changes to one file · Browse files at 5c7261a76714 Showing diff from parent dae07d11bbb4 Diff from another changeset...

 
166
167
168
 
169
170
171
 
174
175
176
 
 
 
177
178
 
179
180
181
 
166
167
168
169
170
171
172
 
175
176
177
178
179
180
181
 
182
183
184
185
@@ -166,6 +166,7 @@
  if ctx._ph.comments:   fp.write('\n'.join(ctx._ph.comments))   fp.write('\n\n') + needsnewline = False   for wfile in ctx._fileorder:   if wfile == self.currentFile:   if revertall: @@ -174,8 +175,11 @@
  for chunk in kchunks:   chunk.write(fp)   if not chunks[-1].selected: + needsnewline = True + else: + if needsnewline:   fp.write('\n') - else: + needsnewline = False   for chunk in ctx._files[wfile]:   chunk.write(fp)   fp.rename()