[Bug 5656] New: suboptimal diff compared to previous versions

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Bug 5656] New: suboptimal diff compared to previous versions

mercurial-bugs-2
https://bz.mercurial-scm.org/show_bug.cgi?id=5656

            Bug ID: 5656
           Summary: suboptimal diff compared to previous versions
           Product: Mercurial
           Version: 4.3
          Hardware: PC
                OS: Linux
            Status: UNCONFIRMED
          Severity: bug
          Priority: wish
         Component: Mercurial
          Assignee: [hidden email]
          Reporter: [hidden email]
                CC: [hidden email]

I've noticed that the "hg diff" output has changed compared to previous
versions, and it can be suboptimal. For instance, on the Mutt repository
https://dev.mutt.org/hg/mutt/ with

  hg diff -c 3245

I got with 4.0:

[...]
-#: curs_main.c:1295 pattern.c:1312
+#: curs_main.c:1299 pattern.c:1312
 msgid "Search wrapped to bottom."
 msgstr "La recherche est repartie de la fin."

-#: curs_main.c:1339
+#: curs_main.c:1340
 msgid "No new messages"
 msgstr "Pas de nouveaux messages"

-#: curs_main.c:1339
+#: curs_main.c:1340
 msgid "No unread messages"
 msgstr "Pas de messages non lus"

-#: curs_main.c:1340
+#: curs_main.c:1341
 msgid " in this limited view"
 msgstr " dans cette vue limitée"

-#: curs_main.c:1361 pager.c:2332
+#: curs_main.c:1362 pager.c:2332
[...]

and I now get with 4.3.1:

[...]
-#: curs_main.c:1295 pattern.c:1312
+#: curs_main.c:1299 pattern.c:1312
 msgid "Search wrapped to bottom."
 msgstr "La recherche est repartie de la fin."

-#: curs_main.c:1339
+#: curs_main.c:1340
 msgid "No new messages"
 msgstr "Pas de nouveaux messages"

-#: curs_main.c:1339
-msgid "No unread messages"
-msgstr "Pas de messages non lus"
-
 #: curs_main.c:1340
+msgid "No unread messages"
+msgstr "Pas de messages non lus"
+
+#: curs_main.c:1341
 msgid " in this limited view"
 msgstr " dans cette vue limitée"

-#: curs_main.c:1361 pager.c:2332
+#: curs_main.c:1362 pager.c:2332
[...]

which is longer (and also less readable).

As a consequence, this also modifies the diffstat output.

I did not see any announced change about the diff behavior in the release notes
https://www.mercurial-scm.org/wiki/WhatsNew so that this may be unintentional.

--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Mercurial-devel mailing list
[hidden email]
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel
Loading...