Over a million developers have joined DZone.

Cvs Update Non Verbose Output

I don't like "cvs update" to print out which directories it updates, nor the files not under revision control. Following snippet go directly to the point : print the files that changed during last changeset

import pexpect

def update():
    child = pexpect.spawn('cvs update -dP')

    for line in child:
        if not line.startswith('?') and not line.startswith('cvs update'):
            print line[:-1]

The best of DZone straight to your inbox.

Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}