Mercurial > hg
comparison mercurial/windows.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 | 3df9f780c90e |
children | 10d15095d7c2 |
comparison
equal
deleted
inserted
replaced
30308:d500ddae7494 | 30309:4b1af1c867fa |
---|---|
36 samedevice = win32.samedevice | 36 samedevice = win32.samedevice |
37 samefile = win32.samefile | 37 samefile = win32.samefile |
38 setsignalhandler = win32.setsignalhandler | 38 setsignalhandler = win32.setsignalhandler |
39 spawndetached = win32.spawndetached | 39 spawndetached = win32.spawndetached |
40 split = os.path.split | 40 split = os.path.split |
41 termwidth = win32.termwidth | |
42 testpid = win32.testpid | 41 testpid = win32.testpid |
43 unlink = win32.unlink | 42 unlink = win32.unlink |
44 | 43 |
45 umask = 0o022 | 44 umask = 0o022 |
46 | 45 |