Using CVS to search for last commits

alina's picture

I didn't find any possibility to show the last commits I've done in Eclipse, for all the files I commited last time.
The only way was trying to guess which file I modified and to use Show History in the Team context menu (Right click on the file > Team > Show History).


So I used the good old cvs tool in command line.
I knew that my last commit was last week so showing the commits I made this month should do the trick.
Here is what I did in order to find all my commits from the last time:

  • change the current directory into the folder that contains my project into my workspace directory:

cd my_workspace/my_project

 

  • use

cvs history -c -D 2010-03-01


history reffers at searching through the history of the project. Some of the many options it supports conflict even with the cvs standard options.
-c option reports on each time a commit was made
-D date shows the data since date (so basically, if you want to see the modifications since 1st of March 2010, you enter this).

The result you'll see is something like this:
M 2010-03-03 16:20 +0000 john_smith 1.12.4.1 MyTest.java  path/to/the/file   == <remote>

M means that the file, was modified (while A means added and R removed).
Then we have the name of the user who modified it, namely john_smith, the revision, the name of the file, its path and whether this modification is remote or
local.

You can as well use the -a option to show the commits made by all the users. By default, it shows data only for the user executing history.

You cand find out more here.

Your rating: None Average: 2.3 (10 votes)

Post new comment

The content of this field is kept private and will not be shown publicly.
 
CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
11 + 9 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.

About LifLife   |   Terms & Condition   |   Advertising   |   Contact      ©liflife.com