View Full Version : Binary and ASCIi files...
Manoj G
07-14-2003, 02:04 PM
Hello everyone,
My team has commited certain files to cvs as binary format what had to
be a ASCII format.How can I convert the file back to ASCIi format. I
tried to delete the file and again add the file using ASCII mode.I
added version 1.4 and 1.5 as ASCII format.I need to find the
difference between this two revisions but it still tells me that files
is binary.Is there a way to fix this problem.I want the file to change
to ASCII format so that I can compare between two different
revisions.Any help will be useful.
Manoj G
07-15-2003, 08:20 AM
"Koushik Banerjee" <koushik.banerjee@eds.com> wrote in message news:<bf0knp$9tkid$1@ID-188659.news.uni-berlin.de>... "Manoj G" <manojgusa@hotmail.com> wrote in message news:4efca448.0307141404.4773dbb3@posting.google.com... : Hello everyone, : My team has commited certain files to cvs as binary format what had to : be a ASCII format.How can I convert the file back to ASCIi format. I : tried to delete the file and again add the file using ASCII mode.I : added version 1.4 and 1.5 as ASCII format.I need to find the : difference between this two revisions but it still tells me that files : is binary.Is there a way to fix this problem.I want the file to change : to ASCII format so that I can compare between two different : revisions.Any help will be useful. I donot know of any way in CVS to do that. What you could possibly do (with the idea to retain version history), you can get back each version from the repository, and add it back with normal options(without -kb, and no entries for that file type in cvswrappers to enable it for binary file type). Hope that helps. Koushik.
I can do this and tried it but the problem is that the repository
still thinks it as a binary file after I add new revisions of files
with a ASCII format. So when I try to do a diff it says that it is a
binary file and gives me a error message. Even after adding 4
revisions with the ASCII format it still gives me the same error
message.Is there a way I can go to any of the internal cvs files and
say that it is a ASCII file instead of a binary file so that this
problem get fixed.
Koushik Banerjee
07-16-2003, 06:42 AM
"Manoj G" <manojgusa@hotmail.com> wrote in message
news:4efca448.0307150820.7cbe523@posting.google.com...
: "Koushik Banerjee" <koushik.banerjee@eds.com> wrote in message
news:<bf0knp$9tkid$1@ID-188659.news.uni-berlin.de>...
: > "Manoj G" <manojgusa@hotmail.com> wrote in message
: > news:4efca448.0307141404.4773dbb3@posting.google.com...
: > : Hello everyone,
: > : My team has commited certain files to cvs as binary format what had to
: > : be a ASCII format.How can I convert the file back to ASCIi format. I
: > : tried to delete the file and again add the file using ASCII mode.I
: > : added version 1.4 and 1.5 as ASCII format.I need to find the
: > : difference between this two revisions but it still tells me that files
: > : is binary.Is there a way to fix this problem.I want the file to change
: > : to ASCII format so that I can compare between two different
: > : revisions.Any help will be useful.
: >
: > I donot know of any way in CVS to do that. What you could possibly do
(with
: > the idea to retain version history), you can get back each version from
the
: > repository, and add it back with normal options(without -kb, and no
entries
: > for that file type in cvswrappers to enable it for binary file type).
: >
: > Hope that helps.
: > Koushik.
:
: I can do this and tried it but the problem is that the repository
: still thinks it as a binary file after I add new revisions of files
: with a ASCII format. So when I try to do a diff it says that it is a
: binary file and gives me a error message. Even after adding 4
: revisions with the ASCII format it still gives me the same error
: message.Is there a way I can go to any of the internal cvs files and
: say that it is a ASCII file instead of a binary file so that this
: problem get fixed.
You can change the identifier in CVS repository to say how to treat a file,
but that would not solve the problem, because if CVS is treating a file as
binary, it would store/keep revisions in a manner which confirms to binary.
Now to the actual problem, Are you adding the file with the same name after
deleting the original from the repository ( if you just remove it using cvs
remove, it would be placed in 'Attic' and adding again would revive he
older version with the same settings )
How do you know that the file in being checkedin in Ascii format. Can you
look in CVS/Entries file under the directory where the file is present, and
search for the file name and check whether you can see a -kb option. Did you
turn off any wrapper which identifies a certain file type as binary. I
believe the place to look for it is CVSROOT/cvswrappers. I think it would be
a good idea to go through the CVS manual at least once to get a hang of
things.
Koushik.
MyLounge.com Site Map
Forum:
Cars,
Cell Phone,
Database,
Games,
Home Improvement,
IT,
Music,
School,
Sports,
Web Design,
Web Server,
Weight Loss
The MyLounge.com forum is intended for informational use only and should not
be relied upon and is not a substitute for any advice. The information contained
on MyLounge.com are opinions and suggestions of members and is not a representation
of the opinions of MyLounge.com. MyLounge.com does not warrant or vouch for
the accuracy, completeness or usefulness of any postings or the qualifications
of any person responding. Please consult a expert or seek the services of an
attorney in your area for more accuracy on your specific situation. Please note
that our forums also serve as mirrors to Usenet newsgroups. Many posts you see
on our forums are made by newsgroup users who may not be members of MyLounge.com
Term of Service
vBulletin v3.0.7, Copyright ©2000-2008, Jelsoft Enterprises Ltd.