emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: vc-revert broken for Subversion files


From: Stefan Monnier
Subject: Re: vc-revert broken for Subversion files
Date: Wed, 25 Jul 2007 15:49:41 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux)

>     when applied to many files, i can imagine two equally valid policies:
>     (a) if any file of the list is stay-local-p, enable optimizations.
>     (b) if all files of the list are stay-local-p, enable optimizations.

stay-local-p is used to determine not whether to use some optimizations but
whether to use some heuristic rather than the real thing.

I.e. (vc-stay-local-p FILE) should be non-nil if FILE's repository is on
a far away server, i.e. if querying the status of FILE will take a long
time.  This is the used to avoid querying the server when it's not
absolutely needed, and also triggers the use of async operations where
supported.

So I think (a) is right, because if any of the files are on a distant
repository, the resulting command will take a long time, even if all the
other files's repositories are nearby.


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]