[Bug 5707] New: hg log filtering using file('path:pattern') does not work as expected

mercurial-bugs at mercurial-scm.org mercurial-bugs at mercurial-scm.org
Thu Oct 12 08:16:18 UTC 2017


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

            Bug ID: 5707
           Summary: hg log filtering using file('path:pattern') does not
                    work as expected
           Product: Mercurial
           Version: 4.3
          Hardware: PC
                OS: Windows
            Status: UNCONFIRMED
          Severity: bug
          Priority: wish
         Component: Mercurial
          Assignee: bugzilla at mercurial-scm.org
          Reporter: lnv_510zjhmr750f at byom.de
                CC: mercurial-devel at mercurial-scm.org

Created attachment 1978
  --> https://bz.mercurial-scm.org/attachment.cgi?id=1978&action=edit
hg repository and logfiles

When using mercurial > 3.3.3 and trying to filter commits using
"file('path:pattern')" syntax, only commits of non-active branches are removed.
=> Filtering on active branch does not seem to work.

I have attached a repository containing two files:
- ufo1.txt (first commit)
- ufo2.txt in sub-directory "adir" (second commit)

When filtering commits using command
hg log -r file('path:adir')
output is:

Mercurial 3.3.3 (expected result):
- second commit only

Mercurial > 3.3.3 (wrong result):
- first and second commit

Remark: tested Mercurial up to 4.3.1 (at random)

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


More information about the Mercurial-devel mailing list