changeset 10711:2df044888693

keyword: do not customize ui.note() when overwriting Behaviour change: hg commit --verbose now prints out the names of the files which are overwritten.
author Christian Ebert <blacktrash@gmx.net>
date Tue, 16 Mar 2010 22:27:22 +0100
parents 61c52fedbd45
children fbe138da6b38
files hgext/keyword.py
diffstat 1 files changed, 1 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/keyword.py	Tue Mar 16 16:41:22 2010 +0100
+++ b/hgext/keyword.py	Tue Mar 16 22:27:22 2010 +0100
@@ -168,9 +168,6 @@
         mf = ctx.manifest()
         if node is not None:     # commit
             files = [f for f in ctx.files() if f in mf]
-            notify = self.ui.debug
-        else:                    # kwexpand/kwshrink
-            notify = self.ui.note
         candidates = [f for f in files if self.iskwfile(f, ctx.flags)]
         if candidates:
             self.restrict = True # do not expand when reading
@@ -189,7 +186,7 @@
                 else:
                     found = self.re_kw.search(data)
                 if found:
-                    notify(msg % f)
+                    self.ui.note(msg % f)
                     self.repo.wwrite(f, data, mf.flags(f))
                     if node is None:
                         self.repo.dirstate.normal(f)