[Bug 5021] New: log --stat can print wrong path using specially crafted paths

mercurial-bugs at selenic.com mercurial-bugs at selenic.com
Mon Dec 21 16:07:46 UTC 2015


https://bz.mercurial-scm.org/show_bug.cgi?id=5021

            Bug ID: 5021
           Summary: log --stat can print wrong path using specially
                    crafted paths
           Product: Mercurial
           Version: 3.6.2
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: bug
          Priority: wish
         Component: Mercurial
          Assignee: bugzilla at selenic.com
          Reporter: arcppzju+hgbug at gmail.com
                CC: mercurial-devel at selenic.com

We are using regexp 'diff --git a/(.*) b/(.*)' to extract file paths from mdiff
output. A line like 'diff --git a/b b/a b/a' will confuse current logic. Is it
(a: 'b b/a', b: 'a') or (a: 'b', b: 'a b/a')? This will cause incorrect paths
printed in `hg log --stat`.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Mercurial-devel mailing list