changeset 11733:b43cfaf571d6

Merge with stable
author Matt Mackall <mpm@selenic.com>
date Mon, 02 Aug 2010 10:55:51 -0500
parents 7469ff872122 (current diff) 386e56ecfb78 (diff)
children a614666bbba4
files
diffstat 5 files changed, 30 insertions(+), 16 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/color.py	Sun Aug 01 16:02:56 2010 -0500
+++ b/hgext/color.py	Mon Aug 02 10:55:51 2010 -0500
@@ -154,7 +154,7 @@
             self._buffers[-1].extend([(str(a), label) for a in args])
         elif self._colormode == 'win32':
             for a in args:
-                win32print(a, orig, **opts)
+                win32print(a, super(colorui, self).write, **opts)
         else:
             return super(colorui, self).write(
                 *[self.label(str(a), label) for a in args], **opts)
@@ -163,9 +163,9 @@
         label = opts.get('label', '')
         if self._colormode == 'win32':
             for a in args:
-                win32print(a, orig, **opts)
+                win32print(a, super(colorui, self).write_err, **opts)
         else:
-            return super(colorui, self).write(
+            return super(colorui, self).write_err(
                 *[self.label(str(a), label) for a in args], **opts)
 
     def label(self, msg, label):
--- a/hgext/convert/convcmd.py	Sun Aug 01 16:02:56 2010 -0500
+++ b/hgext/convert/convcmd.py	Mon Aug 02 10:55:51 2010 -0500
@@ -81,7 +81,7 @@
 
     def getfile(self, file, rev):
         self.retrieved += 1
-        self.ui.progress(_('retrieving file'), self.retrieved,
+        self.ui.progress(_('getting files'), self.retrieved,
                          item=file, total=self.filecount)
         return self.source.getfile(file, rev)
 
@@ -89,7 +89,7 @@
         return self.source.lookuprev(rev)
 
     def close(self):
-        self.ui.progress(_('retrieving file'), None)
+        self.ui.progress(_('getting files'), None)
 
 class converter(object):
     def __init__(self, ui, source, dest, revmapfile, opts):
--- a/tests/test-convert-svn-move.out	Sun Aug 01 16:02:56 2010 -0500
+++ b/tests/test-convert-svn-move.out	Mon Aug 02 10:55:51 2010 -0500
@@ -88,30 +88,30 @@
 scanning [    <=>                                                           ] 4
                                                                                 
 converting [                                                              ] 0/4
-retrieving file [==========>                                              ] 1/5
-retrieving file [=====================>                                   ] 2/5
-retrieving file [=================================>                       ] 3/5
-retrieving file [============================================>            ] 4/5
-retrieving file [========================================================>] 5/5
+getting files [==========>                                                ] 1/5
+getting files [======================>                                    ] 2/5
+getting files [==================================>                        ] 3/5
+getting files [==============================================>            ] 4/5
+getting files [==========================================================>] 5/5
                                                                                 
 converting [==============>                                               ] 1/4
 scanning paths [                                                          ] 0/1
                                                                                 
-retrieving file [========================================================>] 1/1
+getting files [==========================================================>] 1/1
                                                                                 
 converting [==============================>                               ] 2/4
 scanning paths [                                                          ] 0/2
 scanning paths [============================>                             ] 1/2
                                                                                 
-retrieving file [=============>                                           ] 1/4
-retrieving file [===========================>                             ] 2/4
-retrieving file [=========================================>               ] 3/4
-retrieving file [========================================================>] 4/4
+getting files [=============>                                             ] 1/4
+getting files [============================>                              ] 2/4
+getting files [===========================================>               ] 3/4
+getting files [==========================================================>] 4/4
                                                                                 
 converting [=============================================>                ] 3/4
 scanning paths [                                                          ] 0/1
                                                                                 
-retrieving file [========================================================>] 1/1
+getting files [==========================================================>] 1/1
                                                                                 
 initializing destination hg-progress repository
 scanning source...
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/test-ui-color.py	Mon Aug 02 10:55:51 2010 -0500
@@ -0,0 +1,11 @@
+#!/usr/bin/env python
+
+from hgext import color
+
+# ensure errors aren't buffered
+testui = color.colorui()
+testui.pushbuffer()
+testui.write('buffered\n')
+testui.warn('warning\n')
+testui.write_err('error\n')
+print repr(testui.popbuffer())
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/test-ui-color.py.out	Mon Aug 02 10:55:51 2010 -0500
@@ -0,0 +1,3 @@
+warning
+error
+'buffered\n'