~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/win32utils.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2010-06-01 22:46:23 UTC
  • mfrom: (5274.2.2 profile)
  • Revision ID: pqm@pqm.ubuntu.com-20100601224623-bdsqp9mwnq4ehwq5
(lifeless) Explicitly removing ``--profile-imports`` option from parsed
 command-line arguments on Windows, because bzr script does the same. (bialix,
 #588277) (Alexander Belchenko)

Show diffs side-by-side

added added

removed removed

Lines of Context:
568
568
                if argv[idx][:1] != '-':
569
569
                    break
570
570
            argv = argv[idx+1:]
 
571
        # we should remove '--profile-imports' option as well (bug #588277)
 
572
        # see bzr script ~ line 54
 
573
        if '--profile-imports' in argv and '--profile-imports' not in sys.argv:
 
574
            argv.remove('--profile-imports')
571
575
        return argv
572
576
else:
573
577
    get_unicode_argv = None