[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Resolving issue 1524: cvs2svn should replace "/" with "," ...

From: Max Bowsher <maxb_at_ukf.net>
Date: 2004-01-04 20:51:18 CET

mark benedetto king wrote:
> On Sun, Jan 04, 2004 at 04:10:15PM +0100, Erik Huelsmann wrote:
>>> On Sun, Jan 04, 2004 at 02:56:58PM +0100, Erik Huelsmann wrote:
>>>>
>>>> I attached a patch to issue 1524 (cvs2svn should replace "/" with ","
or
>>>> something, in symbolic names) which not only replaces '/' with ',' but
also
>>>> replaces '\' with ';'. Both characters ('/' and '\') are not forbidden
>>>> explicitly by cvs (v1.11) whereas ',' and ';' are, as can be concluded
>>>> from the thread attached to the issue.
>>>>
>>>> Do you thinks this is an appropriate replacement rule?
>>>>
>>>
>>> IMO, ';' should be avoided in paths where possible, because of its
>>> significance to most unix shells. How about '.' or '@', instead?
>>
>> In which case it has to be @ since dots at the end of a filename don't
work
>> on windows. But the @ sign has meaning to Subversion for indicating a
>> revision number doesn't it? (That's why I elected not to use it.)
>>
>
> We could do something like:
>
> "/" -> ",slash,"
> "\" -> ",backslash,"
>
> But that's just too hideous; I'd rather the potential for bad ';'/shell
> interaction (which is technically "user error"). In that light, ";" is
> okay with me.

Furthermore, '\' already has bad shell interaction, so changing it to ';'
doesn't make the problem worse.

Re the patch: Looks good at first glance (I've never used Python string
transtbls though)
However, the run-tests.py portion has a couple of issues: The docstring
needs updating too, and the change to the test is incorrect. See one of the
other tests - e.g. resync_misgroups - for the correct idiom.

Max.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun Jan 4 20:55:15 2004

This is an archived mail posted to the Subversion Dev mailing list.