From: Andre Spiegel <spiegel@gnu.org>
Cc: Stefan Monnier <monnier@iro.umontreal.ca>, emacs-devel@gnu.org
Subject: Re: AW: behavior of vc-recompute-state in combination withvc-cvs-stay-local is t
Date: Tue, 30 Nov 2004 12:39:31 +0100 [thread overview]
Message-ID: <1101814771.15479.30.camel@localhost> (raw)
In-Reply-To: <1B3ACCFD5694A94DBA4E231402B0E9ED9DD6E7@mucmail1.sdm.de>
On Tue, 2004-11-30 at 12:21 +0100, klaus.berndl@sdm.de wrote:
> But what i still do not understand, why vc-recompute-state behaves
> different related if the repository is local or remote 8at least this
> is the only difference i can imagine between the two testcases - see
> my first postin, steps 4 and 3?
For a local repository, VC does indeed call "cvs status" in
vc-recompute-state, even if vc-cvs-stay-local is t. This setting only
affects remote repositories.
> So, which mysterious things are done by revert-buffer so *after* it
> vc-state returns correct 'up-to-date state but wrong 'edited state if
> called *before* the revert-buffer???
Function vc-state uses a cached value of the vc-state property (via
vc-file-getprop). This value gets recomputed in the course of
revert-buffer, which is a sensible thing to do, I would think?
next prev parent reply other threads:[~2004-11-30 11:39 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-30 11:21 AW: behavior of vc-recompute-state in combination withvc-cvs-stay-local is t klaus.berndl
2004-11-30 11:39 ` Andre Spiegel [this message]
2004-11-30 13:25 ` Stefan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1101814771.15479.30.camel@localhost \
--to=spiegel@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=monnier@iro.umontreal.ca \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).