~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to shell.py

  • Committer: Aaron Bentley
  • Date: 2009-11-12 09:12:45 UTC
  • mto: This revision was merged to the branch mainline in revision 736.
  • Revision ID: aaron@aaronbentley.com-20091112091245-2lmsz036edgjtp9h
Use a subprocess for qbzr commands.

Show diffs side-by-side

added added

removed removed

Lines of Context:
192
192
            return os.system(line)
193
193
 
194
194
        try:
195
 
            if too_complicated(line):
 
195
            is_qbzr = (
 
196
                cmd_obj.__module__ == 'bzrlib.plugins.qbzr.lib.commands')
 
197
            if too_complicated(line) or is_qbzr:
196
198
                return os.system("bzr "+line)
197
199
            else:
198
200
                return (cmd_obj.run_argv_aliases(args, alias_args) or 0)