File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other Open Source Projects and the fly likes How do version control systems figure the different between 2 version of a file Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Reply Bookmark "How do version control systems figure the different between 2 version of a file" Watch "How do version control systems figure the different between 2 version of a file" New topic
Author

How do version control systems figure the different between 2 version of a file

gayathri hariharan
Greenhorn

Joined: Jan 11, 2005
Posts: 27
Hello Author,

I'm new to version control and so my questions might be basic.
If i make changes to a text file say hello.txt , then its probably easier to figure the changes to the file.
If i check in a pdf document how would the version control figure the changes. Do they ship with tools to check changes across different types of document?


thanks,<br />Gayathri
Steven Bell
Ranch Hand

Joined: Dec 29, 2004
Posts: 1071
On all the Version Control Systems I've used if the file is not plain text (.txt, .java, .c, .bat, ect...) it sees the file as binary. A changed binary file simply replaces the old one.
Jeff Machols
author
Ranch Hand

Joined: Sep 07, 2004
Posts: 43
Subversion can only diff text files at the moment. You can do a binary diff to apply changes/patches to binary files. If there is a tool that can show the content differences of PDFs, subversion allows you to call external programs to perform the actual diff.


Author of <a href="http://www.amazon.com/exec/obidos/ASIN/1932394362/ref=jranch-20" target="_blank" rel="nofollow">Subversion in Action</a>
 
 
subject: How do version control systems figure the different between 2 version of a file
 
Threads others viewed
Productivity increase by using Jakarta Commons
writing back to a xml file
Comparing XML to XSLT
version control
Moving Projects and Renaming Workspaces in Eclipse
jQuery in Action, 2nd edition