WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
86973
svn-apply fails to apply a patch that moves files from directory A to A/B
https://bugs.webkit.org/show_bug.cgi?id=86973
Summary
svn-apply fails to apply a patch that moves files from directory A to A/B
Daniel Bates
Reported
2012-05-20 15:13:51 PDT
svn-apply fails to apply
attachment 142343
[details]
(
bug #86138
) with a Git checkout of WebKit: [[ Last 500 characters of output: n/storage/websql/transaction-error-callback-expected.txt patching file LayoutTests/platform/chromium/storage/quota-tracking-expected.txt rm 'LayoutTests/platform/chromium/storage/quota-tracking-expected.txt' patching file LayoutTests/platform/chromium/storage/sql-error-codes-expected.txt rm 'LayoutTests/platform/chromium/storage/sql-error-codes-expected.txt' Failed to create required directory 'LayoutTests/platform/chromium/storage/websql' for path 'LayoutTests/platform/chromium/storage/websql' ]] Notice that Git removes a directory when the last file in it is removed and moving a file F in directory A to directory B in a version control system is equivalent to deleting F in A and adding F to B. With respect to moving files from A to A/B (i.e. B is a sub-directory in A), svn-apply assumes that A must exist. As of 05/20/2012 (*), the directory LayoutTests/platform/chromium/storage contains exactly two files: quota-tracking-expected.txt and sql-error-codes-expected.txt. When we apply
attachment 142343
[details]
, we first remove both of these files from directory LayoutTests/platform/chromium/storage. Then Git removes the directory LayoutTests/platform/chromium/storage (since it's empty). Svn-apply then tries to create the directory LayoutTests/platform/chromium/storage/websql and fails (since it assumes that the directory LayoutTests/platform/chromium/storage exists). (*) <
http://trac.webkit.org/browser/trunk/LayoutTests/platform/chromium/storage?rev=62094
>
Attachments
Patch
(2.32 KB, patch)
2012-05-20 15:36 PDT
,
Daniel Bates
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Daniel Bates
Comment 1
2012-05-20 15:36:06 PDT
Created
attachment 142920
[details]
Patch
Eric Seidel (no email)
Comment 2
2012-05-20 15:49:33 PDT
Comment on
attachment 142920
[details]
Patch So simple! :)
WebKit Review Bot
Comment 3
2012-05-20 16:29:14 PDT
Comment on
attachment 142920
[details]
Patch Clearing flags on attachment: 142920 Committed
r117714
: <
http://trac.webkit.org/changeset/117714
>
WebKit Review Bot
Comment 4
2012-05-20 16:29:19 PDT
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug