changeset 11145:06586648eeec

merge with mpm
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
date Tue, 11 May 2010 20:22:37 +0200
parents ca46910dd9ea (current diff) 2114e44b08f6 (diff)
children 523330d567cf
files
diffstat 3 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/convert/cvsps.py	Tue May 11 20:21:25 2010 +0200
+++ b/hgext/convert/cvsps.py	Tue May 11 20:22:37 2010 +0200
@@ -239,12 +239,12 @@
                 continue
             match = re_01.match(line)
             if match:
-                raise Exception(match.group(1))
+                raise logerror(match.group(1))
             match = re_02.match(line)
             if match:
-                raise Exception(match.group(2))
+                raise logerror(match.group(2))
             if re_03.match(line):
-                raise Exception(line)
+                raise logerror(line)
 
         elif state == 1:
             # expect 'Working file' (only when using log instead of rlog)
--- a/hgext/mq.py	Tue May 11 20:21:25 2010 +0200
+++ b/hgext/mq.py	Tue May 11 20:22:37 2010 +0200
@@ -2668,9 +2668,9 @@
     m = []
     a, u = len(q.applied), len(q.unapplied(repo))
     if a:
-        m.append(_("%d applied") % a)
+        m.append(ui.label(_("%d applied"), 'qseries.applied') % a)
     if u:
-        m.append(_("%d unapplied") % u)
+        m.append(ui.label(_("%d unapplied"), 'qseries.unapplied') % u)
     if m:
         ui.write("mq:     %s\n" % ', '.join(m))
     else:
--- a/mercurial/pure/mpatch.py	Tue May 11 20:21:25 2010 +0200
+++ b/mercurial/pure/mpatch.py	Tue May 11 20:22:37 2010 +0200
@@ -112,7 +112,7 @@
         outlen += length
 
     if bin != binend:
-        raise Exception("patch cannot be decoded")
+        raise ValueError("patch cannot be decoded")
 
     outlen += orig - last
     return outlen