~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/commands.py

  • Committer: Martin Pool
  • Date: 2005-09-18 00:57:26 UTC
  • mto: (1185.8.2) (974.1.91)
  • mto: This revision was merged to the branch mainline in revision 1390.
  • Revision ID: mbp@sourcefrog.net-20050918005726-9cbc228aeeaf4849
- run_bzr_captured also includes logged errors in 
  captured stderr
- simple test that exercises this

Show diffs side-by-side

added added

removed removed

Lines of Context:
638
638
    bzrlib.trace.log_startup(argv)
639
639
    bzrlib.ui.ui_factory = bzrlib.ui.TextUIFactory()
640
640
 
641
 
    return run_bzr_catch_errors(argv)
 
641
    return run_bzr_catch_errors(argv[1:])
642
642
 
643
643
 
644
644
def run_bzr_catch_errors(argv):
645
645
    try:
646
646
        try:
647
647
            try:
648
 
                return run_bzr(argv[1:])
 
648
                return run_bzr(argv)
649
649
            finally:
650
650
                # do this here inside the exception wrappers to catch EPIPE
651
651
                sys.stdout.flush()