On 2022/08/22 12:32:24 +0000, Mikolaj Kucharski <miko...@kucharski.name> wrote:
> Hi,
> 
> I have random OpenBSD CVS checkouts across different directories and
> machines. I work on something, life interrupts, I come back to it
> after longer period of time. In the meantime CVS repo moves forward and
> my checkout is out of date.
> 
> How I can efficiently check for M's (modified) in the repo, without
> actually updating the repo?
> 
> I'm looking for something a long the lines, if a file is outdated, but
> NOT modified, no output is produced. However if the file is locally
> modified, then path should be printed to stdout.
> 
> Do you guys know is there any tool available like that?
> 
> It's important for me that during that process, repo stays read-only and
> no modifications are taking place to the checkout.
> 
> To simulate outut I'm looking for something like this:
> 
> $ cvs -q up -PAd
> ? sbin/ifconfig/ifconfig.c-combined
> ? sbin/ifconfig/obj
> ? sys/arch/amd64/compile/GENERIC.MP/obj
> ? usr.sbin/sysupgrade/sysupgrade.diff
> ? usr.sbin/sysupgrade/sysupgrade.patch
> M sbin/ifconfig/ifconfig.8
> M sbin/ifconfig/ifconfig.c
> M sys/net/if_wg.c
> M sys/net/if_wg.h
> 
> However above output does update, so modifies the repo, which I wouldn't
> want to happen.
> 
> Please CC me in any replies.

I think -n is what you're looking for:

        % cvs -n up -d
        cvs update: Updating .
        M xcompmgr.c
        ? obj
        cvs update: Updating man

Reply via email to