[Bug 4472] New: log --follow seems broken on my repo

mercurial-bugs at selenic.com mercurial-bugs at selenic.com
Mon Dec 15 17:12:54 UTC 2014


http://bz.selenic.com/show_bug.cgi?id=4472

          Priority: normal
            Bug ID: 4472
                CC: mercurial-devel at selenic.com
          Assignee: bugzilla at selenic.com
           Summary: log --follow seems broken on my repo
          Severity: bug
    Classification: Unclassified
                OS: Linux
          Reporter: jwdevel+mqbz at gmail.com
          Hardware: PC
            Status: UNCONFIRMED
           Version: 3.2.2
         Component: Mercurial
           Product: Mercurial

I have a repo, which unfortunately I cannot share, where "log
--follow" is giving weird results.

Using Mercurial 3.1.2, I got this output:

    $ hg log --follow MyFile.md
    abort: can only follow copies/renames for explicit filenames

But it was clear from examining history that MyFile.md not only
exists, but has a history of several renames. I upgraded to latest,
assuming there was some bug.

Using Mercurial 3.2.2, I got this output:

    $ hg log --follow MyFile.md --template '{rev}\n'
    1210
    1209

That's slightly better, but only goes up to the most recent rename.
I manually investigated, with:

    $ hg st --change 1209 -C MyFile.md
    A MyFile.md
      olddir/MyFile.md

So as you can see, MyFile was renamed from a different location in rev
1209. But "log --follow" did not show me those older versions.

If I do "log --follow" on the old file, I get:

    $ hg log --follow olddir/MyFile.md --template '{rev}\n'
    1209
    1096
    1095

So there is definitely old history, which I had expected "log
--follow" to report.
In fact, there was a second rename at rev 1095:

    $ hg st --change 1095 -C olddir/MyFile.md
    A olddir/MyFile.md
      OldFileNamemd

So both invocations of "log --follow" are failing in a similar way.

As I said, I can't share the repo, but I'm happy to run commands
against it if it would help diagnose the issue.

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


More information about the Mercurial-devel mailing list