Re: Fix git-svn for SVN 1.7
- From
- Eric Wong <normalperson@yhbt.net>
- Date
- Jul 30, 2012, 20:38 UTC
- Message-ID
- <20120730203844.GA23892@dcvr.yhbt.net>
- In-Reply-To
- <1343468872-72133-1-git-send-email-schwern@pobox.com>
"Michael G. Schwern" <schwern@pobox.com> wrote:
> There is one exception. t9100-git-svn-basic.sh fails 11-13. This appears > to be due to a bug in SVN to do with symlinks. Leave that for somebody > else, this is the final submission in the series.
That's fine, a few failing tests is better than completely failing.
Show 7 quoted lines
> The work was difficult because the code relies on simple string equalty > when comparing URLs and paths. Turning on canonicalization in one part > of the code would cause another part to fail if it also did not > canonicalize. There's likely still issues. > > A better solution would be to have path and URL objects which overload > the eq operator and automatically stringify canonicalized and escaped.
Perhaps we can depend on the URI.pm module? It seems to be widely-available and not be a significant barrier to installation. On the other hand, I don't know its history, either (especially since we're now dealing with SVN changes...).
Anyways, I don't like relying on operator overloading, it makes code harder to read and review.