Never been to DZone Snippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

cvs update non verbose output (See related posts)

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

   1  
   2  import pexpect
   3  
   4  def update():
   5      child = pexpect.spawn('cvs update -dP')
   6  
   7      for line in child:
   8          if not line.startswith('?') and not line.startswith('cvs update'):
   9              print line[:-1]

You need to create an account or log in to post comments to this site.


Click here to browse all 5350 code snippets

Related Posts