fix: add more information to the debug output stable
authorPierre-Yves David <pierre-yves.david@octobus.net>
Fri, 03 Feb 2023 12:54:17 +0100
branchstable
changeset 49977 b5ecd0bcbcd7
parent 49973 68cf519429ef
child 50078 983e2db18d67
fix: add more information to the debug output The previous debug output did not help to understand which file where fixed in which revision. The new output should cover that.
hgext/fix.py
tests/test-fix.t
--- a/hgext/fix.py	Fri Feb 03 01:07:59 2023 -0500
+++ b/hgext/fix.py	Fri Feb 03 12:54:17 2023 +0100
@@ -698,6 +698,9 @@
             command = fixer.command(ui, path, ranges)
             if command is None:
                 continue
+            msg = b'fixing: %s - %s - %s\n'
+            msg %= (fixctx, fixername, path)
+            ui.debug(msg)
             ui.debug(b'subprocess: %s\n' % (command,))
             proc = subprocess.Popen(
                 procutil.tonativestr(command),
--- a/tests/test-fix.t	Fri Feb 03 01:07:59 2023 -0500
+++ b/tests/test-fix.t	Fri Feb 03 12:54:17 2023 +0100
@@ -1153,6 +1153,7 @@
   $ hg commit -Aqm "foo"
   $ printf "Foo\nbar\nBaz\n" > foo.changed
   $ hg --debug fix --working-dir
+  fixing: f65cf3136d41+ - uppercase-changed-lines - foo.changed
   subprocess: * $TESTTMP/uppercase.py 1-1 3-3 (glob)
 
   $ cd ..