Rev 4813: Merge in the msgeditor fixes. in http://bazaar.launchpad.net/~jameinel/bzr/2.1.0b4-win32-test-suite
John Arbash Meinel
john at arbash-meinel.com
Tue Nov 10 19:42:59 GMT 2009
At http://bazaar.launchpad.net/~jameinel/bzr/2.1.0b4-win32-test-suite
------------------------------------------------------------
revno: 4813 [merge]
revision-id: john at arbash-meinel.com-20091110194252-kn8iu9ioagt5h0fb
parent: john at arbash-meinel.com-20091110194201-3fsl0pdr9t1wive5
parent: john at arbash-meinel.com-20091110092343-qyablc1z5m52g924
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: 2.1.0b4-win32-test-suite
timestamp: Tue 2009-11-10 13:42:52 -0600
message:
Merge in the msgeditor fixes.
modified:
bzrlib/msgeditor.py msgeditor.py-20050901111708-ef6d8de98f5d8f2f
bzrlib/tests/test_msgeditor.py test_msgeditor.py-20051202041359-920315ec6011ee51
-------------- next part --------------
=== modified file 'bzrlib/msgeditor.py'
--- a/bzrlib/msgeditor.py 2009-03-23 14:59:43 +0000
+++ b/bzrlib/msgeditor.py 2009-11-10 09:23:43 +0000
@@ -64,7 +64,7 @@
x = call(edargs + [filename])
except OSError, e:
# We're searching for an editor, so catch safe errors and continue
- if e.errno in (errno.ENOENT, errno.EACCES):
+ if e.errno in (errno.ENOENT, errno.EACCES, errno.ENOEXEC):
if candidate_source is not None:
# We tried this editor because some user configuration (an
# environment variable or config file) said to try it. Let
=== modified file 'bzrlib/tests/test_msgeditor.py'
--- a/bzrlib/tests/test_msgeditor.py 2009-10-06 14:40:37 +0000
+++ b/bzrlib/tests/test_msgeditor.py 2009-11-10 09:23:43 +0000
@@ -290,7 +290,10 @@
# Call _run_editor, capturing mutter.warning calls.
warnings = []
def warning(*args):
- warnings.append(args[0] % args[1:])
+ if len(args) > 1:
+ warnings.append(args[0] % args[1:])
+ else:
+ warnings.append(args[0])
_warning = trace.warning
trace.warning = warning
try:
More information about the bazaar-commits
mailing list