Mercurial > public > mercurial-scm > hg-stable
diff mercurial/repair.py @ 37087:f0b6fbea00cf
stringutil: bulk-replace call sites to point to new module
This might conflict with other patches floating around, sorry.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Thu, 22 Mar 2018 21:56:20 +0900 |
parents | 17692fefc8f2 |
children | 46c2b19a1263 |
line wrap: on
line diff
--- 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: