~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/builtins.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-09-05 08:48:24 UTC
  • mfrom: (2785.1.7 show-version)
  • Revision ID: pqm@pqm.ubuntu.com-20070905084824-xdwd8f4fioovdi9v
bugfix #131100: bzr --version should care about encoding of stdout
 (bialix,r=ianc)

Show diffs side-by-side

added added

removed removed

Lines of Context:
2561
2561
        from bzrlib.tests import selftest
2562
2562
        import bzrlib.benchmarks as benchmarks
2563
2563
        from bzrlib.benchmarks import tree_creator
2564
 
        from bzrlib.version import show_version
2565
2564
 
2566
2565
        if cache_dir is not None:
2567
2566
            tree_creator.TreeCreator.CACHE_ROOT = osutils.abspath(cache_dir)
2615
2614
class cmd_version(Command):
2616
2615
    """Show version of bzr."""
2617
2616
 
 
2617
    encoding_type = 'replace'
 
2618
 
2618
2619
    @display_command
2619
2620
    def run(self):
2620
2621
        from bzrlib.version import show_version
2621
 
        show_version()
 
2622
        show_version(to_file=self.outf)
2622
2623
 
2623
2624
 
2624
2625
class cmd_rocks(Command):