Subject: bug#16897: closed (Re: bug#16897: 24.3.50; vc-print-root-log doesn't show the top commit if it's a merge commit)

From: [email-masked] (GNU bug Tracking System)
Date: Sat, 08 Mar 2014 07:03:03 +0000

Your bug report

#16897: 24.3.50; vc-print-root-log doesn't show the top commit if it's a merge commit

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
16897: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=16897
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#16897: 24.3.50; vc-print-root-log doesn't show the top commit if it's a merge commit
From: Dmitry Gutov <[email-masked]>
To: Stefan Monnier <[email-masked]>
Cc: [email-masked]
Date: Sat, 08 Mar 2014 09:02:43 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

Version: 24.4

Seems to work fine.

Subject: 24.3.50; vc-print-root-log doesn't show the top commit if it's a merge commit
From: Dmitry Gutov <[email-masked]>
To: [email-masked]
Date: Thu, 27 Feb 2014 19:57:29 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

1. Open a Git repo.

2. Do a simple, non-fast-forward merge from some branch into the current
(but it has to succeed without conflicts).

3. Press `C-x v L`.

The top commit will be hidden, apparently because 'git log' is passed
the 'path' argument, namely the root directory of the repository, and so
it somehow ignores the commit that doesn't add anything to the histroy
beyond the contents of its parents.

Using Git 1.8.3.2.

If I replace `files' with 'nil' in `vc-git-print-log', the top commit is
displayed. Not sure how to handle this best. Perhaps just compare
`files' with (list default-directory)?

That's assuming at least some other backend needs a non-nil valus of
`files' to retrieve the root log.

In GNU Emacs 24.3.50.3 (x86_64-unknown-linux-gnu, GTK+ Version 3.8.6)
 of 2014-02-20 on axl
Repository revision: 116484 [email-masked]
Windowing system distributor `The X.Org Foundation', version 11.0.11405000
System Description:	Ubuntu 13.10