--- a/mercurial/repair.py Thu Mar 22 21:19:31 2018 +0900
+++ b/mercurial/repair.py Thu Mar 22 21:56:20 2018 +0900
@@ -26,6 +26,9 @@
obsutil,
util,
)
+from .utils import (
+ stringutil,
+)
def backupbundle(repo, bases, heads, node, suffix, compress=True,
obsolescence=True):
@@ -236,7 +239,8 @@
except OSError as e:
if e.errno != errno.ENOENT:
ui.warn(_('error removing %s: %s\n') %
- (undovfs.join(undofile), util.forcebytestr(e)))
+ (undovfs.join(undofile),
+ stringutil.forcebytestr(e)))
except: # re-raises
if backupfile: