Merge lp:~bialix/bzr/588277-profile-imports into lp:bzr

Proposed by Alexander Belchenko
Status: Merged
Approved by: John A Meinel
Approved revision: no longer in the source branch.
Merged at revision: 5276
Proposed branch: lp:~bialix/bzr/588277-profile-imports
Merge into: lp:bzr
Diff against target: 29 lines (+8/-0)
2 files modified
NEWS (+4/-0)
bzrlib/win32utils.py (+4/-0)
To merge this branch: bzr merge lp:~bialix/bzr/588277-profile-imports
Reviewer Review Type Date Requested Status
John A Meinel Approve
Review via email: mp+26492@code.launchpad.net

Commit message

Explicitly removing ``--profile-imports`` option from parsed command-line arguments on Windows, because bzr script does the same. (bialix, #588277)

Description of the change

Explicitly removing ``--profile-imports`` option from parsed command-line arguments on Windows, because bzr script does the same. (Alexander Belchenko, #588277)

To post a comment you must log in.
Revision history for this message
John A Meinel (jameinel) wrote :

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Alexander Belchenko wrote:
> Alexander Belchenko has proposed merging lp:~bialix/bzr/588277-profile-imports into lp:bzr.
>
> Requested reviews:
> bzr-core (bzr-core)
> Related bugs:
> #588277 --profile-imports broken on windows
> https://bugs.launchpad.net/bugs/588277
>
>
> Explicitly removing ``--profile-imports`` option from parsed command-line arguments on Windows, because bzr script does the same. (Alexander Belchenko, #588277)
>

 merge: approve

John
=:->

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkwFHqAACgkQJdeBCYSNAAMd3wCfQlWDfYzn40ARvGghRx/C/TY3
QY0AmwYiZqD1SW0UJ0TRBTCfUCrHZnYP
=JLqq
-----END PGP SIGNATURE-----

review: Approve
Revision history for this message
Alexander Belchenko (bialix) wrote :

Thank you, John. Now it's time to configure pqm plugin.

Revision history for this message
Robert Collins (lifeless) wrote :

sent to pqm by email

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'NEWS'
2--- NEWS 2010-05-31 21:38:46 +0000
3+++ NEWS 2010-06-01 14:25:48 +0000
4@@ -25,6 +25,10 @@
5 test that all commands available to the test suite have help.
6 (Robert Collins, #177500)
7
8+* Explicitly removing ``--profile-imports`` option from parsed command-line
9+ arguments on Windows, because bzr script does the same.
10+ (Alexander Belchenko, #588277)
11+
12 Improvements
13 ************
14
15
16=== modified file 'bzrlib/win32utils.py'
17--- bzrlib/win32utils.py 2010-05-20 02:57:52 +0000
18+++ bzrlib/win32utils.py 2010-06-01 14:25:48 +0000
19@@ -568,6 +568,10 @@
20 if argv[idx][:1] != '-':
21 break
22 argv = argv[idx+1:]
23+ # we should remove '--profile-imports' option as well (bug #588277)
24+ # see bzr script ~ line 54
25+ if '--profile-imports' in argv and '--profile-imports' not in sys.argv:
26+ argv.remove('--profile-imports')
27 return argv
28 else:
29 get_unicode_argv = None