~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/commands.py

  • Committer: Jelmer Vernooij
  • Date: 2011-04-18 23:21:01 UTC
  • mfrom: (5799 +trunk)
  • mto: This revision was merged to the branch mainline in revision 5800.
  • Revision ID: jelmer@samba.org-20110418232101-utgj6599ow9ny9nh
merge bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1031
1031
        Specify the number of processes that can be run concurrently (selftest).
1032
1032
    """
1033
1033
    trace.mutter("bazaar version: " + bzrlib.__version__)
1034
 
    argv = list(argv)
 
1034
    argv = _specified_or_unicode_argv(argv)
1035
1035
    trace.mutter("bzr arguments: %r", argv)
1036
1036
 
1037
1037
    opt_lsprof = opt_profile = opt_no_plugins = opt_builtin =  \
1177
1177
        new_argv = []
1178
1178
        try:
1179
1179
            # ensure all arguments are unicode strings
1180
 
            for a in argv[1:]:
 
1180
            for a in argv:
1181
1181
                if isinstance(a, unicode):
1182
1182
                    new_argv.append(a)
1183
1183
                else:
1199
1199
 
1200
1200
    :return: exit code of bzr command.
1201
1201
    """
1202
 
    argv = _specified_or_unicode_argv(argv)
 
1202
    if argv is not None:
 
1203
        argv = argv[1:]
1203
1204
    _register_builtin_commands()
1204
1205
    ret = run_bzr_catch_errors(argv)
1205
1206
    trace.mutter("return code %d", ret)