Re: Parsing Loginfo-Information needed
If you have direct access to your repository, then take a look at the rinfo program, which produces such output in a way that's easy to scan automatically. Otherwise, you'd be well advised to learn awk or perl, which are good at scanning complex output like this. The rinfo program is located at: http://www.wakawaka.com/source.html --- Forwarded mail from [EMAIL PROTECTED] I used the following command cvs log -NSb -r -d ">2005-03-22" It displays lot of information . What I need out of that is only the filename, latest revision number and author and the comment. I am very bad in parsing the output. Please helpme out. RCS file: /cvs_prod/CENTREXMATE/FRONTEND/CentrexMateWeb/WebContent/pages/verify/ vpo.jsp,v Working file: CentrexMateWeb/WebContent/pages/verify/vpo.jsp head: 1.4 branch: locks: strict access list: keyword substitution: kv total revisions: 4; selected revisions: 1 description: revision 1.4 date: 2005/03/22 22:19:27; author: ar7314; state: Exp; lines: +3 -3 R37_WR102340_corrected tag --- End of forwarded message from [EMAIL PROTECTED] ___ Info-cvs mailing list Info-cvs@gnu.org http://lists.gnu.org/mailman/listinfo/info-cvs
Parsing Loginfo-Information needed
Hi Jim I used the following command cvs log -NSb -r -d ">2005-03-22" It displays lot of information . What I need out of that is only the filename, latest revision number and author and the comment. I am very bad in parsing the output. Please helpme out. RCS file: /cvs_prod/CENTREXMATE/FRONTEND/CentrexMateWeb/WebContent/pages/verify/ vpo.jsp,v Working file: CentrexMateWeb/WebContent/pages/verify/vpo.jsp head: 1.4 branch: locks: strict access list: keyword substitution: kv total revisions: 4; selected revisions: 1 description: revision 1.4 date: 2005/03/22 22:19:27; author: ar7314; state: Exp; lines: +3 -3 R37_WR102340_corrected tag = Thanks SARAVANAN SUBRMANIAN SCM Centrex Mate -Original Message- From: Jim.Hyslop [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 23, 2005 4:03 PM To: SUBRAMANIAN, SARAVANAN (SBCSI); info-cvs@gnu.org Subject: RE: parsing loginfo (was: Info-cvs Digest, Vol 28, Issue 35) SUBRAMANIAN, SARAVANAN (SBCSI) wrote: > My requirement is to parse the the username, comment and last revision > from a specified branch from the log info > Can any help me with the syntax of the command. > I tried may of the options, nothing work out fine.Please help me out. First, have you read the documentation at https://www.cvshome.org/docs/manual/cvs-1.11.19/cvs_18.html#SEC173 If you have, was there anything there that was not clear? What have you tried, and what were your results? -- Jim Hyslop Senior Software Designer Leitch Technology International Inc. ( http://www.leitch.com ) Columnist, C/C++ Users Journal ( http://www.cuj.com/experts ) ___ Info-cvs mailing list Info-cvs@gnu.org http://lists.gnu.org/mailman/listinfo/info-cvs
RE: Info-cvs Digest, Vol 28, Issue 35
SUBRAMANIAN, SARAVANAN (SBCSI) wrote: > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Info-cvs digest..." First, some netiquette is in order. 1) DO NOT start a new message thread by replying to an existing topic. 2) When replying to a digest, CHANGE THE SUBJECT LINE, as the instructions in the digest tell you. 3) When replying to a digest, DO NOT QUOTE THE ENTIRE DIGEST!! Now, to your problem: > When I tried to execute the following command > cvs log -Nb -r -d >2005-03-22 CentrexMateWeb > I am getting the following error.. > cvs [log aborted]: Can't parse date/time: CentrexMateWeb > What may be issue behind this, > Can any one help me with that.. Try putting quotation marks around the -d option, as in: -d ">2005-03-22" -- Jim Hyslop Senior Software Designer Leitch Technology International Inc. ( http://www.leitch.com ) Columnist, C/C++ Users Journal ( http://www.cuj.com/experts ) ___ Info-cvs mailing list Info-cvs@gnu.org http://lists.gnu.org/mailman/listinfo/info-cvs
RE: parsing loginfo (was: Info-cvs Digest, Vol 28, Issue 35)
SUBRAMANIAN, SARAVANAN (SBCSI) wrote: > My requirement is to parse the the username, comment and last revision > from a specified branch from the log info > Can any help me with the syntax of the command. > I tried may of the options, nothing work out fine.Please help me out. First, have you read the documentation at https://www.cvshome.org/docs/manual/cvs-1.11.19/cvs_18.html#SEC173 If you have, was there anything there that was not clear? What have you tried, and what were your results? -- Jim Hyslop Senior Software Designer Leitch Technology International Inc. ( http://www.leitch.com ) Columnist, C/C++ Users Journal ( http://www.cuj.com/experts ) ___ Info-cvs mailing list Info-cvs@gnu.org http://lists.gnu.org/mailman/listinfo/info-cvs
RE: Info-cvs Digest, Vol 28, Issue 35
Hi all My requirement is to parse the the username, comment and last revision from a specified branch from the log info Can any help me with the syntax of the command. I tried may of the options, nothing work out fine.Please help me out. Thanks SARAVANAN SUBRMANIAN SCM Centrex Mate -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Wednesday, March 23, 2005 10:46 AM To: info-cvs@gnu.org Subject: Info-cvs Digest, Vol 28, Issue 35 Send Info-cvs mailing list submissions to info-cvs@gnu.org To subscribe or unsubscribe via the World Wide Web, visit http://lists.gnu.org/mailman/listinfo/info-cvs or, via email, send a message with subject or body 'help' to [EMAIL PROTECTED] You can reach the person managing the list at [EMAIL PROTECTED] When replying, please edit your Subject line so it is more specific than "Re: Contents of Info-cvs digest..." Today's Topics: 1. Get no mail from log_accum.pl (Rafal Kedziorski) 2. RE: third-party sources sharing same directory (Jim.Hyslop) 3. RE: verifymsg script ([EMAIL PROTECTED]) -- Message: 1 Date: Wed, 23 Mar 2005 16:16:15 +0100 From: Rafal Kedziorski <[EMAIL PROTECTED]> Subject: Get no mail from log_accum.pl To: info-cvs@gnu.org Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset="us-ascii" hi, I want use log_accum.pl for get email with changes in our sources. I've done this: - add line in loginfo: ALL $CVSROOT/CVSROOT/log_accum.pl -u $USER %s - add line in checkoutlist But after commit I didn't get any email. Only the message: Checking in lib/net/polonium/xmlapi/request/synchronize/SynchronizeMediaRequest_1_0. java; /data/cvs/mmcms/src/lib/net/polonium/xmlapi/request/synchronize/Synchron izeMediaRequest_1_0.java,v <-- SynchronizeMediaRequest_1_0.java new revision: 1.26; previous revision: 1.25 done Processing log script arguments... Mailing the commit message to [EMAIL PROTECTED] (from [EMAIL PROTECTED]) No mail for rafal Checking in lib/net/polonium/xmlapi/response/AbstractBaseResponse.java; /data/cvs/mmcms/src/lib/net/polonium/xmlapi/response/AbstractBaseRespons e.java,v <-- AbstractBaseResponse.java new revision: 1.8; previous revision: 1.7 done Processing log script arguments... Mailing the commit message to [EMAIL PROTECTED] (from [EMAIL PROTECTED]) No mail for rafal In CVSROOT/commitlogs are the right files. Why I didn't get any email? Regards Rafal -- next part -- An HTML attachment was scrubbed... URL: http://lists.gnu.org/pipermail/info-cvs/attachments/20050323/52f478ce/at tachment.html -- Message: 2 Date: Wed, 23 Mar 2005 10:09:41 -0500 From: "Jim.Hyslop" <[EMAIL PROTECTED]> Subject: RE: third-party sources sharing same directory To: "'Vitor'" <[EMAIL PROTECTED]>, Larry Jones <[EMAIL PROTECTED]> Cc: info-cvs@gnu.org Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain Vitor wrote: > Here is more information : i do use the following structure to keep my > projects: > > /bin > /doc > /src > /obj > > But i do use some use some external libs that i normally place at : > > /src/libname > > I understood that cvs would require an exclusive module to > store external > libraries, so i would need to change my structure to : > > /bin > /doc > /src > /obj > /libname > > .. wich i would lile to avoid. So library 2 would go into src/lib2name/ right? If that's the case, then there should be no problems. -- Jim Hyslop Senior Software Designer Leitch Technology International Inc. ( http://www.leitch.com ) Columnist, C/C++ Users Journal ( http://www.cuj.com/experts ) -- Message: 3 Date: Wed, 23 Mar 2005 10:43:06 -0500 From: <[EMAIL PROTECTED]> Subject: RE: verifymsg script To: Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset="us-ascii" >-Original Message- >From: Jim.Hyslop [mailto:[EMAIL PROTECTED] >Sent: Wednesday, March 23, 2005 10:05 AM >To: Fouts Christopher (IFNA MP DC); info-cvs@gnu.org >Subject: RE: verifymsg script > > >[EMAIL PROTECTED] wrote: >> I finally tried this, and the script just echoes >> out the lines in my rcstemplate file that do not >> begin with "CVS". So how can I modify my rcstemplate >> file to contain the branch tag? Adding the $Name$ >> keyword did NOT do it of course. >Well, it's a bit ugly, but here's a possibility: > >verifymsg runs in the local directory, or (I think - I haven't >checked this >part) in a copy of the workspace if you're doing >client/serve
RE: Info-cvs Digest, Vol 28, Issue 35
Hi When I tried to execute the following command cvs log -Nb -r -d >2005-03-22 CentrexMateWeb I am getting the following error.. cvs [log aborted]: Can't parse date/time: CentrexMateWeb What may be issue behind this, Can any one help me with that.. Thanks SARAVANAN SUBRMANIAN SCM Centrex Mate -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Wednesday, March 23, 2005 10:46 AM To: info-cvs@gnu.org Subject: Info-cvs Digest, Vol 28, Issue 35 Send Info-cvs mailing list submissions to info-cvs@gnu.org To subscribe or unsubscribe via the World Wide Web, visit http://lists.gnu.org/mailman/listinfo/info-cvs or, via email, send a message with subject or body 'help' to [EMAIL PROTECTED] You can reach the person managing the list at [EMAIL PROTECTED] When replying, please edit your Subject line so it is more specific than "Re: Contents of Info-cvs digest..." Today's Topics: 1. Get no mail from log_accum.pl (Rafal Kedziorski) 2. RE: third-party sources sharing same directory (Jim.Hyslop) 3. RE: verifymsg script ([EMAIL PROTECTED]) -- Message: 1 Date: Wed, 23 Mar 2005 16:16:15 +0100 From: Rafal Kedziorski <[EMAIL PROTECTED]> Subject: Get no mail from log_accum.pl To: info-cvs@gnu.org Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset="us-ascii" hi, I want use log_accum.pl for get email with changes in our sources. I've done this: - add line in loginfo: ALL $CVSROOT/CVSROOT/log_accum.pl -u $USER %s - add line in checkoutlist But after commit I didn't get any email. Only the message: Checking in lib/net/polonium/xmlapi/request/synchronize/SynchronizeMediaRequest_1_0. java; /data/cvs/mmcms/src/lib/net/polonium/xmlapi/request/synchronize/Synchron izeMediaRequest_1_0.java,v <-- SynchronizeMediaRequest_1_0.java new revision: 1.26; previous revision: 1.25 done Processing log script arguments... Mailing the commit message to [EMAIL PROTECTED] (from [EMAIL PROTECTED]) No mail for rafal Checking in lib/net/polonium/xmlapi/response/AbstractBaseResponse.java; /data/cvs/mmcms/src/lib/net/polonium/xmlapi/response/AbstractBaseRespons e.java,v <-- AbstractBaseResponse.java new revision: 1.8; previous revision: 1.7 done Processing log script arguments... Mailing the commit message to [EMAIL PROTECTED] (from [EMAIL PROTECTED]) No mail for rafal In CVSROOT/commitlogs are the right files. Why I didn't get any email? Regards Rafal -- next part -- An HTML attachment was scrubbed... URL: http://lists.gnu.org/pipermail/info-cvs/attachments/20050323/52f478ce/at tachment.html -- Message: 2 Date: Wed, 23 Mar 2005 10:09:41 -0500 From: "Jim.Hyslop" <[EMAIL PROTECTED]> Subject: RE: third-party sources sharing same directory To: "'Vitor'" <[EMAIL PROTECTED]>, Larry Jones <[EMAIL PROTECTED]> Cc: info-cvs@gnu.org Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain Vitor wrote: > Here is more information : i do use the following structure to keep my > projects: > > /bin > /doc > /src > /obj > > But i do use some use some external libs that i normally place at : > > /src/libname > > I understood that cvs would require an exclusive module to > store external > libraries, so i would need to change my structure to : > > /bin > /doc > /src > /obj > /libname > > .. wich i would lile to avoid. So library 2 would go into src/lib2name/ right? If that's the case, then there should be no problems. -- Jim Hyslop Senior Software Designer Leitch Technology International Inc. ( http://www.leitch.com ) Columnist, C/C++ Users Journal ( http://www.cuj.com/experts ) -- Message: 3 Date: Wed, 23 Mar 2005 10:43:06 -0500 From: <[EMAIL PROTECTED]> Subject: RE: verifymsg script To: Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset="us-ascii" >-Original Message- >From: Jim.Hyslop [mailto:[EMAIL PROTECTED] >Sent: Wednesday, March 23, 2005 10:05 AM >To: Fouts Christopher (IFNA MP DC); info-cvs@gnu.org >Subject: RE: verifymsg script > > >[EMAIL PROTECTED] wrote: >> I finally tried this, and the script just echoes >> out the lines in my rcstemplate file that do not >> begin with "CVS". So how can I modify my rcstemplate >> file to contain the branch tag? Adding the $Name$ >> keyword did NOT do it of course. >Well, it's a bit ugly, but here's a possibility: > >verifymsg runs in the local directory, or (I think - I haven't >checked this >part) in a copy of the workspace if you're do
RE: verifymsg script
>-Original Message- >From: Jim.Hyslop [mailto:[EMAIL PROTECTED] >Sent: Wednesday, March 23, 2005 10:05 AM >To: Fouts Christopher (IFNA MP DC); info-cvs@gnu.org >Subject: RE: verifymsg script > > >[EMAIL PROTECTED] wrote: >> I finally tried this, and the script just echoes >> out the lines in my rcstemplate file that do not >> begin with "CVS". So how can I modify my rcstemplate >> file to contain the branch tag? Adding the $Name$ >> keyword did NOT do it of course. >Well, it's a bit ugly, but here's a possibility: > >verifymsg runs in the local directory, or (I think - I haven't >checked this >part) in a copy of the workspace if you're doing >client/server. This means the CVS/Entries file is available. >You could add something like this to your verifymsg scripts: > >cut -d/ -f2,6 CVS/Entries | grep -E '/T' | sed 's@/T@, CVS tag: @' >>$1 > >This pulls all the lines from CVS/Entries that have a tag >associated with the file, and appends them to the checkin >message in the form "[filename], CVS tag: [tag]" You can >rework this to append "(none)" if there is no tag. You'll also >have to add code to recurse into subdirectories. > >Make sure the RereadLogAfterVerify option in CVSROOT/config is >not disabled. > >One drawbacks is, you have no way of knowing which files the >message applies to, so you'll have to write all the tags to >the log message. For example, if your directory tree contains >100 files, and you check in only one file, the log message >will have 100 file names mentioned in it. > >-- >Jim Hyslop >Senior Software Designer >Leitch Technology International Inc. ( http://www.leitch.com ) >Columnist, C/C++ Users Journal ( http://www.cuj.com/experts ) Ik I'll try this approach, but not necessarily the code since my scripts are in PERL. -chris > ___ Info-cvs mailing list Info-cvs@gnu.org http://lists.gnu.org/mailman/listinfo/info-cvs
RE: third-party sources sharing same directory
Vitor wrote: > Here is more information : i do use the following structure to keep my > projects: > > /bin > /doc > /src > /obj > > But i do use some use some external libs that i normally place at : > > /src/libname > > I understood that cvs would require an exclusive module to > store external > libraries, so i would need to change my structure to : > > /bin > /doc > /src > /obj > /libname > > .. wich i would lile to avoid. So library 2 would go into src/lib2name/ right? If that's the case, then there should be no problems. -- Jim Hyslop Senior Software Designer Leitch Technology International Inc. ( http://www.leitch.com ) Columnist, C/C++ Users Journal ( http://www.cuj.com/experts ) ___ Info-cvs mailing list Info-cvs@gnu.org http://lists.gnu.org/mailman/listinfo/info-cvs
Get no mail from log_accum.pl
hi, I want use log_accum.pl for get email with changes in our sources. I've done this: - add line in loginfo: ALL $CVSROOT/CVSROOT/log_accum.pl -u $USER %s - add line in checkoutlist But after commit I didn't get any email. Only the message: Checking in lib/net/polonium/xmlapi/request/synchronize/SynchronizeMediaRequest_1_0.java; /data/cvs/mmcms/src/lib/net/polonium/xmlapi/request/synchronize/SynchronizeMediaRequest_1_0.java,v <-- SynchronizeMediaRequest_1_0.java new revision: 1.26; previous revision: 1.25 done Processing log script arguments... Mailing the commit message to [EMAIL PROTECTED] (from [EMAIL PROTECTED]) No mail for rafal Checking in lib/net/polonium/xmlapi/response/AbstractBaseResponse.java; /data/cvs/mmcms/src/lib/net/polonium/xmlapi/response/AbstractBaseResponse.java,v <-- AbstractBaseResponse.java new revision: 1.8; previous revision: 1.7 done Processing log script arguments... Mailing the commit message to [EMAIL PROTECTED] (from [EMAIL PROTECTED]) No mail for rafal In CVSROOT/commitlogs are the right files. Why I didn't get any email? Regards Rafal ___ Info-cvs mailing list Info-cvs@gnu.org http://lists.gnu.org/mailman/listinfo/info-cvs
RE: verifymsg script
[EMAIL PROTECTED] wrote: > I finally tried this, and the script just echoes > out the lines in my rcstemplate file that do not > begin with "CVS". So how can I modify my rcstemplate > file to contain the branch tag? Adding the $Name$ > keyword did NOT do it of course. Well, it's a bit ugly, but here's a possibility: verifymsg runs in the local directory, or (I think - I haven't checked this part) in a copy of the workspace if you're doing client/server. This means the CVS/Entries file is available. You could add something like this to your verifymsg scripts: cut -d/ -f2,6 CVS/Entries | grep -E '/T' | sed 's@/T@, CVS tag: @' >>$1 This pulls all the lines from CVS/Entries that have a tag associated with the file, and appends them to the checkin message in the form "[filename], CVS tag: [tag]" You can rework this to append "(none)" if there is no tag. You'll also have to add code to recurse into subdirectories. Make sure the RereadLogAfterVerify option in CVSROOT/config is not disabled. One drawbacks is, you have no way of knowing which files the message applies to, so you'll have to write all the tags to the log message. For example, if your directory tree contains 100 files, and you check in only one file, the log message will have 100 file names mentioned in it. -- Jim Hyslop Senior Software Designer Leitch Technology International Inc. ( http://www.leitch.com ) Columnist, C/C++ Users Journal ( http://www.cuj.com/experts ) ___ Info-cvs mailing list Info-cvs@gnu.org http://lists.gnu.org/mailman/listinfo/info-cvs
Re: Idea for reducing disk IO on tagging operations
* Jim Hyslop ([EMAIL PROTECTED]) wrote: > Dr. David Alan Gilbert wrote: > > 2) I could do with a better under standing of the directory locks; > > pointers? I've read the top of lock.c but it still doesn't tell me > > enough; for example there seem to be multiple lock files used - but > > then surely the creation of them isn't atomic? Or is there one lock > > file used for both reading and writing? > The locking process is explained in the manual, at > https://www.cvshome.org/docs/manual/cvs-1.11.19/cvs_2.html#SEC17 Thanks Jim for pointing me at that (I'd had a good search through the FAQ rather than the manual). (and to Paul - apologies if I misquoted in that last email) OK; this convinces me that I don't need to worry about cvs reading my file while it is being modified. Together with the restriction of me only performing my trick if the write is entirely within a block then I feel reasonably safe. I'm going to have a crack at making this optimisation and will forward a copy here for discussion when I've done it. Dave -Open up your eyes, open up your mind, open up your code --- / Dr. David Alan Gilbert| Running GNU/Linux on Alpha,68K| Happy \ \ gro.gilbert @ treblig.org | MIPS,x86,ARM,SPARC,PPC & HPPA | In Hex / \ _|_ http://www.treblig.org |___/ ___ Info-cvs mailing list Info-cvs@gnu.org http://lists.gnu.org/mailman/listinfo/info-cvs