info-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Finding files in a repository based on content in a comment


From: Jim Hyslop
Subject: Re: Finding files in a repository based on content in a comment
Date: Wed, 29 Aug 2007 10:18:35 -0400
User-agent: Thunderbird 2.0.0.6 (Windows/20070728)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Arthur Barrett wrote:
>> How do I find all the files in a repository whose comments contain a
>> specific text block (in my case an issue number)?
>>
> 
> 
> cvs rlog . | grep "comment" 

Close, but not quite. That won't display the file name. Change the
command to:

cvs rlog . | egrep "(RCS file|issue number)" | grep -B1 "issue number" |
grep "RCS file"

Notes:
1) that this should be all one command - ignore any line wrapping that
may occur.
2) "issue number" is a placeholder for your actual issue number.

- --
Jim Hyslop
Dreampossible: Better software. Simply.     http://www.dreampossible.ca
                 Consulting * Mentoring * Training in
    C/C++ * OOD * SW Development & Practices * Version Management
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFG1YA7LdDyDwyJw+MRAp+cAKDi3otEpm9uWzRyzIfPFKafEZ5ZuwCgvDBc
/lXLZHSEOPtTr//PUNrphgs=
=6abf
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]