comparison mercurial/cmdutil.py @ 12689:c52c629ce19e

termwidth: move to ui.ui from util
author Augie Fackler <durin42@gmail.com>
date Sun, 10 Oct 2010 10:06:36 -0500
parents 7178f6fedb9d
children 642afc8f50e7
comparison
equal deleted inserted replaced
12688:8c034a825cfe 12689:c52c629ce19e
704 704
705 if stat: 705 if stat:
706 diffopts = diffopts.copy(context=0) 706 diffopts = diffopts.copy(context=0)
707 width = 80 707 width = 80
708 if not ui.plain(): 708 if not ui.plain():
709 width = util.termwidth() 709 width = ui.termwidth()
710 chunks = patch.diff(repo, node1, node2, match, changes, diffopts, 710 chunks = patch.diff(repo, node1, node2, match, changes, diffopts,
711 prefix=prefix) 711 prefix=prefix)
712 for chunk, label in patch.diffstatui(util.iterlines(chunks), 712 for chunk, label in patch.diffstatui(util.iterlines(chunks),
713 width=width, 713 width=width,
714 git=diffopts.git): 714 git=diffopts.git):