Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.0.2, 1.0.3, and 1.0.4

stable hgemail: allow to send a single mail without an introdution

was broken by hg change 7a0502a6f9a1

Changeset ec859ba201f3

Parent 288e39c4ecb2

by Simon Heimberg

Changes to one file · Browse files at ec859ba201f3 Showing diff from parent 288e39c4ecb2 Diff from another changeset...

 
337
338
339
340
341
342
343
 
 
 
 
 
 
344
345
346
 
337
338
339
 
 
 
 
340
341
342
343
344
345
346
347
348
@@ -337,10 +337,12 @@
  cmdline += ['--intro']   tmpfile = None   try: - fd, tmpfile = tempfile.mkstemp(prefix="thg_emaildesc_") - os.write(fd, desc) - os.close(fd) - cmdline += ['--desc', tmpfile] + if desc or not hasattr(extensions.find('patchbomb'), 'introneeded'): + # --desc is interpreted differently after hg 1.5 + fd, tmpfile = tempfile.mkstemp(prefix="thg_emaildesc_") + os.write(fd, desc) + os.close(fd) + cmdline += ['--desc', tmpfile]   cmdline.extend(self.revargs)     dlg = hgcmd.CmdDialog(cmdline)