Bug 38423 - Add infrastructure to handle executable bit
Summary: Add infrastructure to handle executable bit
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-01 14:13 PDT by Daniel Bates
Modified: 2010-05-01 15:44 PDT (History)
3 users (show)

See Also:


Attachments
Patch (4.12 KB, patch)
2010-05-01 14:17 PDT, Daniel Bates
no flags Details | Formatted Diff | Diff
Patch (3.96 KB, patch)
2010-05-01 14:39 PDT, Daniel Bates
no flags Details | Formatted Diff | Diff
Patch (3.04 KB, patch)
2010-05-01 15:12 PDT, Daniel Bates
no flags Details | Formatted Diff | Diff
Patch (3.03 KB, patch)
2010-05-01 15:25 PDT, Daniel Bates
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Bates 2010-05-01 14:13:05 PDT
Add the infrastructure to handle the executable bit. We need to implement to parsing of the file mode information in a separate patch.
Comment 1 Daniel Bates 2010-05-01 14:17:11 PDT
Created attachment 54856 [details]
Patch

No functionality was changed, so no new tests. This patch is part of a coordinated effort with Chris Jerdonek to implement support of the executable bit property.
Comment 2 Daniel Bates 2010-05-01 14:39:44 PDT
Created attachment 54857 [details]
Patch

Updated patch.
Comment 3 Chris Jerdonek 2010-05-01 15:00:34 PDT
(In reply to comment #2)
> Created an attachment (id=54857) [details]

> +++ WebKitTools/Scripts/VCSUtils.pm	(working copy)

> +sub toggleExecutableBit
> +{
> +    my ($path, $executableBitDelta) = @_;

I would rename this to something like "scmToggleExecutableBit" to indicate that
this method is setting the executable bit in the source control sense.

Also, I would document that this method does not error out if the file
corresponding to $path does not exist.

> +++ WebKitTools/Scripts/svn-apply	(working copy)
> +    if (!$addition && !$deletion && !$isBinary && !$isGitBinary && !defined($diffHashRef->{executableBitDelta})) {

Should you leave this line unchanged to allow the patch to apply?

> +++ WebKitTools/Scripts/svn-unapply	(working copy)
> +    if (!$addition && !$deletion && !$isBinary && !defined($diffHashRef->{executableBitDelta})) {

Should you leave this line unchanged to allow the patch to apply?
Comment 4 Daniel Bates 2010-05-01 15:12:54 PDT
Created attachment 54858 [details]
Patch

Corrected patch to work when the patch describes modifications to existing files.
Comment 5 Daniel Bates 2010-05-01 15:25:52 PDT
Created attachment 54859 [details]
Patch

Updated patch based on Chris's suggestions.
Comment 6 Chris Jerdonek 2010-05-01 15:29:17 PDT
Comment on attachment 54859 [details]
Patch

As we discussed, LGTM.
Comment 7 Daniel Bates 2010-05-01 15:44:33 PDT
Comment on attachment 54859 [details]
Patch

Clearing flags on attachment: 54859

Committed r58637: <http://trac.webkit.org/changeset/58637>
Comment 8 Daniel Bates 2010-05-01 15:44:40 PDT
All reviewed patches have been landed.  Closing bug.