Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(401)

Unified Diff: tests/patch_test.py

Issue 7056045: Add support for executables in git-svn patches applied on svn. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « patch.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/patch_test.py
diff --git a/tests/patch_test.py b/tests/patch_test.py
index 945d5d5e00c1fada2fccb08afade1477c19a3243..4ca45e7e5d630417582741a9c29f96b9c7d90e28 100755
--- a/tests/patch_test.py
+++ b/tests/patch_test.py
@@ -393,6 +393,18 @@ class PatchTest(unittest.TestCase):
p = patch.FilePatchDiff('wtf2', diff, [])
self.assertTrue(p)
+ def testGitExe(self):
+ diff = (
+ 'diff --git a/natsort_test.py b/natsort_test.py\n'
+ 'new file mode 100755\n'
+ '--- /dev/null\n'
+ '+++ b/natsort_test.py\n'
+ '@@ -0,0 +1,1 @@\n'
+ '+#!/usr/bin/env python\n')
+ self.assertEquals(
+ [('svn:executable', '*')],
+ patch.FilePatchDiff('natsort_test.py', diff, []).svn_properties)
+
if __name__ == '__main__':
unittest.main()
« no previous file with comments | « patch.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698