changeset 3648:2801a3efc7c3

changeset templater: convert some unnecessary yields to returns
author Matt Mackall <mpm@selenic.com>
date Wed, 15 Nov 2006 15:51:58 -0600
parents 734e337cb816
children e50891e461e4
files mercurial/cmdutil.py
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/cmdutil.py	Wed Nov 15 15:51:58 2006 -0600
+++ b/mercurial/cmdutil.py	Wed Nov 15 15:51:58 2006 -0600
@@ -426,11 +426,11 @@
         def showbranches(**args):
             branch = changes[5].get("branch")
             if branch:
-                yield showlist('branch', [branch], plural='branches', **args)
+                return showlist('branch', [branch], plural='branches', **args)
             # add old style branches if requested
             if brinfo and changenode in brinfo:
-                yield showlist('branch', brinfo[changenode],
-                               plural='branches', **args)
+                return showlist('branch', brinfo[changenode],
+                                plural='branches', **args)
 
         def showparents(**args):
             parents = [[('rev', log.rev(p)), ('node', hex(p))]
@@ -471,7 +471,7 @@
                 return self.t('manifest', **args)
         else:
             def showfiles(**args):
-                yield showlist('file', changes[3], **args)
+                return showlist('file', changes[3], **args)
             showadds = ''
             showdels = ''
             showmanifest = ''