Simplify temporary ui.quiet setting in kwdemo
authorChristian Ebert <blacktrash@gmx.net>
Mon, 07 Jan 2008 11:27:41 +0100
changeset 327 06f3c6b3dd93
parent 325 1dc0abff8ac3
child 328 f5154819a11b
Simplify temporary ui.quiet setting in kwdemo
hgkw/keyword.py
--- a/hgkw/keyword.py	Sat Jan 05 12:33:21 2008 +0100
+++ b/hgkw/keyword.py	Mon Jan 07 11:27:41 2008 +0100
@@ -328,8 +328,7 @@
     ui.note('\nhg -R "%s" branch "%s"\n' % (tmpdir, branchname))
     # silence branch command if not verbose
     quiet = ui.quiet
-    verbose = ui.verbose
-    ui.quiet = not verbose
+    ui.quiet = not ui.verbose
     commands.branch(ui, repo, branchname)
     ui.quiet = quiet
     for name, cmd in ui.configitems('hooks'):