changeset 16925:eaf6a6d7f015

convert: lowercase status and abort messages
author Martin Geisler <mg@aragost.com>
date Tue, 12 Jun 2012 14:18:18 +0200
parents 21b12b22c024
children cf2156932f75
files hgext/convert/convcmd.py hgext/convert/subversion.py tests/test-convert-authormap.t
diffstat 3 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/convert/convcmd.py	Tue Jun 12 14:18:18 2012 +0200
+++ b/hgext/convert/convcmd.py	Tue Jun 12 14:18:18 2012 +0200
@@ -280,7 +280,7 @@
     def writeauthormap(self):
         authorfile = self.authorfile
         if authorfile:
-            self.ui.status(_('Writing author map file %s\n') % authorfile)
+            self.ui.status(_('writing author map file %s\n') % authorfile)
             ofile = open(authorfile, 'w+')
             for author in self.authors:
                 ofile.write("%s=%s\n" % (author, self.authors[author]))
@@ -297,7 +297,7 @@
             try:
                 srcauthor, dstauthor = line.split('=', 1)
             except ValueError:
-                msg = _('Ignoring bad line in author map file %s: %s\n')
+                msg = _('ignoring bad line in author map file %s: %s\n')
                 self.ui.warn(msg % (authorfile, line.rstrip()))
                 continue
 
--- a/hgext/convert/subversion.py	Tue Jun 12 14:18:18 2012 +0200
+++ b/hgext/convert/subversion.py	Tue Jun 12 14:18:18 2012 +0200
@@ -227,7 +227,7 @@
             raise NoRepo(_("%s does not look like a Subversion repository")
                          % url)
         if svn is None:
-            raise MissingTool(_('Could not load Subversion python bindings'))
+            raise MissingTool(_('could not load Subversion python bindings'))
 
         try:
             version = svn.core.SVN_VER_MAJOR, svn.core.SVN_VER_MINOR
--- a/tests/test-convert-authormap.t	Tue Jun 12 14:18:18 2012 +0200
+++ b/tests/test-convert-authormap.t	Tue Jun 12 14:18:18 2012 +0200
@@ -22,12 +22,12 @@
   > EOF
   $ hg convert --authors authormap.txt orig new
   initializing destination new repository
-  Ignoring bad line in author map file authormap.txt: this line is ignored
+  ignoring bad line in author map file authormap.txt: this line is ignored
   scanning source...
   sorting...
   converting...
   0 foo
-  Writing author map file $TESTTMP/new/.hg/authormap (glob)
+  writing author map file $TESTTMP/new/.hg/authormap
   $ cat new/.hg/authormap
   user name=Long User Name
   $ hg -Rnew log
@@ -44,7 +44,7 @@
   $ hg init new
   $ mv authormap.txt new/.hg/authormap
   $ hg convert orig new
-  Ignoring bad line in author map file $TESTTMP/new/.hg/authormap: this line is ignored (glob)
+  ignoring bad line in author map file $TESTTMP/new/.hg/authormap: this line is ignored
   scanning source...
   sorting...
   converting...