[PATCH] commit: fix "Paste Filenames" on the commit context menu on py3 (fixes #5788)

3 views
Skip to first unread message

Matt Harbison

unread,
May 6, 2022, 12:34:14 AM5/6/22
to thg...@googlegroups.com
# 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')

Yuya Nishihara

unread,
May 6, 2022, 5:34:01 AM5/6/22
to Matt Harbison, thg...@googlegroups.com
On Fri, 06 May 2022 00:34:10 -0400, Matt Harbison wrote:
> # 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)

Queued for stable, thanks.
Reply all
Reply to author
Forward
0 new messages