[Bug 4959] New: log -f of renamed file with revision filter does not give full list of revisions

mercurial-bugs at selenic.com mercurial-bugs at selenic.com
Thu Nov 19 22:15:52 UTC 2015


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

            Bug ID: 4959
           Summary: log -f of renamed file with revision filter does not
                    give full list of revisions
           Product: Mercurial
           Version: 3.5-rc
          Hardware: PC
                OS: Other
            Status: UNCONFIRMED
          Severity: feature
          Priority: wish
         Component: Mercurial
          Assignee: bugzilla at selenic.com
          Reporter: vlada at devnull.cz
                CC: mercurial-devel at selenic.com

In a repository where file called novel.txt was renamed multiple times I see
this behavior:

hg 3.2.3:

$ hg log -f -r 'reverse(4:)' --template {rev}:{file_copies}\\n
/var/tmp/mercurial/novel.txt
8:
7:bar.txt (foo.txt)novel.txt (book.txt)
6:
5:book.txt (plaintext.txt)
4:

hg 3.4:

$ hg log -f -r 'reverse(4:)' --template {rev}:{file_copies}\\n
/var/tmp/mercurial/novel.txt 
8:
7:bar.txt (foo.txt)novel.txt (book.txt)

so 3.4 is missing 3 revisions.

This seems to be happening also in 3.5-rc.

If I omit the '-r' option then I will get full list as expected:

$ hg log -f --template {rev}:{file_copies}\\n /var/tmp/mercurial/novel.txt 
8:
7:bar.txt (foo.txt)novel.txt (book.txt)
6:
5:book.txt (plaintext.txt)
4:
3:


This is a big problem for us since the OpenGrok indexer relies on the list of
revisions to be complete in order to track renamed files (see
https://github.com/OpenGrok/OpenGrok/issues/970).

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


More information about the Mercurial-devel mailing list