Mercurial > hg
changeset 49977:b5ecd0bcbcd7 stable
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.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Fri, 03 Feb 2023 12:54:17 +0100 |
parents | 68cf519429ef |
children | 983e2db18d67 |
files | hgext/fix.py tests/test-fix.t |
diffstat | 2 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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 ..