hg import checking for quiet mode didn't work. Fixed using the ui module.
authorThomas Arendsen Hein <thomas@intevation.de>
Sun, 26 Jun 2005 14:18:23 +0100
changeset 481 2705d20f77c9
parent 480 430a10669928
child 482 84d5ddf82856
hg import checking for quiet mode didn't work. Fixed using the ui module. -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 hg import checking for quiet mode didn't work. Fixed using the ui module. manifest hash: 3418ba604188b5abb2554615aff0ae59f4fee882 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQFCvqsfW7P1GVgWeRoRAjWVAJ9eNW+GnTJGvXMLxr1uPy5wM40gcQCeP6QO 7qW+m8/YmXLLi+vn2ETyWrM= =UGui -----END PGP SIGNATURE-----
mercurial/commands.py
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -431,8 +431,7 @@ def import_(ui, repo, patch1, *patches, 
         files = []
         for l in f.read().splitlines():
             l.rstrip('\r\n');
-            if not quiet:
-                print l
+            ui.status("%s\n" % l)
             if l[:14] == 'patching file ':
                 pf = l[14:]
                 if pf not in files: