comparison mercurial/scmutil.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 af7c60988f6e
children 365812902904
comparison
equal deleted inserted replaced
30308:d500ddae7494 30309:4b1af1c867fa
38 else: 38 else:
39 from . import scmposix as scmplatform 39 from . import scmposix as scmplatform
40 40
41 systemrcpath = scmplatform.systemrcpath 41 systemrcpath = scmplatform.systemrcpath
42 userrcpath = scmplatform.userrcpath 42 userrcpath = scmplatform.userrcpath
43 termwidth = scmplatform.termwidth
43 44
44 class status(tuple): 45 class status(tuple):
45 '''Named tuple with a list of files per status. The 'deleted', 'unknown' 46 '''Named tuple with a list of files per status. The 'deleted', 'unknown'
46 and 'ignored' properties are only relevant to the working copy. 47 and 'ignored' properties are only relevant to the working copy.
47 ''' 48 '''