[Webkit-unassigned] [Bug 15041] svn-create-patch should support pulling patches out of Subversion (-c NNNNN)
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Aug 21 13:47:35 PDT 2007
http://bugs.webkit.org/show_bug.cgi?id=15041
------- Comment #1 from ddkilzer at webkit.org 2007-08-21 13:47 PDT -------
Created an attachment (id=16063)
--> (http://bugs.webkit.org/attachment.cgi?id=16063&action=view)
WIP v1
This is a work-in-progress patch that I don't like very much (it's too slow).
It also hasn't been tested enough (especially on copied/moved/replaced files
and directories).
The current approach is to get a list of changed files (via svn log), then
iterate over each of them individually to generate a patch. This has numerous
issues:
- It's terribly slow.
- Added files don't work with "svn diff -r (N-1):N" or "svn diff -c N", so I
have to play tricks by walking up the directory tree until I find a directory
that DID exist at revision (N-1). At this point, I'm wasting bandwidth by
getting patches I don't need. (See
<http://subversion.tigris.org/issues/show_bug.cgi?id=2873> for the issue about
"svn diff -c N" not working for added files.)
A better approach is to do a full "svn diff -r (N-1):N" on the entire WebKit
directory, then order/fix-up the patches as needed. I may still need to do an
"svn log" to find out copied/moved/replaced files as well since the raw diff
from svn won't give me that information. My only concern here is that I would
be loading the entire patch into memory, although I could mitigate that by
saving it to a temp file, then saving offsets into the file for later
retrieval.
--
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the webkit-unassigned
mailing list