Rev 2251: surround the path in quotes to make it more obvious in http://bzr.arbash-meinel.com/branches/bzr/0.15-dev/kind_change_error

John Arbash Meinel john at arbash-meinel.com
Thu Feb 1 16:21:43 GMT 2007


At http://bzr.arbash-meinel.com/branches/bzr/0.15-dev/kind_change_error

------------------------------------------------------------
revno: 2251
revision-id: john at arbash-meinel.com-20070201162136-ukdcskay1ba8ibwc
parent: john at arbash-meinel.com-20070201161746-mk70krrlgzxignam
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: kind_change_error
timestamp: Thu 2007-02-01 10:21:36 -0600
message:
  surround the path in quotes to make it more obvious
modified:
  bzrlib/errors.py               errors.py-20050309040759-20512168c4e14fbd
  bzrlib/tests/test_errors.py    test_errors.py-20060210110251-41aba2deddf936a8
-------------- next part --------------
=== modified file 'bzrlib/errors.py'
--- a/bzrlib/errors.py	2007-02-01 16:17:46 +0000
+++ b/bzrlib/errors.py	2007-02-01 16:21:36 +0000
@@ -335,7 +335,7 @@
     #       introduce an 'unversion' command, the recommended commands should
     #       be changed accordingly.
 
-    _fmt = ("Path %(path)s changed kind from %(orig_kind)s to %(new_kind)s."
+    _fmt = ("Path \"%(path)s\" changed kind from %(orig_kind)s to %(new_kind)s."
             "\nbzr does not currently support this without doing a delete and an"
             " add.\n"
             "Please do:\n"

=== modified file 'bzrlib/tests/test_errors.py'
--- a/bzrlib/tests/test_errors.py	2007-02-01 16:17:46 +0000
+++ b/bzrlib/tests/test_errors.py	2007-02-01 16:21:36 +0000
@@ -51,7 +51,7 @@
         # TODO: jam 20070201 If we introduce kind change support, this error
         #       should be dropped. If we introduce the 'unversion' command,
         #       this message should be changed to use it.
-        self.assertEqual('Path a/path changed kind from file to directory.'
+        self.assertEqual('Path "a/path" changed kind from file to directory.'
                          '\nbzr does not currently support this without doing a'
                          ' delete and an add.\n'
                          'Please do:\n'



More information about the bazaar-commits mailing list