Found another workaround for the 'Uppercase/lowercase issue on Windows' reportet in ticket <https://www.fossil-scm.org/fossil/tktview?name=d6d16fe1aa> resp. discussed on the mailing list <http://www.mail-archive.com/[email protected]/msg18217.html>.

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
[email protected]
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to