# HG changeset patch
# User Matt Harbison <
matt_h...@yahoo.com>
# Date 1651810816 14400
# Fri May 06 00:20:16 2022 -0400
# Branch stable
# Node ID 6f0e6716dbcae2f98b73b89adc3718cffa278d2b
# Parent 1f91f9166f943350c7221cbe2dd9b125e96936c9
# EXP-Topic windows-py3-packaging
commit: fix "Paste Filenames" on the commit context menu on py3 (fixes #5788)
diff --git a/tortoisehg/hgqt/messageentry.py b/tortoisehg/hgqt/messageentry.py
--- a/tortoisehg/hgqt/messageentry.py
+++ b/tortoisehg/hgqt/messageentry.py
@@ -29,6 +29,9 @@
)
from ..util.i18n import _
+from ..util import (
+ hglib,
+)
from . import (
qscilib,
qtlib,
@@ -106,7 +109,7 @@
def paste():
files = self.getChecked()
- self.insert('\n'.join(sorted(files)))
+ self.insert(hglib.tounicode(b'\n'.join(sorted(files))))
def settings():
from tortoisehg.hgqt.settings import SettingsDialog
dlg = SettingsDialog(True, focus='tortoisehg.summarylen')