From: Nick Roberts <nickrob@snap.net.nz>
Cc: emacs-devel@gnu.org
Subject: Re: vc-dired doesn't contact server (was Re: Adding 2006. + VC/PCL-CVS)
Date: Fri, 17 Feb 2006 09:11:29 +1300 [thread overview]
Message-ID: <17396.56433.206333.784658@kahikatea.snap.net.nz> (raw)
In-Reply-To: <1140087987.8867.4.camel@localhost.localdomain>
> > Is there a variable that makes vc contact the server?
>
> Yes, it's called vc-stay-local. Set it to nil and VC contacts the
> repository for operations such as vc-directory. This tends to be rather
> slow, so setting that variable to t is usually preferred. If the state
> of the file in the repository is different than what the local
> heuristics suggest, you'll be notified of that at checkin time anyway.
>
> See the doc string of vc-stay-local; you can set it up so that it stays
> local only for certain repositories. You can also set it
> backend-specific by using vc-BACKEND-stay-local.
Thanks. That's very clear, but as vc-stay-local isn't mentioned in the manual
and it affects behaviour of VC in a fundamental way, how about the patch below
(based on your wording)?
--
Nick http://www.inet.net.nz/~nickrob
*** files.texi 14 Feb 2006 10:13:52 +1300 1.132
--- files.texi 17 Feb 2006 09:06:32 +1300
*************** The files @samp{file1} and @samp{file2}
*** 1963,1968 ****
--- 1963,1979 ----
have also been checked in to the repository---you need to merge them
with the work file before you can check it in.
+ @vindex vc-stay-local
+ The variable @code{vc-stay-local} is nil in the example above which
+ means VC contacts the repository. This tends to be rather
+ slow, so setting that variable to t is the default. If the state
+ of the file in the repository is different than what the local
+ heuristics suggest, you'll be notified of that at checkin time anyway.
+
+ You can also set it up so that it stays local only for certain
+ repositories and in a backend-specific way by using
+ @code{vc-@var{backend}-stay-local}.
+
@vindex vc-directory-exclusion-list
When VC Dired displays subdirectories (in the ``full'' display mode),
it omits some that should never contain any files under version control.
prev parent reply other threads:[~2006-02-16 20:11 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-15 23:34 vc-dired doesn't contact server (was Re: Adding 2006. + VC/PCL-CVS) Nick Roberts
2006-02-16 11:06 ` Andre Spiegel
2006-02-16 20:11 ` Nick Roberts [this message]
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=17396.56433.206333.784658@kahikatea.snap.net.nz \
--to=nickrob@snap.net.nz \
--cc=emacs-devel@gnu.org \
/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).