[fossil-users] Workaround for 'Uppercase/lowercase issue on Windows '

2015-03-24 Thread Tontyna
Found another workaround for the 'Uppercase/lowercase issue on Windows' 
reportet in ticket 
 resp. 
discussed on the mailing list 
.


Since anonymous isn't allowed to edit tickets (anymore?) I'll post it 
here ;)


To avoid the messed up file names don't `rename A a` directly but rather 
use an intermediate dummy directory:


mkdir dummy
fossil rename A dummy
fossil rename dummy a
rmdir dummy


- updated .cmd from the above mentioned ticket -
@echo off
rem The following script was provided by Ross Berteig. Thanks!
rem modified by Tontyna to provide a workaround

rem Run this in an empty folder where it is safe to create and use a
rem fossil repository.
fossil new abc.fossil
fossil open abc.fossil
mkdir A
cd A
echo a >a.txt
echo c >c.txt
echo e >e.txt
echo g >g.txt
echo i >i.txt
fossil add *
fossil ci --no-warnings -m "Uppercase A" --tag "UPPERCASE"
cd ..

rem Rename "A" to "a" via an intermediate name since batch files
rem apparently can't do that in one step.
move A b
move b a

rem Attempt to simply tell fossil about the name change. This fails.
rem oved by Tontyna: fossil rename A a

rem +++ the workaround +++
rem rename via an intermediate dummy-directory works
rem the directory must exist otherwise fossil rename does nothing
mkdir dummy
fossil rename A dummy
fossil rename dummy a
rmdir dummy
rem +++ the workaround +++

cd a
echo b >b.txt
echo d >d.txt
echo f >f.txt
echo h >h.txt
echo i >i.txt

fossil add *
fossil ci --no-warnings -m "Lowercase A" --tag "lowercase"
cd ..

rem echo Note that both "A" and "a" are present
echo Note that only "a" is present. No mess anymore.
fossil ls

echo Now look at the Timeline and Files pages
fossil ui
pause
--- EOF -

Robert Engelhardt's workaround was (temporarily) enabling case 
sensitivity. And the question arose whether case insensitivity on 
Windows was only a 'cosmetic' setting.
So I turned on case-sensitivity and played around with variations on 
uppercas/lowercase file names producing perplexing effects. Will have to 
do some more studies to decide whether the confusion is a real one or 
only exists in my brain (damaged by Windows).


- Tontyna

P.S.: What is the preferred habit on fossil-users? 'Re:' to older mails 
or start a new thread? Sorry if I did the wrong thing. There really 
shoud be a "Mailing List Use - Recommended Practice" document somewhere.

___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


Re: [fossil-users] {fossil-users] symbolic name tags

2015-03-24 Thread Tontyna
Oh, I see. The sym-prefixed special tags are automagically managed by 
Fossil.
Being unacquainted to the internals of Fossil the wiki page confused me. 
Thought I'd have to add these sym-tags myself.


Thanx to Andy (Bradford and Goth) for the clarification.
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users