changeset 322:05cd4a5138bf

Move some .warn() calls to noisy levels instead.
author Augie Fackler <durin42@gmail.com>
date Fri, 08 May 2009 16:11:52 -0500
parents b6c6d32c8ef1
children 067914ecb4eb
files hg_delta_editor.py maps.py
diffstat 2 files changed, 5 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/hg_delta_editor.py
+++ b/hg_delta_editor.py
@@ -862,7 +862,7 @@ class HgChangeReceiver(delta.Editor):
                 parent = self.get_parent_revision(baserev + 1, branch)
                 self.load_base_from_ctx(path, fpath, self.repo.changectx(parent))
         else:
-            self.ui.warn('WARNING: Opening non-existant file %s\n' % path)
+            self.ui.debug('WARNING: Opening non-existant file %s\n' % path)
     open_file = stash_exception_on_self(open_file)
 
     def aresamefiles(self, parentctx, childctx, files):
--- a/maps.py
+++ b/maps.py
@@ -6,16 +6,16 @@ from mercurial import util as hgutil
 class AuthorMap(dict):
     '''A mapping from Subversion-style authors to Mercurial-style
     authors, and back. The data is stored persistently on disk.
-    
+
     If the 'hgsubversion.defaultauthors' configuration option is set to false,
     attempting to obtain an unknown author will fail with an Abort.
     '''
 
     def __init__(self, ui, path, defaulthost=None):
         '''Initialise a new AuthorMap.
-        
+
         The ui argument is used to print diagnostic messages.
-        
+
         The path argument is the location of the backing store,
         typically .hg/authormap.
         '''
@@ -70,9 +70,8 @@ class AuthorMap(dict):
         if author in self:
             result = self.super.__getitem__(author)
         elif self.ui.configbool('hgsubversion', 'defaultauthors', True):
-            # TODO: should we treat missing authors specially?
             self[author] = result = '%s%s' % (author, self.defaulthost)
-            self.ui.warn('Substituting author "%s" for default "%s"\n'
+            self.ui.note('Substituting author "%s" for default "%s"\n'
                          % (author, result))
         else:
             raise hgutil.Abort('Author %s has no entry in the author map!'