[Bug 5053] New: hg log --follow does not follow if --exclude is given

mercurial-bugs at selenic.com mercurial-bugs at selenic.com
Wed Jan 20 10:49:52 UTC 2016


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

            Bug ID: 5053
           Summary: hg log --follow does not follow if --exclude is given
           Product: Mercurial
           Version: 3.6.3
          Hardware: PC
                OS: Mac OS
            Status: UNCONFIRMED
          Severity: bug
          Priority: wish
         Component: Mercurial
          Assignee: bugzilla at selenic.com
          Reporter: zenbot at gmail.com
                CC: mercurial-devel at selenic.com

Given the following repo:

$ hg init testcopy
$ cd testcopy
$ touch 1
$ hg add 1
$ hg ci -m "Adding 1!"
$ hg cp 1 2
$ hg ci -m "Adding 2!"
$ echo foo >>2
$ hg ci -m "Modifying 2."
$ hg cp 2 3
$ hg ci -m "Adding 3."

`hg log --follow 3 --exclude any-file` shows only the last revision. `hg log
--follow 3` shows all revisions, as expected.

This behaviour appears to have been present for a while, but prior to release
3.2 mercurial would complain if both --follow and --exclude were given, with
the following error message:

abort: can only follow copies/renames for explicit filenames

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


More information about the Mercurial-devel mailing list