info-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problems updating rep


From: Larry Jones
Subject: Re: Problems updating rep
Date: Tue, 12 Apr 2005 17:51:34 -0400 (EDT)

Eduardo Mendes writes:
> 
> cvs add zzz.pdf xxx.doc yyy.xls
> cvs ci -m "Adding doc and xls files"
> cvs admin -kb zzz.pdf xxx.doc yyy.xls
> 
> No problem so far, but when I try to cvs ci -m "Updating a file", cvs returns:
> 
> cvs commit: Examining .
> cvs commit: Up-to-date check failed for `zzz.pdf'
> cvs commit: Up-to-date check failed for `yyy.xls'
> cvs commit: Up-to-date check failed for `xxx.doc'
> cvs [commit aborted]: correct above errors first!
> 
> What did I do wrong?

You should have added the files in binary mode rather than adding them
in text mode and then changing them to binary:

        cvs add -kb zzz.pdf xxx.doc yyy.xls 

If you're working on a platform that doesn't distinguish between text
and binary files, all you need to do is update your working directory
appropriately:

        cvs up -A

If you're working on a platform that does distinguish between text and
binary files, you'll still need to do that, but it will probably corrupt
the files in your working directory so afterwards you'll need to replace
them with fresh copies and commit them to get them stored correctly in
the repository.

-Larry Jones

Mr. Subtlety drives home another point. -- Calvin




reply via email to

[Prev in Thread] Current Thread [Next in Thread]