changeset 5786:c69ef6fdb092

patchbomb: simplify some line continuations
author Christian Ebert <blacktrash@gmx.net>
date Sun, 30 Dec 2007 14:43:03 +0100
parents 38cd1ce8650d
children b7b22a2ade2e
files hgext/patchbomb.py
diffstat 1 files changed, 5 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/patchbomb.py	Sun Dec 30 14:24:03 2007 +0100
+++ b/hgext/patchbomb.py	Sun Dec 30 14:43:03 2007 +0100
@@ -156,8 +156,7 @@
                 if line.startswith('# Node ID'):
                     node = line.split()[-1]
                 continue
-            if (line.startswith('diff -r')
-                or line.startswith('diff --git')):
+            if line.startswith('diff -r') or line.startswith('diff --git'):
                 break
             desc.append(line)
         if not node:
@@ -189,7 +188,7 @@
                 patchname = patchname[0]
             elif total > 1:
                 patchname = cmdutil.make_filename(repo, '%b-%n.patch',
-                                                   binnode, idx, total)
+                                                  binnode, idx, total)
             else:
                 patchname = cmdutil.make_filename(repo, '%b.patch', binnode)
             p['Content-Disposition'] = 'inline; filename=' + patchname
@@ -316,11 +315,10 @@
             tlen = len(str(len(patches)))
 
             subj = '[PATCH %0*d of %d] %s' % (
-                tlen, 0,
-                len(patches),
+                tlen, 0, len(patches),
                 opts['subject'] or
-                prompt('Subject:', rest = ' [PATCH %0*d of %d] ' % (tlen, 0,
-                    len(patches))))
+                prompt('Subject:',
+                       rest=' [PATCH %0*d of %d] ' % (tlen, 0, len(patches))))
 
             body = ''
             if opts['diffstat']: