I hear CVS cannot/should not/whatever handle JPGs, GIFs, or other binary formats. Is that a stringent no-no? I just want to include a couple in the tree so downloads are as painless as possible.
If it Just Won't Work, is there any standard workaround? These two do not now even reside in the same subdirectory, so something like a separate directory for binaries (to be unpacked from an FTP zip) would really make a mess of things.
kt
ps. This all came up because I am refactoring the existing config logic by which I hope to simplify tracking cell-cultures by CVS while at the same time configuring as necessary to site-specific requirments.
what's wrong with 'cvs add -kb files'?
On Thu, 2004-10-21 at 13:31, Kenny Tilton wrote:
I hear CVS cannot/should not/whatever handle JPGs, GIFs, or other binary formats. Is that a stringent no-no? I just want to include a couple in the tree so downloads are as painless as possible.
If it Just Won't Work, is there any standard workaround? These two do not now even reside in the same subdirectory, so something like a separate directory for binaries (to be unpacked from an FTP zip) would really make a mess of things.
kt
ps. This all came up because I am refactoring the existing config logic by which I hope to simplify tracking cell-cultures by CVS while at the same time configuring as necessary to site-specific requirments.
-- Cells? Cello? Celtik?: http://www.common-lisp.net/project/cells/ Why Lisp? http://alu.cliki.net/RtL%20Highlight%20Film
cells-devel site list cells-devel@common-lisp.net http://common-lisp.net/mailman/listinfo/cells-devel
Michael Naunton wrote:
what's wrong with 'cvs add -kb files'?
probably nothing. i was aware of the option, but also recall a warning at some point from someone about not using CVS for binaries and wanted to check with youse experts before possibly making a mess of things. i'll give it a go.
thx, kenny
Hi all:
If the problem persists (you never know for sure):
I used the 'shar' command on Unixes to convert binary files into an ASCII representation. This creates a self-extratable file:
shar file > file.shar
Just do a
sh file.shar
and you will get the original file.
Frank
On Thu, 2004-10-21 at 20:14, Kenny Tilton wrote:
Michael Naunton wrote:
what's wrong with 'cvs add -kb files'?
probably nothing. i was aware of the option, but also recall a warning at some point from someone about not using CVS for binaries and wanted to check with youse experts before possibly making a mess of things. i'll give it a go.
thx, kenny
cells-devel site list cells-devel@common-lisp.net http://common-lisp.net/mailman/listinfo/cells-devel
The real issue with binaries and CVS (and most other source management systems) is their difficulty in managing revisions to the binaries. If you want to just add some binary files without much intention of revising them repeatedly, you should be fine.
We put binaries into CVS all the time. Don't really have much of a choice. There are some catches:
1) you have to use the -kb flag or set up CVS to automatically treat some files as binary. This is done in the cvswrappers file in CVSROOT (check it out and use CVS to manage it). Part of the 'generic' bits of our cvswrappers file looks like:
*.jar -k 'b' *.gif -k 'b' *.jpg -k 'b' *.png -k 'b' *.zip -k 'b' *.gz -k 'b' *.tar -k 'b' *.tgz -k 'b' *.pdf -k 'b' *.bz2 -k 'b' *.bz -k 'b' *.z -k 'b' *.doc -k 'b' *.ser -k 'b'
2) CVS won't store differences between versions, it stores the whole thing. This can chew up disk space.
3) A consequence of 2) is that you can get nasty behaviour going on with multiple people checking in changes (net effect is that you don't get very good control over these binary files with CVS). You have to manually (as far as I know) lock and unlock the file to prevent the problems.
Cheers, Bob
On Oct 21, 2004, at 2:36 PM, Gary Klimowicz wrote:
The real issue with binaries and CVS (and most other source management systems) is their difficulty in managing revisions to the binaries. If you want to just add some binary files without much intention of revising them repeatedly, you should be fine.
-- gak
-----Original Message----- From: cells-devel-bounces@common-lisp.net [mailto:cells-devel-bounces@common-lisp.net] On Behalf Of Kenny Tilton Sent: Thursday, October 21, 2004 11:15 AM To: Michael Naunton Cc: cells-devel Subject: Re: [cells-devel] What should I do with JPGs and GIFs?
Michael Naunton wrote:
what's wrong with 'cvs add -kb files'?
probably nothing. i was aware of the option, but also recall a warning at some point from someone about not using CVS for binaries and wanted to check with youse experts before possibly making a mess of things. i'll give it a go.
thx, kenny
cells-devel site list cells-devel@common-lisp.net http://common-lisp.net/mailman/listinfo/cells-devel
cells-devel site list cells-devel@common-lisp.net http://common-lisp.net/mailman/listinfo/cells-devel