bugGNU TeXmacs - Bugs: bug #57755, Fine-grained versioning sometimes...


You are not allowed to post comments on this tracker with your current authentication level.

bug #57755: Fine-grained versioning sometimes outputs block-grained

Submitter:  Philippe Joyez <pjoyez>
Submitted:  Thu 06 Feb 2020 03:11:33 PM UTC
Category:  Editor Priority:  5 - Normal
Item Group:  Wishlist Status:  Postponed
Privacy:  Public Assigned to:  vdhoeven
Originator Name:  Open/Closed:  Open
Release:  None Release:  1.99.12
Fixed Release:  None Fixed Release: 
Keywords:  versioning tool

Fri 30 Oct 2020 11:56:42 PM UTC, comment #1: 

The diff tool can certainly be improved, but this matter is quite tricky: when making the tool more fine grained, the risk is that TeXmacs will find many similarities between paragraphs that definitely should be treated as different.  In that case, the diff file gets clobbered by lots of meaningless micro-differences.

In your specific example, TeXmacs indeed considers the two paragraphs as a match only if either their starts or endings coincide.  This explains the observed behavior, which is not necessarily a bug.

I therefore transform this bug into a wish.

Joris van der Hoeven <vdhoeven>
Group administrator
Thu 06 Feb 2020 03:11:33 PM UTC, original submission:  

The version-comparison tool is invaluable when you work with co-authors on a manuscript. In that case, changes are often local and minor, in which case you really want the finest grain possible.

Yet, for some unclear reason it occurred to me several times that the diff would switch to block-grained for whole paragraphs of plain text (no tags involved).

For now I have found no other work around than breaking down the document into smaller chunks and saving them separately to get out the expected fine-grained diff on the parts with problems. But that is a pain and it isn't very reliable either.

I attach 2 files that allow reproducing the problem in Texmacs 1.99.12. Note that you can get the expected fine-grained diff by just changing the capitalization of the first "O" in new.tm.

As a side remark, the fine grain could sometimes be even finer. For instance, when adding a coma after a word or correcting a missing plural "s" or the Capitalization of a word, it could make sence to only point that small change and not the entire word... Could there be a "super-fine" setting?

Philippe Joyez <pjoyez>
Group Member


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files
file #48361:  old.tm added by pjoyez (811B - text/texmacs)
file #48362:  new.tm added by pjoyez (630B - text/texmacs)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by vdhoeven (Updated the item)
  • -email is unavailable- added by pjoyez (Submitted the item)

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.




    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-10-30 vdhoeven Item GroupError Wishlist
        StatusNone Postponed
        Assigned toNone vdhoeven
    2020-10-23 vdhoeven Item GroupNone Error
    2020-02-06 pjoyez Attached File- Added old.tm, #48361
        Attached File- Added new.tm, #48362

    Back to the top

    Powered by Savane 3.12