help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Checking vc-state recursively under a directory


From: Nordlöw
Subject: Re: Checking vc-state recursively under a directory
Date: Wed, 23 Jul 2008 06:30:08 -0700 (PDT)
User-agent: G2/1.0

On 23 Juli, 15:03, Nikolaj Schumacher <address@hidden> wrote:
> Nordlöw <address@hidden> wrote:
> > Is it somehow possible to check whether all the files under a version-
> > controlled directory are all up-to-date (updated)? That is like vc-
> > state() but recursively for a directory?
>
> What do you mean?  up-to-date or updated?  up-to-date means
> (not (vc-workfile-unchanged-p "file")), while updated means something like
> (file-newer-than-file-p "file.elc" "file.el")

I mean like vc-state but for a whole repository, say vc-dir-state(DIR)
and should be behave something like the following (using CVS as
example):
A function that runs "cvs update" and return, say 'up-to-date, if no
file in repository was changed otherwise say 'patched.
If this function returns 'patched we know that something was changed
and we need to rebuild things...

/Nordlöw


reply via email to

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