Code

More work in --silent support.
authorSimon Hausmann <hausmann@kde.org>
Thu, 22 Feb 2007 08:22:36 +0000 (09:22 +0100)
committerSimon Hausmann <hausmann@kde.org>
Thu, 22 Feb 2007 08:22:36 +0000 (09:22 +0100)
Signed-off-by: Simon Hausmann <hausmann@kde.org>
contrib/fast-import/p4-fast-export.py

index b39548917a611de6980dabff84a60e35ac7bc72d..0541f84188917e13baeef4cedd67e3a568f2cf4b 100755 (executable)
@@ -42,7 +42,8 @@ for o, a in opts:
         silent= True
 
 if len(args) == 0 and len(globalPrefix) != 0:
-    print "[using previously specified depot path %s]" % globalPrefix
+    if not silent:
+        print "[using previously specified depot path %s]" % globalPrefix
 elif len(args) != 1:
     print "usage: %s //depot/path[@revRange]" % sys.argv[0]
     print "\n    example:"