Mercurial > hg
diff mercurial/util.py @ 30309:4b1af1c867fa
scmutil: move util.termwidth()
I'm going to get rid of sys.stderr|out|in references from posix.termwidth().
In order to do that, termwidth() needs to take a ui, but functions in util.py
shouldn't depend on a ui object. So moves termwidth() to scmutil.py.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Thu, 20 Oct 2016 21:38:44 +0900 |
parents | 8321b083a83d |
children | 2d996af02fd8 |
line wrap: on
line diff
--- a/mercurial/util.py Sun Nov 06 00:37:50 2016 -0700 +++ b/mercurial/util.py Thu Oct 20 21:38:44 2016 +0900 @@ -122,7 +122,6 @@ statfiles = getattr(osutil, 'statfiles', platform.statfiles) statisexec = platform.statisexec statislink = platform.statislink -termwidth = platform.termwidth testpid = platform.testpid umask = platform.umask unlink = platform.unlink