# HG changeset patch # User Matt Harbison # Date 1732926171 18000 # Node ID 1802d9afddf710eb3875b827ce60b87b9ce3cd7d # Parent a48c688d3e809ee7f4cc11319a68f97932a9c5db graft: fix interpolation in a ProgrammingError case The `action` is str, which can't be interpolated into bytes. Fortunately, `ProgrammingError` allows a str to be passed. diff -r a48c688d3e80 -r 1802d9afddf7 mercurial/cmd_impls/graft.py --- a/mercurial/cmd_impls/graft.py Wed Nov 27 15:14:18 2024 +0000 +++ b/mercurial/cmd_impls/graft.py Fri Nov 29 19:22:51 2024 -0500 @@ -20,7 +20,7 @@ elif action == "GRAFT": return _graft_revisions(ui, repo, graftstate, *args) else: - raise error.ProgrammingError(b'unknown action: %s' % action) + raise error.ProgrammingError('unknown action: %s' % action) def _process_args(ui, repo, *revs, **opts):