Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.8.1, 0.8.2, and 0.8.3

hgemail: only send intro message when there is a message

the subject for one single patch can be changed in patchbomb

Changeset a0530bb86dc8

Parent 687143c7e602

by Simon Heimberg

Changes to one file · Browse files at a0530bb86dc8 Showing diff from parent 687143c7e602 Diff from another changeset...

Change 1 of 2 Show Entire File hggtk/​hgemail.py Stacked
 
345
346
347
348
349
350
351
352
 
361
362
363
 
 
364
365
366
 
345
346
347
 
 
348
349
350
 
359
360
361
362
363
364
365
366
@@ -345,8 +345,6 @@
  cmdline.insert(2, '--test')   if subjtext:   cmdline += ['--subject', subjtext] - if self._intro: - cmdline += ['--intro']   if self._bundle.get_active():   cmdline += ['--bundle']   if '--outgoing' in self.revargs: @@ -361,6 +359,8 @@
  start = self.descbuffer.get_start_iter()   end = self.descbuffer.get_end_iter()   desc = self.descbuffer.get_text(start, end) + if desc and self._intro: + cmdline += ['--intro']   try:   fd, tmpfile = tempfile.mkstemp(prefix="thg_emaildesc_")   os.write(fd, desc)