Re: [fossil-users] CRLF conversion on windows
I never had problems with LF line endings in my batch files/source files/whatever I am on windows 7 with vs2010. The only thing whitch troubles me is the linux shell interpreter who can not live with CR-LF line endings and renames dirs to dir^M. For god sake let windows out of this, becouse it (currently) works better with different line endings than linux (currently) does. As you see. I'm sure it was different in the 80's and 90's. Back to the topic: Converting files between different OS is an unnecessary feature to me. You can convert more accurate if you write your own scripts to do that. That's like deleting unneeded files out of directories. I wrote a simple tcl script and qt programm to do that: http://sourceforge.net/projects/dircln/files/ 1. cleandir 2. dos2unix 3. fossil add * 4. fossil commit 5. dos2unix If someone does not want to use the 5 commands all the time, wrap it into a shell script. PS: Converting files to different line endings is already available on most systems. Even vs2010 can do it, and it's plugin and macro system is (almost) one of the best. Greetings, Louis Am 07.04.2011 18:55, schrieb Richard Hipp: On Thu, Apr 7, 2011 at 12:42 PM, Ramon Ribó ram...@compassis.com mailto:ram...@compassis.com wrote: MacOSX is using UNIX line ending since more than 10 years-ago. In modern computers, there are two options: Unix/MacOSX: LF Also, Solaris, AIX, HPUX, NetBSD, OpenBSD, QNX, etc. Windows: CR-LF The odd man out. I would not see it as a problem that fossil changed line-endings if it was disabled by default and it could be enabled with something similar to: fossil setting ascii-glob *.c,*.h Another thing that would be a bonus for cross-platform development would be to change the encoding of the text files. In modern Linux it is utf-8. And in modern Windows, it is a code page that depends on the country but it is different from utf-8 Notice how everybody else uses utf8 for everything. Only on windows do we have issues with locale-dependent code pages. There are countless operating systems available today, each with is own peccadillos. So why is it always windows that gives trouble? The more one tries to make code cross-platform, the more one realizes that windows is the problem child. I understand that it is more reasonable to implement in a SCM only the line-ending change, but I wanted to write the encoding problem just for the record. Regards RR 2011/4/7 sky5w...@gmail.com mailto:sky5w...@gmail.com: I would be immensely confused if my SCM was modifying the contents of my source code and/or support documents. Given that MacOS has yet another EOL = [CR], it is better for your own code to manage distribution effects. Just my opinion. -Steve On Thu, Apr 7, 2011 at 11:54 AM, Martin Gagnon eme...@gmail.com mailto:eme...@gmail.com wrote: I know this new feature. But I'm really talking about converting the line ending, for cross platform development issue. -- Martin Le 2011-04-07 à 10:43, Clark Christensen cdcmi...@yahoo.com mailto:cdcmi...@yahoo.com a écrit : I'm using fossil version [1d93222627] 2011-03-01 19:04:32 UTC With this version, Fossil warns about CRLF line ends on commit, and allows me to commit anyway, or abort and fix. This is a good option for me. Some files are OK with CRLFs and others are not. I like being able to choose. -Clark - Original Message - From:Martin Gagnon eme...@gmail.com mailto:eme...@gmail.com To:Fossil Users Mailing List fossil-users@lists.fossil-scm.org mailto:fossil-users@lists.fossil-scm.org Cc: Sent:Thursday, April 7, 2011 4:11 AM Subject:[fossil-users] CRLF conversion on windows Hi, Is there any plan for CRLF conversion under windows? This would be very usefull for cross platform projects. Especially when using Visual Studio on the Windows side, which silently add CRLF line ending on a LF only file which give you a mixed line ending file (got bunch of ^M when editing files with Vim after). it could convert text file from CR-LF to LF when committing and the oposite on checkout, so this would always keep LF line ending on repository and the local checkout on windows would have CR-LF line ending text file. Just like does Git and CVSNT (using Tortoise CVS at least). Of course this might be dangerous for data corruption when some binary file are flag as text file, but this kind of feature would be off by default for sure. -- Martin ___ fossil-users mailing list fossil-users@lists.fossil-scm.org mailto:fossil-users@lists.fossil-scm.org
[fossil-users] Moving multiple files
Hello everyone, can fossil recognize moved files automatically? Thank you, Louis ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
[fossil-users] Fossil file deletion
Following szenario: I have two computers. On computer 1, I create a fossil with some work. Now I commit my work and copy the fossil to computer 2. I rename files on computer 2, do some other work, and commit. I make some filechanges on computer 1, and commit. Now I have two fossils who are out of sync. I come back home and overwrite the fossil from computer 1 with the one from computer 2 (where I renamed files). Now, after I do a fossil update, the (modified) files on computer 1 are deleted and fossil stops the update process, becouse it can not find the newly renamed files. I do not really understand the logic behind this error but, if this isnt the case: Files should be deleted only, if they have not changed (in case of a rename they should not be deleted if the last known version in fossil differs from the current file on disk). Greetings, Louis ___ 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 file deletion
Yes, I overwrite the fossil file, I do not sync it. I somehow just thought that this could cause problems. However, there are a few reasons, which made me try it this way: It is really circular to boot the computer, connect it to the network, start the fossil server just for doing a sync (Then turning it of again...). The next thing is, I maintain more than 5 projects with fossil now. There are two ways to sync them. The first one is to write a script which holds a list of available fossils and syncs all of them, or you type the sync command 5 times (and then you forgot one). With my approach, I was able to put all fossils into a dir and ftpget them, but that did not solve my network boot up problem. So I tried it with a thumb drive and exchanged the fossil files between the two computers with it. I think I use your method now. Is it also possible to sync between two local fossil databases, without a network connection? I also noticed that fossil generates a unique project-id and a unique server-id for each newly generated fossil file. It would be great have a command which regenerates this ids. So one could simply copy a original fossil and regenerate it's ids, initial username and generate a new random password. Additionally, this command should have a option to set all the ids and passwords entries to empty values. This newly prepared fossil is then saved as a copy. Fossil then generates ids and sets random passwords on the next time the prepared fossil is opened. This is usefull for people who want to upload the fossil file itselve, to a public webspace for example. Greetings, Louis Am 16.02.2011 16:54, schrieb Williams, Brian: I have a question for you: When you say you copy the repo, are you file coping or doing a fossil clone? Again, when you say you overwrite the repo on Computer 1, are overwriting the file or doing a sync? If you are really overwriting the repositories then I can well expect that there are problems. I have a similar setup, but I maintain a fossil repo on a thumb drive; when I get home, I do a sync with the repo on my home machine and I'm up to date. I update the workspace and I'm ready to work. Fossil is an extremely powerful and flexible tool, but it does have a few rules; one of those is to associate a check out with one (and only one) repository. -Original Message- From: fossil-users-boun...@lists.fossil-scm.org [mailto:fossil-users-boun...@lists.fossil-scm.org] On Behalf Of Louis Hoefler Sent: Wednesday, February 16, 2011 9:19 AM To: fossil-users@lists.fossil-scm.org Subject: [fossil-users] Fossil file deletion Following szenario: I have two computers. On computer 1, I create a fossil with some work. Now I commit my work and copy the fossil to computer 2. I rename files on computer 2, do some other work, and commit. I make some filechanges on computer 1, and commit. Now I have two fossils who are out of sync. I come back home and overwrite the fossil from computer 1 with the one from computer 2 (where I renamed files). Now, after I do a fossil update, the (modified) files on computer 1 are deleted and fossil stops the update process, becouse it can not find the newly renamed files. I do not really understand the logic behind this error but, if this isnt the case: Files should be deleted only, if they have not changed (in case of a rename they should not be deleted if the last known version in fossil differs from the current file on disk). Greetings, Louis ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
[fossil-users] Fossil http plugin Support
Hello everyone. I am really impressed by fossil. I currently like it that much, I even organize my school and work stuff with it. Now my question: Has someone ever tried to implement some sort of plugin interface which allows to extend the http server? Like a generator for mathematical formula pictures and so on. Thank you, Louis ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users