Re: Merging document changes

From: Date: Sun, 19 Oct 2003 10:22:46 +0000
Subject: Re: Merging document changes
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-166653@lists.php.net to get a copy of this message
Jason Godesky wrote:
I'm working on a collection of functions for handling text documents; when a Document is added, its text is broken into paragraphs, and each paragraph is saved to the database as a separate record. The problem is editing the document, because I only want to update those paragraphs that have been changed (like CVS). I've been trying to find information on how some of the versioning software out there does it, but haven't found anything really helpful. As far as I can see, the troublesome points are when a new paragraph is added, or an old paragraph is deleted. How can you tell the difference between this, and simply a heavily edited paragraph?
In unix/linux, you can use diff to tell you the difference between two files. Why not integrate CVS in your php application? Just use PHP as a "wrapper" for CVS :) -- Burhan Khalid phplist[at]meidomus[dot]com http://www.meidomus.com

« previous php.general (#166653) next »