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.


In reply to Re: Re: RFC: proposed new module VCS::Lite by rinceWind
in thread RFC: proposed new module VCS::Lite by rinceWind

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.