diff -r d500ddae7494 -r 4b1af1c867fa mercurial/scmwindows.py --- a/mercurial/scmwindows.py Sun Nov 06 00:37:50 2016 -0700 +++ b/mercurial/scmwindows.py Thu Oct 20 21:38:44 2016 +0900 @@ -5,6 +5,7 @@ from . import ( osutil, util, + win32, ) try: @@ -51,3 +52,6 @@ path.append(os.path.join(userprofile, 'mercurial.ini')) path.append(os.path.join(userprofile, '.hgrc')) return path + +def termwidth(): + return win32.termwidth()