/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 brzlib/commands.py

  • Committer: Jelmer Vernooij
  • Date: 2017-05-21 14:47:52 UTC
  • mto: This revision was merged to the branch mainline in revision 6623.
  • Revision ID: jelmer@jelmer.uk-20170521144752-8o6jt0a6xat9g7lm
More renames; commands in output, environment variables.

Show diffs side-by-side

added added

removed removed

Lines of Context:
469
469
            # Note: If self.gettext() translates ':Usage:\n', the section will
470
470
            # be shown after "Description" section and we don't want to
471
471
            # translate the usage string.
472
 
            # Though, bzr export-pot don't exports :Usage: section and it must
 
472
            # Though, brz export-pot don't exports :Usage: section and it must
473
473
            # not be translated.
474
474
            doc = self.gettext(doc)
475
475
        else:
530
530
                        result += ':%s:\n%s\n' % (label, sections[label])
531
531
                result += '\n'
532
532
        else:
533
 
            result += (gettext("See bzr help %s for more details and examples.\n\n")
 
533
            result += (gettext("See brz help %s for more details and examples.\n\n")
534
534
                % self.name())
535
535
 
536
536
        # Add the aliases, source (plug-in) and see also links, if any
645
645
        self._setup_outf()
646
646
 
647
647
        # Process the standard options
648
 
        if 'help' in opts:  # e.g. bzr add --help
 
648
        if 'help' in opts:  # e.g. brz add --help
649
649
            self.outf.write(self.get_help_text())
650
650
            return 0
651
 
        if 'usage' in opts:  # e.g. bzr add --usage
 
651
        if 'usage' in opts:  # e.g. brz add --usage
652
652
            self.outf.write(self.get_help_text(verbose=False))
653
653
            return 0
654
654
        trace.set_verbosity_level(option._verbosity_level)
933
933
        # specially here, but hopefully they're handled ok by the logger now
934
934
        exc_info = sys.exc_info()
935
935
        exitcode = trace.report_exception(exc_info, sys.stderr)
936
 
        if os.environ.get('BZR_PDB'):
 
936
        if os.environ.get('BRZ_PDB'):
937
937
            print '**** entering debugger'
938
938
            import pdb
939
939
            pdb.post_mortem(exc_info[2])
1047
1047
        elif a == '--builtin':
1048
1048
            opt_builtin = True
1049
1049
        elif a == '--concurrency':
1050
 
            os.environ['BZR_CONCURRENCY'] = argv[i + 1]
 
1050
            os.environ['BRZ_CONCURRENCY'] = argv[i + 1]
1051
1051
            i += 1
1052
1052
        elif a == '--coverage':
1053
1053
            opt_coverage_dir = argv[i + 1]
1220
1220
 
1221
1221
 
1222
1222
def run_bzr_catch_user_errors(argv):
1223
 
    """Run bzr and report user errors, but let internal errors propagate.
 
1223
    """Run brz and report user errors, but let internal errors propagate.
1224
1224
 
1225
1225
    This is used for the test suite, and might be useful for other programs
1226
1226
    that want to wrap the commandline interface.