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

Unified Diff: patch.py

Issue 10890039: Enable support to remove the executable bit on the CQ. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Silence propdel when the property didn't exist Created 8 years, 4 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 | « checkout.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: patch.py
diff --git a/patch.py b/patch.py
index 90886e9a0fc23ae142e1f524ecee7f18f83d39fe..a41c9e40ef1e9e39407e9ce9de853a3998a98c5f 100644
--- a/patch.py
+++ b/patch.py
@@ -391,9 +391,10 @@ class FilePatchDiff(FilePatchBase):
if match:
mode = match.group(2)
# Only look at owner ACL for executable.
- # TODO(maruel): Add support to remove a property.
if bool(int(mode[4]) & 1):
self.svn_properties.append(('svn:executable', '*'))
+ else:
+ self.svn_properties.append(('svn:executable', None))
return
match = re.match(r'^--- (.*)$', line)
« no previous file with comments | « checkout.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698