# HG changeset patch # User Augie Fackler # Date 1241817112 18000 # Node ID 05cd4a5138bf5befb9ef320dd7cf73f30c9755fe # Parent b6c6d32c8ef1e83c2c4cdcb144da5b477a4e3332 Move some .warn() calls to noisy levels instead. diff --git a/hg_delta_editor.py b/hg_delta_editor.py --- 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): diff --git a/maps.py b/maps.py --- 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!'