From: Wu Y. <ad...@ne...> - 2002-11-25 06:17:55
|
> > > What is the preferred/recommended way to do cvs > > > from Windows/MSYS? I tried wincvs but it mangled > > > the gzip compressed files > > > > Mark binary files as binary (-kb), and CVS won't treat > > them as text. Note that this is also a very good idea > > if you are only using your CVS repository with Unix > > clients, to avoid expansion of RCS keywords. > > Ok, thanks I'll let the person who created the CVS > repository know that the binary files aren't marked > as such. Yes, you need to do it. Binary files (in your case, gzip compressed files) should of course be stored with the -kb flag. > > > and added CR to each line of the text files. > > > > As it should, as a good Windows program. > > Is that your definition of a "good windows program"? > It seems to me that if I am downloading unix source > files from a unix CVS repository, it should come > out in unix text format whether I am working from > within Windows or not. If I wanted to convert the > files to Windows format I would do that as a second > step or as a special option of the checkout. CVS clients don't care about what kind of source you are having. The same source will be LF-terminated when checked out on a Unix machine and be CRLF-terminated when on a Windows machine. It will be stored the same way (canonicalized) on the CVS server when you check in (commit) the code. > > > I could not find any option in wincvs to prevent > > > this. Am I missing something? Is there a command > > > line version that works from MSYS? > > > > You already have a command line cvs.exe in the WinCVS > > distribution. > > Wouldn't it also mangle the unix files? I wouldn't call it "mangling". However, in case you really need the LF ending, or to remedy the careless adminitrator's storing binary files as text, the cvs.exe in WinCVS provided two options: --crlf Use the Dos line feed for text files (default). --lf Use the Unix line feed for text files. It is said some environment variables would work too, but I am not sure about it. The above information could be got by simply typing "cvs --help-options". Not every Windows cvs.exe supports it, but the version with WinCVS really does and can be verified by the above command. Best regards, Wu Yongwei |