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.
--- 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 ..