[Webkit-unassigned] [Bug 54701] pathRelativeToSVNRepositoryRootForPath needs to handle svn+ssh URLs
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Feb 18 14:08:20 PST 2011
https://bugs.webkit.org/show_bug.cgi?id=54701
Daniel Bates <dbates at webkit.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #82885|review? |review-
Flag| |
--- Comment #2 from Daniel Bates <dbates at webkit.org> 2011-02-18 14:08:20 PST ---
(From update of attachment 82885)
View in context: https://bugs.webkit.org/attachment.cgi?id=82885&action=review
This change looks good to me, but we are missing a unit test.
We should separate the parsing logic from the file system/command execution logic in this function so that we can unit test the parsing logic. See Tools/Scripts/webkitperl/VCSUtils_unittest for example unit tests. In particular, look at Tools/Scripts/webkitperl/VCSUtils_unittest/removeEOL.pl, which is a unit test for a parsing function.
> Tools/Scripts/VCSUtils.pm:389
> + $svnURL =~ s/\Q$repositoryRoot\E\///;
We should take this opportunity to change the substitution delimiter from '/' to '|' so that we don't have to escape the the '/':
$svnURL =~ s|\Q$repositoryRoot\E/||;
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list