Discussion:
Search CVS commit for a substring
sandeepk1611
2011-02-07 22:02:15 UTC
Permalink
Hi,

I would like to retrieve the commit information ( the names of files
committed, commit message, date, etc.) with a substring in the commit text.
For example, if a commit message has the text "Bug #122345", can I use the
string "122345" in some command like log, etc. and get the list of files
committed(added, removed, changed) for this commit?

I would really appreciate any help on this

Thanks,
Sandeep
--
View this message in context: http://old.nabble.com/Search-CVS-commit-for-a-substring-tp30868247p30868247.html
Sent from the Gnu - Cvs - Info mailing list archive at Nabble.com.
sandeepk1611
2011-02-07 18:52:11 UTC
Permalink
Hi,

I would like to retrieve the commit information ( the names of files
committed, commit message, date, etc.) with a substring in the commit text.
For example, if a commit message has the text "Bug #122345", can I use the
string "122345" in some command like log, etc. and get the list of files
committed(added, removed, changed) for this commit?

I would really appreciate any help on this

Thanks,
Sandeep
--
View this message in context: http://old.nabble.com/Search-CVS-commit-for-a-substring-tp30866611p30866611.html
Sent from the Gnu - Cvs - Info mailing list archive at Nabble.com.
Bulgrien, Kevin
2011-02-08 15:21:37 UTC
Permalink
http://www.google.com/search?q=cvs+search+commit+comment+for+string

Gives this as the first hit:

http://stackoverflow.com/questions/118342/how-to-search-cvs-comment-history

As a start, try checking that out as it seems to address the issue you
want to resolve... or maybe some of the other hits like:

http://wiki.eclipse.org/Search_CVS

---
Kevin R. Bulgrien
Design and Development Engineer

This message and/or attachments may include information subject to GD Corporate Policy 07-105 and is intended to be accessed only by authorized personnel of General Dynamics and approved service providers. Use, storage and transmission are governed by General Dynamics and its policies. Contractual restrictions apply to third parties. Recipients should refer to the policies or contract to determine proper handling. Unauthorized review, use, disclosure or distribution is prohibited. If you are not an intended recipient, please contact the sender and destroy all copies of the original message.
sandeepk1611
2011-02-10 18:20:13 UTC
Permalink
Thanks Kevin for your reply.
Post by Bulgrien, Kevin
http://www.google.com/search?q=cvs+search+commit+comment+for+string
http://stackoverflow.com/questions/118342/how-to-search-cvs-comment-history
As a start, try checking that out as it seems to address the issue you
http://wiki.eclipse.org/Search_CVS
---
Kevin R. Bulgrien
Design and Development Engineer
This message and/or attachments may include information subject to GD
Corporate Policy 07-105 and is intended to be accessed only by authorized
personnel of General Dynamics and approved service providers. Use,
storage and transmission are governed by General Dynamics and its
policies. Contractual restrictions apply to third parties. Recipients
should refer to the policies or contract to determine proper handling.
Unauthorized review, use, disclosure or distribution is prohibited. If
you are not an intended recipient, please contact the sender and destroy
all copies of the original message.
--
View this message in context: http://old.nabble.com/Search-CVS-commit-for-a-substring-tp30866611p30894937.html
Sent from the Gnu - Cvs - Info mailing list archive at Nabble.com.
Todd Denniston
2011-02-08 15:18:17 UTC
Permalink
Post by sandeepk1611
Hi,
I would like to retrieve the commit information ( the names of files
committed, commit message, date, etc.) with a substring in the commit text.
For example, if a commit message has the text "Bug #122345", can I use the
string "122345" in some command like log, etc. and get the list of files
committed(added, removed, changed) for this commit?
I would really appreciate any help on this
Thanks,
Sandeep
IIRC (because it has been a long time since I used cvs2cl to search this way ...)

cd my/sandbox
cvs2cl -r -t -R 122345 -b --lines-modified --summary \
--no-hide-branch-additions --show-dead

I think the above line will show pretty much everything. I normally only use -r -t and sometimes
--summary.


cvs2cl --help #for all the options

http://www.red-bean.com/cvs2cl/
--
Todd Denniston
Crane Division, Naval Surface Warfare Center (NSWC Crane)
Harnessing the Power of Technology for the Warfighter
Loading...