# HG changeset patch
# User Simon Heimberg <sim...@besonet.ch>
# Date 1270604982 -7200
# Node ID 71e0f1b05418e1a9c69b18b1b40ea70520bc1060
# Parent  c032ed8b30609085b4203ba72b27ebca35bc0d1a
hgemail: allow to send a single mail without an introdution

was broken by hg change 7a0502a6f9a1

diff -r c032ed8b3060 -r 71e0f1b05418 tortoisehg/hgtk/hgemail.py
--- a/tortoisehg/hgtk/hgemail.py        Mit Apr 07 02:51:23 2010 +0200
+++ b/tortoisehg/hgtk/hgemail.py        Mit Apr 07 03:49:42 2010 +0200
@@ -338,10 +338,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)

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Tortoisehg-develop mailing list
Tortoisehg-develop@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tortoisehg-develop

Reply via email to