Merge lp:~doxxx/qbzr/qconflicts-cmdline-splitting into lp:qbzr

Proposed by Gordon Tyler
Status: Merged
Merged at revision: 1285
Proposed branch: lp:~doxxx/qbzr/qconflicts-cmdline-splitting
Merge into: lp:qbzr
Diff against target: 20 lines (+2/-1)
1 file modified
lib/conflicts.py (+2/-1)
To merge this branch: bzr merge lp:~doxxx/qbzr/qconflicts-cmdline-splitting
Reviewer Review Type Date Requested Status
Gary van der Merwe Approve
Review via email: mp+28537@code.launchpad.net

Description of the change

This fixes a bug in qconflicts where it cannot use a user-defined external merge tool if the command-line requires quotes, e.g. the path to the executable contains spaces.

It uses the bzrlib.cmdline module available in bzr 2.2.

This is somewhat related to bug 489915.

To post a comment you must log in.
Revision history for this message
Gary van der Merwe (garyvdm) :
review: Approve
Revision history for this message
Alexander Belchenko (bialix) wrote :

Gordon Tyler пишет:
> Gordon Tyler has proposed merging lp:~doxxx/qbzr/qconflicts-cmdline-splitting into lp:qbzr.
>
> Requested reviews:
> QBzr Developers (qbzr-dev)
>
>
> This fixes a bug in qconflicts where it cannot use a user-defined external merge tool if the command-line requires quotes, e.g. the path to the executable contains spaces.
>
> It uses the bzrlib.cmdline module available in bzr 2.2.
>
> This is somewhat related to bug 489915.
>

It makes our trunk only compatible with bzr 2.2. Please, say so in the
readme and update version check in __init__.py

bb:tweak

--
All the dude wanted was his rug back

Revision history for this message
Gary van der Merwe (garyvdm) wrote :

On Sat, Jun 26, 2010 at 11:28 AM, Alexander Belchenko <email address hidden> wrote:
> It makes our trunk only compatible with bzr 2.2. Please, say so in the
> readme and update version check in __init__.py

Oh. Is there no way we can get it to work with bzr 2.1?

Revision history for this message
Gordon Tyler (doxxx) wrote :

Not without porting the cmdline module back to 2.1 or copying it into qbzr.

Revision history for this message
Gary van der Merwe (garyvdm) wrote :

On Sun, Jun 27, 2010 at 12:54 AM, Gordon Tyler <email address hidden> wrote:
> Not without porting the cmdline module back to 2.1 or copying it into qbzr.

Maybe we can fall back to bzrlib.commands.shlex_split_unicode

Revision history for this message
Gary van der Merwe (garyvdm) wrote :

On Sun, Jun 27, 2010 at 9:30 AM, Gary van der Merwe <email address hidden> wrote:
> On Sun, Jun 27, 2010 at 12:54 AM, Gordon Tyler <email address hidden> wrote:
>> Not without porting the cmdline module back to 2.1 or copying it into qbzr.
>
> Maybe we can fall back to bzrlib.commands.shlex_split_unicode

Like so: https://code.edge.launchpad.net/~garyvdm/qbzr/cmdline_fallback/+merge/28582

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'lib/conflicts.py'
2--- lib/conflicts.py 2009-12-18 08:25:29 +0000
3+++ lib/conflicts.py 2010-06-25 20:59:25 +0000
4@@ -18,6 +18,7 @@
5 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
6
7 from PyQt4 import QtCore, QtGui
8+from bzrlib import cmdline
9 from bzrlib.config import GlobalConfig
10 from bzrlib.conflicts import resolve
11 from bzrlib.workingtree import WorkingTree
12@@ -218,7 +219,7 @@
13 if self.program_extmerge_default_button.isChecked():
14 bzr_config = GlobalConfig()
15 extmerge_tool = bzr_config.get_user_option("external_merge")
16- args = extmerge_tool.split(" ")
17+ args = cmdline.split(extmerge_tool)
18 new_args = args[1:len(args)]
19 i = 0
20 while i < len(new_args):

Subscribers

People subscribed via source and target branches