"log -v" not showing files, but "log --debug" does
Matt Mackall
mpm at selenic.com
Fri Nov 27 19:27:25 CST 2009
On Fri, 2009-11-27 at 19:49 -0500, Greg Ward wrote:
> I'm looking at a rather strange changeset: every way to query
> Mercurial shows that it modified one file, *except* "hg log -v". That
> is, "log -v" seems to think this changeset modified nothing, but I
> know better, and so does the rest of Mercurial. The most striking
> oddity is that "log --debug" reveals the truth.
>
> Here is the "log --debug" version, which is correct:
>
> """
> changeset: 104305:207e192fbd10a21bd293c01b788d0bb68df2975c
> branch: PACS-3-8-3
> parent: 104291:2aff2c98fd87c696d31fe4e14241cce37f6a7700
> parent: 104304:7eeec0142aee531b860ce506ecbf8d5fc4e93a0d
> manifest: 103036:a781ed3076d529b4524b54268e26df62ddcf1df1
> user: Greg Ward <gward@*****>
> date: Thu Nov 26 21:02:43 2009 -0500
> files: LoadBuild/utilities/generatePacsVersion
> extra: branch=PACS-3-8-3
> description:
> generatePacsVersion: handle production builds from Mercurial.
> """
>
> There are many ways to confirm this view of reality: "diff -c 104305",
> "diff -r 104291:104305", "log -p -r 104305", compare output of
> "manifest --debug", "status --rev 104291 --rev 104305". All agree
> that this changeset modified exactly one file.
>
> But "log -v" does not agree; here is what it says:
>
> """
> changeset: 104305:207e192fbd10
> branch: PACS-3-8-3
> parent: 104291:2aff2c98fd87
> parent: 104304:7eeec0142aee
> user: Greg Ward <gward@*******>
> date: Thu Nov 26 21:02:43 2009 -0500
> description:
> generatePacsVersion: handle production builds from Mercurial.
> """
>
> Note the absence of any "files" line. WTF?!? I'm getting the same
> result with 1.3.1ish and current stable. Disabling all extensions
> doesn't change things. Any clue what's going on here?
Probably something related to it being a merge. The changelog only
internally records files that change relative to both parents.
--
http://selenic.com : development and support for Mercurial and Linux
More information about the Mercurial
mailing list