diff -r 8c034a825cfe -r c52c629ce19e mercurial/commands.py --- a/mercurial/commands.py Thu Oct 07 23:34:21 2010 -0500 +++ b/mercurial/commands.py Sun Oct 10 10:06:36 2010 -0500 @@ -1834,7 +1834,7 @@ Returns 0 if successful. """ option_lists = [] - textwidth = util.termwidth() - 2 + textwidth = ui.termwidth() - 2 def addglobalopts(aliases): if ui.verbose: