Add support for auto-props in the form: "*.sh = svn:eol-style=LF;svn:executable"
It needs to be parsed manually and assumes '=*' for property that do not specify
a value.
Add clearer message on failure like that by specifiying the command line.
[email protected]
BUG=
TEST=
Review URL: http://codereview.chromium.org/7085022
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@87255 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/tests/checkout_test.py b/tests/checkout_test.py
index 25c4b14..5707c7b 100755
--- a/tests/checkout_test.py
+++ b/tests/checkout_test.py
@@ -307,6 +307,7 @@
def testException(self):
self._check_exception(
self._get_co(True),
+ 'While running patch -p1 --forward --force;\n'
'patching file svn_utils_test.txt\n'
'Hunk #1 FAILED at 3.\n'
'1 out of 1 hunk FAILED -- saving rejects to file '
@@ -325,8 +326,10 @@
self.assertEquals(e.filename, 'svn_utils_test.txt')
self.assertEquals(
e.status,
- "patching file svn_utils_test.txt\n"
- "svn: Cannot set 'svn:ignore' on a file ('svn_utils_test.txt')\n")
+ 'While running svn propset svn:ignore foo svn_utils_test.txt '
+ '--non-interactive;\n'
+ 'patching file svn_utils_test.txt\n'
+ 'svn: Cannot set \'svn:ignore\' on a file (\'svn_utils_test.txt\')\n')
co.prepare()
svn_props = [('svn:eol-style', 'LF'), ('foo', 'bar')]
co.apply_patch(