--- a/hgext/transplant.py Thu Mar 22 21:19:31 2018 +0900
+++ b/hgext/transplant.py Thu Mar 22 21:56:20 2018 +0900
@@ -38,6 +38,9 @@
util,
vfs as vfsmod,
)
+from mercurial.utils import (
+ stringutil,
+)
class TransplantError(error.Abort):
pass
@@ -311,7 +314,7 @@
p1 = repo.dirstate.p1()
p2 = node
self.log(user, date, message, p1, p2, merge=merge)
- self.ui.write(util.forcebytestr(inst) + '\n')
+ self.ui.write(stringutil.forcebytestr(inst) + '\n')
raise TransplantError(_('fix up the working directory and run '
'hg transplant --continue'))
else: