~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/commands.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-03-21 04:49:05 UTC
  • mfrom: (2367.1.1 integration)
  • Revision ID: pqm@pqm.ubuntu.com-20070321044905-ded01a80ab49bdd9
Update NEWS to match bzr 0.15.

Show diffs side-by-side

added added

removed removed

Lines of Context:
271
271
        # bogus. So set the attribute, so we can find the correct encoding later.
272
272
        self.outf.encoding = output_encoding
273
273
 
 
274
    @deprecated_method(zero_eight)
 
275
    def run_argv(self, argv):
 
276
        """Parse command line and run.
 
277
        
 
278
        See run_argv_aliases for the 0.8 and beyond api.
 
279
        """
 
280
        return self.run_argv_aliases(argv)
 
281
 
274
282
    def run_argv_aliases(self, argv, alias_argv=None):
275
283
        """Parse the command line and run with extra aliases in alias_argv."""
276
284
        if argv is None:
588
596
    # 'command not found' error later.
589
597
 
590
598
    cmd_obj = get_cmd_object(cmd, plugins_override=not opt_builtin)
591
 
    run = cmd_obj.run_argv_aliases
592
 
    run_argv = [argv, alias_argv]
 
599
    if not getattr(cmd_obj.run_argv, 'is_deprecated', False):
 
600
        run = cmd_obj.run_argv
 
601
        run_argv = [argv]
 
602
    else:
 
603
        run = cmd_obj.run_argv_aliases
 
604
        run_argv = [argv, alias_argv]
593
605
 
594
606
    try:
595
607
        if opt_lsprof: