diff mercurial/hg.py @ 582:df8a5a0098d4

Remove all remaining print statements -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Remove all remaining print statements Convert most prints to ui.warn or ui.write Pass a write function into transactions manifest hash: d1b0af7a344fc087a5acfe3ae87b782c20d043e0 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) iD8DBQFCx1Q3ywK+sNU5EO8RAqSTAJwM5t/m+JOlf2ZXOjuItCSdFiubcwCdFm3G HoicikSYpTgfCj2pIRfyLjo= =Loqo -----END PGP SIGNATURE-----
author mpm@selenic.com
date Sat, 02 Jul 2005 18:57:59 -0800
parents ffeb2c3a1966
children 0c3bae18403b
line wrap: on
line diff
--- a/mercurial/hg.py	Sat Jul 02 18:31:13 2005 -0800
+++ b/mercurial/hg.py	Sat Jul 02 18:57:59 2005 -0800
@@ -520,7 +520,8 @@
             ds = ""
         self.opener("undo.dirstate", "w").write(ds)
 
-        return transaction.transaction(self.opener, self.join("journal"),
+        return transaction.transaction(self.ui.warn,
+                                       self.opener, self.join("journal"),
                                        self.join("undo"))
 
     def recover(self):
@@ -1350,7 +1351,7 @@
             try:
                 delta = mdiff.patchtext(self.manifest.delta(n))
             except KeyboardInterrupt:
-                print "aborted"
+                self.ui.warn("aborted")
                 sys.exit(0)
             except Exception, inst:
                 self.ui.warn("unpacking manifest %s: %s\n"
@@ -1392,7 +1393,6 @@
                 if n not in filenodes[f]:
                     self.ui.warn("%s: %d:%s not in manifests\n"
                                  % (f, i, short(n)))
-                    print len(filenodes[f].keys()), fl.count(), f
                     errors += 1
                 else:
                     del filenodes[f][n]