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.
Showing
- mercurial/posix.py 0 additions, 30 deletionsmercurial/posix.py
- mercurial/scmposix.py 32 additions, 0 deletionsmercurial/scmposix.py
- mercurial/scmutil.py 1 addition, 0 deletionsmercurial/scmutil.py
- mercurial/scmwindows.py 4 additions, 0 deletionsmercurial/scmwindows.py
- mercurial/ui.py 1 addition, 1 deletionmercurial/ui.py
- mercurial/util.py 0 additions, 1 deletionmercurial/util.py
- mercurial/windows.py 0 additions, 1 deletionmercurial/windows.py
Loading
Please register or sign in to comment