Subject: bug#5298 closed by Dan Nicolaescu <[email-masked]> (Re: bug#5298: file VC state not updated after a directory check in)

From: [email-masked] (Emacs bug Tracking System)
Date: Sun, 17 Jan 2010 22:24:02 +0000

This is an automatic notification regarding your bug report
which was filed against the emacs package:

#5298: file VC state not updated after a directory check in

It has been closed by Dan Nicolaescu <[email-masked]>.

Their explanation is attached below along with your original report.
If this explanation is unsatisfactory and you have not received a
better one in a separate message then please contact Dan Nicolaescu <[email-masked]> by
replying to this email.

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

Subject: Re: bug#5298: file VC state not updated after a directory check in
From: Dan Nicolaescu <[email-masked]>
To: [email-masked]
Date: Sun, 17 Jan 2010 14:23:38 -0800 (PST)
List-Id: <debbugs-submit.debbugs.gnu.org>

Fixed.

Subject: file VC state not updated after a directory check in
From: Dan Nicolaescu <[email-masked]>
To: bug-gnu-emacs <[email-masked]>
Date: Sun, 3 Jan 2010 10:12:19 -0800 (PST)
List-Id: <debbugs-submit.debbugs.gnu.org>

mkdir /tmp/test
cd /tmp/test
bzr init
echo blah > foo
bzr add foo

emacs -Q 
C-x C-f /tmp/test/foo RET
C-x v d /tmp/test RET

Move point to "./" 

C-x v v
write something in the log-edit buffer.  
C-c C-c

now see that in the *vc-dir* the state for "foo" has changed to `up-to-date'

but the mode-line for the "foo" buffer does not show that the buffer is
up to date.
(vc-state "/tmp/test/foo") returns `added'.

The buffer content has been reverted as expected (this can be verified
by using a VCS that does keyword expansion and adding a "$Id$" in
"foo").

If the point is on the "foo" line instead of "./" everything works as
expected, the VC state is updated.  The problem only happens when
checking in directories.

"bzr" is just used as an example above, the problem happens with all VC backends.