Mercurial > hg
diff hgext/convert/subversion.py @ 37084: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 | 5bc7ff103081 |
children | a8a902d7176e |
line wrap: on
line diff
--- a/hgext/convert/subversion.py Thu Mar 22 21:19:31 2018 +0900 +++ b/hgext/convert/subversion.py Thu Mar 22 21:56:20 2018 +0900 @@ -16,7 +16,10 @@ util, vfs as vfsmod, ) -from mercurial.utils import dateutil +from mercurial.utils import ( + dateutil, + stringutil, +) from . import common @@ -147,7 +150,7 @@ # Caller may interrupt the iteration pickle.dump(None, fp, protocol) except Exception as inst: - pickle.dump(util.forcebytestr(inst), fp, protocol) + pickle.dump(stringutil.forcebytestr(inst), fp, protocol) else: pickle.dump(None, fp, protocol) fp.flush() @@ -1315,7 +1318,7 @@ fp.close() try: output = self.run0('commit', - username=util.shortuser(commit.author), + username=stringutil.shortuser(commit.author), file=messagefile, encoding='utf-8') try: