Hi all:

I am using:

    http://www.linux-lovers.be/RevisionsPlugin/#RevisionsPlugin

to keep multiple copied of edited tiddlers. Ideally I would like to be
able to use:

    http://www.TiddlyTools.com/#CompareTiddlersPlugin

with it to compare prior and current revisions. However the
RevisionsPlugin automatically tags the
older revisions it saves with excludeLists. This makes sense IMO.
However it has the side effect of
preventing CompareTiddlersPlugin from showing these older revisions in
its lists of tiddlers to compare.
The following change to CompareTiddlersPlugin adds the older revisions
(identified by the "Revisions" tag)
to the CompareTiddlersPlugin list in the correct location (sorted by
title).
---------------
        reset: function(f,target) {
                var tids=store.getTiddlers('title','excludeLists');
                tids=tids.concat(store.getTaggedTiddlers('Revisions')); // 
rouilj
                tids.sort(function (a,b) { return a.title > b.title; }); 
//rouilj
                f.text1.style.display="none"; f.text1.value="";
                while (f.list1.options[0]) f.list1.options[0]=null;
--------------

Eric, would it be possible to get this included in the
CompareTiddlersPlugin. I am not sure if the
lines marked //rouilj should be invoked only if the RevisionsPlugin is
installed, or if there is a
more efficient way to do the above, but this works for me.

Also one wierd thing that happened was when I was comparing the
revisions of the CompareTiddlersPlugin
itself. It showed almost every line of the tiddler as changed. If I
cut and pasted the contents of the tiddlers
into emacs and compared the two versions in emacs, it showed precisely
the lines I had changed
as differences and everything else compared equal.

When I used CompareTiddlersPlugin on other tiddlers (not marked
systemConfig) that had changed, it often
showed a larger difference section within a single line than I
expected but it got back in sync on the next matching line.

Could it be that tabs and spaces are somehow being converted oddly and
that somehow causes
CompareTiddlersPlugin to misbehave?

Thanks.

-- rouilj

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/TiddlyWiki?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to