From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.bugs Subject: bug#1067: 23.0.60; vc-dir (git): doesn't update "branch" line Date: Thu, 2 Oct 2008 16:47:54 -0700 (PDT) Message-ID: <200810022347.m92NlsxS019288@mothra.ics.uci.edu> References: <87k5cqogzu.fsf@offby1.atm01.sea.blarg.net> Reply-To: Dan Nicolaescu , 1067@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1222992617 25067 80.91.229.12 (3 Oct 2008 00:10:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 3 Oct 2008 00:10:17 +0000 (UTC) Cc: 1067@emacsbugs.donarmstrong.com To: Eric Hanchrow Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Oct 03 02:11:15 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KlYGE-0000oC-V8 for geb-bug-gnu-emacs@m.gmane.org; Fri, 03 Oct 2008 02:11:11 +0200 Original-Received: from localhost ([127.0.0.1]:33007 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KlYFB-0008Ke-BN for geb-bug-gnu-emacs@m.gmane.org; Thu, 02 Oct 2008 20:10:05 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KlYF5-0008J1-V5 for bug-gnu-emacs@gnu.org; Thu, 02 Oct 2008 20:09:59 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KlYF5-0008Ih-Gl for bug-gnu-emacs@gnu.org; Thu, 02 Oct 2008 20:09:59 -0400 Original-Received: from [199.232.76.173] (port=44299 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KlYF5-0008IW-1k for bug-gnu-emacs@gnu.org; Thu, 02 Oct 2008 20:09:59 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:40860) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KlYF4-00039o-Iw for bug-gnu-emacs@gnu.org; Thu, 02 Oct 2008 20:09:58 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m9309uDB017490; Thu, 2 Oct 2008 17:09:56 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m92Nt6BY013441; Thu, 2 Oct 2008 16:55:06 -0700 X-Loop: don@donarmstrong.com Resent-From: Dan Nicolaescu Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Thu, 02 Oct 2008 23:55:05 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 1067 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 1067-submit@emacsbugs.donarmstrong.com id=B1067.122299130912062 (code B ref 1067); Thu, 02 Oct 2008 23:55:05 +0000 Original-Received: (at 1067) by emacsbugs.donarmstrong.com; 2 Oct 2008 23:48:29 +0000 Original-Received: from barrelv2.ics.uci.edu (barrelv2.ics.uci.edu [128.195.1.114]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m92NmQQH012056 for <1067@emacsbugs.donarmstrong.com>; Thu, 2 Oct 2008 16:48:27 -0700 Original-Received: from mothra.ics.uci.edu (mothra.ics.uci.edu [128.195.6.93]) by barrelv2.ics.uci.edu (8.13.7+Sun/8.13.7) with ESMTP id m92Nlt6f027813; Thu, 2 Oct 2008 16:47:55 -0700 (PDT) Original-Received: (from dann@localhost) by mothra.ics.uci.edu (8.13.8+Sun/8.13.6/Submit) id m92NlsxS019288; Thu, 2 Oct 2008 16:47:54 -0700 (PDT) In-Reply-To: <87k5cqogzu.fsf@offby1.atm01.sea.blarg.net> (Eric Hanchrow's message of "Thu, 02 Oct 2008 13:54:13 -0700") Original-Lines: 37 X-ICS-MailScanner-Information: Please contact the ISP for more information X-ICS-MailScanner-ID: m92Nlt6f027813 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (score=-1.44, required 5, autolearn=disabled, ALL_TRUSTED -1.44) X-ICS-MailScanner-From: dann@mothra.ics.uci.edu X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Thu, 02 Oct 2008 20:09:59 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:21014 Archived-At: Eric Hanchrow writes: > Please write in English if possible, because the Emacs maintainers > usually do not have translators to read other languages for them. > > Your bug report will be posted to the emacs-pretest-bug@gnu.org mailing list. > > Please describe exactly what actions triggered the bug > and the precise symptoms of the bug: > > * I started Emacs in a git working tree, whose checked-out branch was > named "master": > > $ cd /usr/local/src/emacs-via-git/src > $ git branch > * master > $ ./emacs -Q -nw > > * I ran vc-dir by typing C-x v d, and noticed that the output was > correct: in particular, it said "Branch : master" > > * I created, and switched to, a new branch, by typing > > M-! git checkout -b fred RET > > * I "refreshed" the *vc-dir* buffer by typing g ("revert-buffer"). I > noticed that it _still_ said "Branch : master". This is the bug; I > expected to see "Branch : fred". > > * I killed the *vc-dir* buffer with C-x k RET, then recreated it with > C-x v d. This time, I saw "Branch : fred", as I expected. `vc-dir-refresh' needs to recompute the header for vc-ewoc (i.e. run (vc-dir-headers vc-dir-backend default-directory) ) and put the result back in the ewoc. Do you want to take a stab at it?