changeset 1910:e2fe1953f417

changeset_templater: only compute manifest when --debug.
author Vadim Gelfer <vadim.gelfer@gmail.com>
date Mon, 27 Feb 2006 21:32:15 -0800
parents 37b9f80a5fbb
children c6014ff742c5
files mercurial/commands.py
diffstat 1 files changed, 8 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/commands.py	Mon Feb 27 15:07:25 2006 -0800
+++ b/mercurial/commands.py	Mon Feb 27 21:32:15 2006 -0800
@@ -430,11 +430,14 @@
         else:
             showbranches = ''
 
-        def showmanifest(**args):
-            args = args.copy()
-            args.update(rev=self.repo.manifest.rev(changes[0]),
-                        node=hex(changes[0]))
-            yield self.t('manifest', **args)
+        if self.ui.debugflag:
+            def showmanifest(**args):
+                args = args.copy()
+                args.update(rev=self.repo.manifest.rev(changes[0]),
+                            node=hex(changes[0]))
+                yield self.t('manifest', **args)
+        else:
+            showmanifest = ''
 
         def showparents(**args):
             parents = [[('rev', log.rev(p)), ('node', hex(p))]