~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/commands.py

  • Committer: Martin Pool
  • Date: 2008-12-16 07:56:29 UTC
  • mto: (3882.7.11 progress)
  • mto: This revision was merged to the branch mainline in revision 3940.
  • Revision ID: mbp@sourcefrog.net-20081216075629-zhgjzxgoh32453tu
Choose the UIFactory class depending on the terminal capabilities

Show diffs side-by-side

added added

removed removed

Lines of Context:
868
868
 
869
869
def main(argv):
870
870
    import bzrlib.ui
871
 
    from bzrlib.ui.text import TextUIFactory
872
 
    bzrlib.ui.ui_factory = TextUIFactory()
 
871
    bzrlib.ui.ui_factory = bzrlib.ui.make_ui_for_terminal(
 
872
        sys.stdin, sys.stdout, sys.stderr)
873
873
 
874
874
    # Is this a final release version? If so, we should suppress warnings
875
875
    if bzrlib.version_info[3] == 'final':