Rev 6514: (vila) Empty arguments in EDITOR are now properly preserved. (Vincent in file:///srv/pqm.bazaar-vcs.org/archives/thelove/bzr/2.5/
Patch Queue Manager
pqm at pqm.ubuntu.com
Mon May 27 10:20:02 UTC 2013
At file:///srv/pqm.bazaar-vcs.org/archives/thelove/bzr/2.5/
------------------------------------------------------------
revno: 6514 [merge]
revision-id: pqm at pqm.ubuntu.com-20130527102002-0k9g4cvhocz44chz
parent: pqm at pqm.ubuntu.com-20130523100008-23bj7tfh34p6wqj0
parent: v.ladeuil+lp at free.fr-20130525171243-au0073fnspecl3kg
committer: Patch Queue Manager <pqm at pqm.ubuntu.com>
branch nick: 2.5
timestamp: Mon 2013-05-27 10:20:02 +0000
message:
(vila) Empty arguments in EDITOR are now properly preserved. (Vincent
Ladeuil)
modified:
bzrlib/cmdline.py bzrlibcmdline.py-20100202043522-83yorxx3tcigi7ap-1
bzrlib/tests/test_cmdline.py bzrlibteststest_cmdl-20100202043522-83yorxx3tcigi7ap-2
doc/en/release-notes/bzr-2.5.txt bzr2.5.txt-20110708125756-587p0hpw7oke4h05-1
=== modified file 'bzrlib/cmdline.py'
--- a/bzrlib/cmdline.py 2011-12-19 13:23:58 +0000
+++ b/bzrlib/cmdline.py 2013-05-25 17:12:43 +0000
@@ -72,6 +72,7 @@
if next_char == u'\\':
return _Backslash(self)
elif next_char == self.quote_char:
+ context.token.append(u'')
return self.exit_state
else:
context.token.append(next_char)
=== modified file 'bzrlib/tests/test_cmdline.py'
--- a/bzrlib/tests/test_cmdline.py 2010-12-06 14:01:44 +0000
+++ b/bzrlib/tests/test_cmdline.py 2013-05-25 17:12:43 +0000
@@ -66,6 +66,10 @@
self.assertAsTokens([(True, '')], u'""')
self.assertAsTokens([(False, u"''")], u"''")
self.assertAsTokens([(True, '')], u"''", single_quotes_allowed=True)
+ self.assertAsTokens([(False, u'a'), (True, u''), (False, u'c')],
+ u'a "" c')
+ self.assertAsTokens([(False, u'a'), (True, u''), (False, u'c')],
+ u"a '' c", single_quotes_allowed=True)
def test_unicode_chars(self):
self.assertAsTokens([(False, u'f\xb5\xee'), (False, u'\u1234\u3456')],
=== modified file 'doc/en/release-notes/bzr-2.5.txt'
--- a/doc/en/release-notes/bzr-2.5.txt 2013-05-23 09:27:10 +0000
+++ b/doc/en/release-notes/bzr-2.5.txt 2013-05-25 17:12:43 +0000
@@ -35,6 +35,9 @@
* ``bzr config`` properly handles aliases and references in the
``--directory`` parameter (Vincent Ladeuil, Wouter van Heyst, #947049)
+* Empty arguments in EDITOR are now properly preserved.
+ (Ross Lagerwall, #1089792)
+
* Fix a traceback when trying to checkout a tree that also has an entry
with file-id `TREE_ROOT` somewhere other than at the root directory.
(John Arbash Meinel, #830947)
More information about the bazaar-commits
mailing list