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.