Tuesday, October 28, 2008

10 minutes of my life wasted with cvs

Today I wanted to see what files I committed to cvs in the last week. Thinking this would be an easy/common task I hit the internet/man pages. I found that I needed the -d flag and some date formatting like

<d, d>,
Select all revisions dated d or earlier.
d<, >d,

Select all revisions dated d or later.

Not really understanding what either of those meant I started with trial/error to guess whether it was MM/DD/YYYY or MM-DD-YYYY or YYYY-MM-DD, etc. None of which worked so I hit up the internet. I still couldn't find any examples so I employed 2 other co-workers on the task. After about 10 minutes of the 3 of us trying different things out we came up with:

cvs log -d "2008/10/20<2008/10/28" -S Note: you need the quotes, and the -S. Apparently, the -S suppresses the output so it only prints out the date ranges I want. If anyone wants to explain how I get "2008/10/20<2008/10/28" from either or d<, >d please feel free!

0 comments:

Buy Prints

  © Blogger template 'Photoblog II' by Ourblogtemplates.com 2008

Back to TOP