[evla-sw-discuss] binary files in cvs.

Stephan Witz switz at nrao.edu
Wed Apr 11 14:46:42 EDT 2007


The short answer is that subversion does a simple check on each file
that is added or imported to see if it is binary, and it treats the
binary ones differently. The long(er) answer is in the subversion faq.

http://subversion.tigris.org/faq.html#binary-files

Kevin Ryan wrote:
> So when we add new binaries to subversion do we have to tell it how  
> to do its job (like with CVS) or is it smart enough to do it itself.
> 
> Kevin
> 
> 
> On Apr 11, 2007, at 9:40 AM, Stephan Witz wrote:
> 
>> While converting a project from cvs to subversion Brian noticed
>> that many of the binary files checked into cvs were never flagged
>> as binary, with the result being cvs tries to do end of line fixes
>> and keyword substitution on them when you check them out. Files
>> of this type include images, pdf documents, shared libraries,
>> word documents, power point presentations, executables and so on.
>>
>> Please take a minute to look through your cvs sandboxes and check
>> to see that any binary files are flagged as such.
>>
>> Below is a log snippet of me testing a file, seeing the sticky
>> options don't include the binary flag, and fixing the problem.
>>
>> dunsel % cvs status submit.png
>> ===================================================================
>> File: submit.png        Status: Up-to-date
>>
>>     Working revision:    1.1
>>     Repository revision: 1.1     /home/asg/cvs/NRAO/E2E/USERDB/ 
>> images/submit.png,v
>>     Sticky Tag:          (none)
>>     Sticky Date:         (none)
>>     Sticky Options:      (none)
>>
>> dunsel % cvs admin -kb submit.png
>> RCS file: /home/asg/cvs/NRAO/E2E/USERDB/images/submit.png,v
>> done
>> dunsel % cvs commit -m "Binary flag set" submit.png
>> dunsel % cvs update -A submit.png
>> U submit.png
>> dunsel % cvs status submit.png
>> ===================================================================
>> File: submit.png        Status: Up-to-date
>>
>>     Working revision:    1.1
>>     Repository revision: 1.1     /home/asg/cvs/NRAO/E2E/USERDB/ 
>> images/submit.png,v
>>     Sticky Tag:          (none)
>>     Sticky Date:         (none)
>>     Sticky Options:      -kb
>>
>>
>>
>> -- 
>> |  Linux n. A highly robust computer virus attacking and replacing
>> |  less fit computer operating systems with more healthy ones at an
>> |  exponential rate; upgrade by natural selection. Kyle Amon, SANS 99.
>> |
>> `--switz at nrao.edu, Stephan Witz: systems dude, tool of the Man.
>>
>> _______________________________________________
>> evla-sw-discuss mailing list
>> evla-sw-discuss at listmgr.cv.nrao.edu
>> http://listmgr.cv.nrao.edu/mailman/listinfo/evla-sw-discuss
> 
> _______________________________________________
> evla-sw-discuss mailing list
> evla-sw-discuss at listmgr.cv.nrao.edu
> http://listmgr.cv.nrao.edu/mailman/listinfo/evla-sw-discuss


-- 
|  Linux n. A highly robust computer virus attacking and replacing
|  less fit computer operating systems with more healthy ones at an
|  exponential rate; upgrade by natural selection. Kyle Amon, SANS 99.
|
`--switz at nrao.edu, Stephan Witz: systems dude, tool of the Man.




More information about the evla-sw-discuss mailing list