/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/commands.py

  • Committer: Matt Nordhoff
  • Date: 2009-11-12 00:35:05 UTC
  • mto: (4850.1.1 integration)
  • mto: This revision was merged to the branch mainline in revision 4851.
  • Revision ID: mnordhoff@mattnordhoff.com-20091112003505-udkd00qguou8icwj
Change the environment variable to a global option.

TODO:

* Blackbox test

* Maybe print a better error message when someone does "bzr --concurrency bananas"?

Show diffs side-by-side

added added

removed removed

Lines of Context:
945
945
 
946
946
    opt_lsprof = opt_profile = opt_no_plugins = opt_builtin =  \
947
947
                opt_no_aliases = False
948
 
    opt_lsprof_file = opt_coverage_dir = None
 
948
    opt_lsprof_file = opt_coverage_dir = opt_concurrency = None
949
949
 
950
950
    # --no-plugins is handled specially at a very early stage. We need
951
951
    # to load plugins before doing other command parsing so that they
969
969
            opt_no_aliases = True
970
970
        elif a == '--builtin':
971
971
            opt_builtin = True
 
972
        elif a == '--concurrency':
 
973
            opt_concurrency = int(argv[i + 1])
 
974
            i += 1
972
975
        elif a == '--coverage':
973
976
            opt_coverage_dir = argv[i + 1]
974
977
            i += 1
978
981
            argv_copy.append(a)
979
982
        i += 1
980
983
 
 
984
    if opt_concurrency is not None:
 
985
        osutils._force_local_concurrency = opt_concurrency
 
986
 
981
987
    debug.set_debug_flags_from_config()
982
988
 
983
989
    argv = argv_copy