tags:

views:

247

answers:

2

Is it possible to get a list of files that are in the working directory tree, but not in the current branch/tag? I currently diff the working copy with another directory updated to the same module and tag/branch but without the local non-repo files. It works, but doesn't honor the .cvsignore files. I figure there must be an option using a variation of 'cvs diff'.

Thanks in advance.

+1  A: 

If your project has:

dir/a.txt       <--- In CVS
    b.txt       <--- In CVS
    c.txt       <--- In CVS
    newfile.txt <---- ***NOT IN CVS***

Then the following command will identify newfile.txt for you:

cvs -n update | egrep '^?'
Alex B
No, not files added (in the cvs sense), but files that are merely present in the directory structure and perhaps _should_ be added. I want to wade through various temp files scattered around and add the important stuff to the project on the repository
Joshua Berry
I clarified my answer with an example.
Alex B
How daft of me! Thanks for the tip. I was so sure that I needed to use the diff functionality that I not only overlooked the functionality in the update command, but also your advice to use the update command.
Joshua Berry
A: 

don't you need to escape the question mark in the regular expression?

cvs -n update | egrep '^\?'
phpzmurf