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

Re: Tildes in filenames

From: Ryan Schmidt <subversion-2007a_at_ryandesign.com>
Date: 2007-02-09 03:00:04 CET

On Feb 8, 2007, at 19:38, James Oltmans wrote:

>>>>> Hey I'm having a weird problem and I'm not sure what's going on.
>>>>>
>>>>> I've got a directory (VOC) and inside that directory we have files
>>>>> like the following:
>>>>>
>>>>> F1, F2, F3 etc... and f1~~, f2~~, f3~~ etc...
>>>>>
>>>>> I tried importing these files into a fresh repository and they
>>>>> were
>>>>> skipped. Does this have something to do with the tildes? Is
>>>>> this an
>>>>> undocumented subversion feature?
>>>>
>>>> You have probably configured Subversion to ignore filenames
>>>> ending in
>>>> tilde. Subversion is configured this way by default, because some
>>>> editors save backup files with filenames ending with tilde, and
>>>> since
>>>> that's just a poor-man's version control, you wouldn't want to
>>>> import
>>>> those into a real version control system like Subversion.
>>>>
>>>> Look in ~/.subversion/config for the line starting with "global-
>>>> ignores". It probably contains something like "*~" which means
>>>> "ignore all files ending with tilde."
>>>
>>> Is there another character or char sequence you would recommend
>>> instead
>>> of ~~?
>>
>> I don't know why you've named your files ending with "~~" so I can't
>> suggest an alternative. However, if you want to name your files
>> ending with "~~", and don't want them to be ignored when importing,
>> simply remove "*~" from the global-ignores line in your Subversion
>> configuration file. You could even comment out the entire global-
>> ignores line so that nothing is ignored at all.
>
> We were having issues with Windows and its case-insensitive filenames.
> Files were originally named:
> F1, F2, F3, f1, f2, f3.
> In order to make the lowercase filenames different and make the
> Windows
> checkout work, we added ~~ to the end. Is there a better convention to
> use?

If you're trying to avoid problems with the default Subversion global-
ignores configuration, you could use an underscore instead of a tilde.

f1_

or

f1__

Of course they're your files so you can use any convention you see fit.

-- 
To reply to the mailing list, please use your mailer's Reply To All  
function
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Feb 9 03:00:52 2007

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.