in reply to Re: RFC: proposed new module VCS::Lite
in thread RFC: proposed new module VCS::Lite
It looks to me like this module implements a version control system.I suppose you could take that view, much as DBD::SQLLite implements an RDBMS. Anyway, there are many things that a VC system does that I have no intention of implementing for VCS::Lite. These include an audit trail, change history, development streams, access control, check-out locking and unlocking, labels (aggregation of specific revisions of multiple objects). I can see the potential for another module in the VCS:: namespace which does implement a full VCS, or perhaps a software layer sitting above CVS, P4, PVCS, etc.
Using an array as your base object seems really bizarre to me.There is a reason for this. A source file is a list of lines of text. Diff, patch and merge operate at the level of lines. Thinking about this polymorphically, the concept is really an array, and if you take a look at Algorithm::Diff, you will see that this module works on arrays.
The naive user of the module who is working with text files, does not need to realise that the underlying object is an array. Thanks, Perrin for the feedback. I need to restructure the pod to make this clear - go through a simple worked example with text files; only afterwards deal with other types of array.
This approach overcomes the difficulty that traditional VC systems have with binary files. If the programmer can supply a representation of a binary file as an array, it should be possible to do merges on binary files, given the rules for combining changes.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: RFC: proposed new module VCS::Lite
by perrin (Chancellor) on Dec 18, 2002 at 19:33 UTC | |
by Aristotle (Chancellor) on Dec 18, 2002 at 20:28 UTC | |
by rinceWind (Monsignor) on Dec 19, 2002 at 10:11 UTC |