Re: RFC - new switches for 'cvs status'
At 19:30 -0400 4/13/02, Matthew Persico wrote: I have written a perl script that wraps cvs status in order to add two new switches: -i for interesting - skip all the Up-to-date entries, just show me everything else. -s for short - skip the equals signs, the versions, etc. Just show me directory names and file lines such as: examining bar/yo/mama File: foo.pm Status: Locally Added File: barf.pmStatus: Up-to-date Does this sound like something that could/should be patched into the source? A show of hands, please, before I attempt to hack up a patch. Sounds great! The command cvs status -is sounds like a perfect replacement for cvs -nq update because a typo that misses one of the switches (-n) won't do any harm. Fred -- Fred Brehm, Sarnoff Corporation, [EMAIL PROTECTED] http://www.sarnoff.com/digital_video_informatics/vision_technology/index.asp ___ Info-cvs mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/info-cvs
Re: RFC - new switches for 'cvs status'
I would vote for -i! I would like to have also as parameter for update. BYe oliver Matthew Persico [EMAIL PROTECTED] schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I have written a perl script that wraps cvs status in order to add two new switches: -i for interesting - skip all the Up-to-date entries, just show me everything else. -s for short - skip the equals signs, the versions, etc. Just show me directory names and file lines such as: examining bar/yo/mama File: foo.pm Status: Locally Added File: barf.pmStatus: Up-to-date Does this sound like something that could/should be patched into the source? A show of hands, please, before I attempt to hack up a patch. -- If you were supposed to understand it, we wouldn't call it 'code'. ___ Info-cvs mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/info-cvs ___ Info-cvs mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/info-cvs
Re: No /etc/inetd.conf; pserver setup?
Bud Curtis writes: Can someone point me to the documentation on how to start up the CVS PSERVER using the xinetd configuration file or what file to create in the /etc/xinetd.d folder. I am lost but willing to read until I find the way. Here's what the current development version of the manual says: If your system uses xinetd instead of inetd, the procedure is slightly different. Create a file called '/etc/xinetd.d/cvspserver' containing the following: service cvspserver { port= 2401 socket_type = stream protocol= tcp wait= no user= root passenv = PATH server = /usr/local/bin/cvs server_args = -f --allow-root=/usr/cvsroot pserver } (If cvspserver is defined in '/etc/services', you can omit the port line.) -Larry Jones I don't think math is a science, I think it's a religion. -- Calvin ___ Info-cvs mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/info-cvs
viewing the history
I've been using cvs history -e to view the all the activities made to my repository. However, it seems it only shows transactions made with the current user ID (mine) and not those made by other people. For example, when I do a 'cvs history -e', I get this: [dislam@caiprs CVSROOT]% cvs history -e O 2002-04-12 15:18 + dislam CAIPRS =CAIPRS= remote/* T 2002-04-12 15:18 + dislam CAIPRS [CAIPRSMain:A] T 2002-04-12 15:19 + dislam CAIPRS [CAIPRS7670:CAIPRSMain] T 2002-04-12 15:20 + dislam CAIPRS [CAIPRS7770:CAIPRSMain] O 2002-04-15 13:25 + dislam [CAIPRS7670] CAIPRS =branch= remote/* But when I view the CVSROOT/history file, I see activities by another user, melgemai: [dislam@caiprs CVSROOT]% more history O3cb6fab5|dislam|remote/*0|CAIPRS||CAIPRS T3cb6fadb|dislam|remote|A|CAIPRSMain|CAIPRS T3cb6fb1c|dislam|remote|CAIPRSMain|CAIPRS7670|CAIPRS T3cb6fb42|dislam|remote|CAIPRSMain|CAIPRS7770|CAIPRS O3cbad4e5|dislam|remote/branch|CAIPRS|CAIPRS7670|branch O3cbadfc9|melgemai|remote/*0|CAIPRS|CAIPRS7670|CAIPRS O3cbadfc9|melgemai|remote/*0|CAIPRS|CAIPRS7670|CAIPRS O3cbadfc9|melgemai|remote/*0|CAIPRS|CAIPRS7670|CAIPRS O3cbadfc9|melgemai|remote/test|CAIPRS|CAIPRS7670|test O3cbae1e6|melgemai|remote/test|CAIPRS|CAIPRS7670|test O3cbae1fe|melgemai|remote/test|CAIPRS|CAIPRS7670|test O3cbae383|melgemai|remote/test|CAIPRS|CAIPRS7670|test Therefore, how should I run the 'cvs history' command so that it shows the entire history (i.e. for all users) in a readable format, similar to when I do a 'cvs history -e'? Danial. ___ Info-cvs mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/info-cvs
Re: viewing the history
On Mon, Apr 15, 2002 at 11:05:58AM -0400, Danial Islam wrote: I've been using cvs history -e to view the all the activities made to my repository. However, it seems it only shows transactions made with the current user ID (mine) and not those made by other people. For example, when I do a 'cvs history -e', I get this: [dislam@caiprs CVSROOT]% cvs history -e O 2002-04-12 15:18 + dislam CAIPRS =CAIPRS= remote/* T 2002-04-12 15:18 + dislam CAIPRS [CAIPRSMain:A] T 2002-04-12 15:19 + dislam CAIPRS [CAIPRS7670:CAIPRSMain] T 2002-04-12 15:20 + dislam CAIPRS [CAIPRS7770:CAIPRSMain] O 2002-04-15 13:25 + dislam [CAIPRS7670] CAIPRS =branch= remote/* But when I view the CVSROOT/history file, I see activities by another user, melgemai: [dislam@caiprs CVSROOT]% more history O3cb6fab5|dislam|remote/*0|CAIPRS||CAIPRS T3cb6fadb|dislam|remote|A|CAIPRSMain|CAIPRS T3cb6fb1c|dislam|remote|CAIPRSMain|CAIPRS7670|CAIPRS T3cb6fb42|dislam|remote|CAIPRSMain|CAIPRS7770|CAIPRS O3cbad4e5|dislam|remote/branch|CAIPRS|CAIPRS7670|branch O3cbadfc9|melgemai|remote/*0|CAIPRS|CAIPRS7670|CAIPRS O3cbadfc9|melgemai|remote/*0|CAIPRS|CAIPRS7670|CAIPRS O3cbadfc9|melgemai|remote/*0|CAIPRS|CAIPRS7670|CAIPRS O3cbadfc9|melgemai|remote/test|CAIPRS|CAIPRS7670|test O3cbae1e6|melgemai|remote/test|CAIPRS|CAIPRS7670|test O3cbae1fe|melgemai|remote/test|CAIPRS|CAIPRS7670|test O3cbae383|melgemai|remote/test|CAIPRS|CAIPRS7670|test Therefore, how should I run the 'cvs history' command so that it shows the entire history (i.e. for all users) in a readable format, similar to when I do a 'cvs history -e'? cvs history -ea -- Karl E. Jørgensen [EMAIL PROTECTED] www.karl.jorgensen.com Today's fortune: Experiments must be reproducible; they should all fail in the same way. ___ Info-cvs mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/info-cvs
RFC - new switches for 'cvs status'
why don't you post you perl scripts here, until the discussion on the patch is finalized... It looks like it is standalone program (since it is wrapping cvs status) which can be used by everyone. -arcin Message: 7 From: Matthew Persico [EMAIL PROTECTED] Subject: RFC - new switches for 'cvs status' Date: Sat, 13 Apr 2002 19:30:57 -0400 Organization: Acecape, Inc. To: [EMAIL PROTECTED] I have written a perl script that wraps cvs status in order to add two new switches: ___ Info-cvs mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/info-cvs
synchronizing local with repository
Hi, I'm trying to automate the following: Commit all modified files. Add all files present locally but missing from repository. Merge all files (if possible) that are edited locally and on repository. I'm trying to eliminate as much human error as possible due to developers forgetting to keep the repository consistent with their local environments. I'm assuming that this is possible with cvs. Is it possible to achieve this with existing cvs commands or will I have to add intermediary stages e.g. generate a list of all files requiring adding and then iterate over the list adding each one. Thanks Nathan ___ Info-cvs mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/info-cvs
Re: synchronizing local with repository
On Mon, Apr 15, 2002 at 05:14:53PM +0100, Nathan Coast wrote: Hi, I'm trying to automate the following: Commit all modified files. Add all files present locally but missing from repository. Merge all files (if possible) that are edited locally and on repository. I'm trying to eliminate as much human error as possible due to developers forgetting to keep the repository consistent with their local environments. I'm assuming that this is possible with cvs. Is it possible to achieve this with existing cvs commands or will I have to add intermediary stages e.g. generate a list of all files requiring adding and then iterate over the list adding each one. You should get a list of files requiring addition, or you'll get alot of annoying warnings. It's better to not generate errors than to generate ignorable errors :) You could take the output of 'cvs -n update', and for each line beginning with '? ' do a 'cvs add rest of line', then 'cvs commit -m $1' ( assuming you're getting input from the developers on commit messages ... ) This is one way that may work, I'm sure there are others ( maybe more direct than parsing the output of 'cvs -n update' ). HTH, Rob Helmer ___ Info-cvs mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/info-cvs
Re: synchronizing local with repository
I would recommend use the following command: cvs -n release dir The release command checks that no uncommitted changes are present. It indicates that a directory is no longer in use and safely cancels the effect of cvs checkout. Use the global "-n" option so that release will not actually do anything, but only report all uncommitted changes. -Anjali [EMAIL PROTECTED] wrote: Hi, I'm trying to automate the following: Commit all modified files. Add all files present locally but missing from repository. Merge all files (if possible) that are edited locally and on repository. I'm trying to eliminate as much human error as possible due to developers forgetting to keep the repository consistent with their local environments. I'm assuming that this is possible with cvs. Is it possible to achieve this with existing cvs commands or will I have to add intermediary stages e.g. generate a list of all files requiring adding and then iterate over the list adding each one. Thanks Nathan ___ Info-cvs mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/info-cvs
Re: synchronizing local with repository
Cheers, any chance I can have a look at your perl script for some pointers? was thinking of trying to implement it as ant tasks as most of the development is java based. I'll see how much success I have and then will probably give up and copy your work :) Sebastian Maus wrote: * Nathan Coast [EMAIL PROTECTED] wrote (20020415 18:23): I'm trying to automate the following: Commit all modified files. Add all files present locally but missing from repository. Merge all files (if possible) that are edited locally and on repository. Hi! I wrote something like that, in Perl. AutoCVS.pl runs cvs update and reads its output, adds new files and directories, retrieves new files and directories and furthermore manages conflicts. It can be run as a cron job or even from a web interface. It runs in a production environment and takes several hours in total each night (large repositories). It is 25k in size. If you want to write such a beast, Pascal Molli's CVS page will help a lot. Perl is an ideal choice for this job due to its pattern matching ability. Good luck, -S- ___ Info-cvs mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/info-cvs
CVS login from perl script
Hi everybody, I'm new to perl and CVS, and I'm trying to login from a perl script to a CVS server using $pid = open(CVS, |cvs login) or die Couldn't fork: $!\n; print CVS password; I found the previous lines in a post to info-cvs, but I'm not able to make them work Can anyone help me? thank you Stefano ___ Info-cvs mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/info-cvs
CVS integration with Windows Clients.
Sir, I have been assigned a project for implementing CVS in our network. The Linux Server I am using is RedHat distribution version 7.2. The machines in are network are mostly working on Windows 98, while some are on Windows 2000 and RedHat distribution 7.0. I have been assigned the task of integrating CVS with the Windows clients. I have in my search come across WinCVS. Is it possible to use a Linux Server with Windows client and implement CVS? I would be grateful if you would help me out in this matter. Thanking You, Gagneet Singh K 2, SomDutt Towers 6th Floor, Sector 18, NOIDA 201301 Phone : +91(120) 4516936 Extn. 231 Email : [EMAIL PROTECTED] ___ Info-cvs mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/info-cvs
update -C option says locally updated
Hello, I have been using CVS quite successfully for sometime now. I have been using wincvs as a front end. Last time when I used update with get clean copies option (-C) it moved most(do not know if all) files to .#filename_revision stating it is locally modified. I know I have not modified most of these files. Later when I tried to update, update failed on one file or other stating it is not possible to modify one of the .#filename_revision files. Why CVS does this?. Is this normal?. Where can I find detailed description of how -C option works?. Thanks a lot Mohan _ Chat with friends online, try MSN Messenger: http://messenger.msn.com ___ Info-cvs mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/info-cvs
How to remove a revision?
Hello. How can i remove a revision that is no more needed. For example, i have revision 1.15 of a file and i don't want see anymore this revision because it's absolutly unneccessary? So the last revision should be 1.14 and a later version should have 1.15 again. Wolfgang Wolfgang Leideck ONSYS GmbH Fon: +49 (0)621/60-44104 Fax: +49 (0)621/60-73744 E-Mail: [EMAIL PROTECTED] ___ Info-cvs mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/info-cvs
Re: RFC - new switches for 'cvs status'
On Sat, 13 Apr 2002 19:30:57 -0400 Matthew Persico [EMAIL PROTECTED] wrote: -i for interesting - skip all the Up-to-date entries, just show me everything else. -s for short - skip the equals signs, the versions, etc. Just show me directory names and file lines such as: examining bar/yo/mama File: foo.pm Status: Locally Added File: barf.pmStatus: Up-to-date Does this sound like something that could/should be patched into the source? A show of hands, please, before I attempt to hack up a patch. Sounds very interesting. I have been using a Perl script that I hacked together to wrap cvs status and reformat so that the output is similar to what you have above. I think this would be very useful (and non-intrusive) feature for CVS. - Rob ___ Info-cvs mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/info-cvs
Managing multiple changes and branches
My question is regarding the best way to use CVS to manage different changes to a project. Our project has recently reached a maintenance phase, so we have a few people working on bug fixes and small enhancements and we have another couple of people working on one major enhancement. So everybody needs access to the repository, however we don't want the major enhancement to affect the maintenance team's work. At the same time, it would be nice if the enhancement team could be up to date with the maintenance team's work. What we thought is we would create a branch for the enhancement, and let the maintenance go along like normal. The problem with that is that in a test repository, I could not get the branch to be able to get the changes from the trunk. The answer may be to use the branch for the maintenance work, but in order to not get enhancement code into regular production builds, we would have to maintain the single branch until the time when the enhancement is finished and they can be merged. The manual seems to warn against using this approach in favor of just creating new branches. Our only requirement is that the enhancement code not affect the maintenance code, yet the enhancement code needs to be up to date with the maintenance code. Did I make any sense at all? How have other teams approached this scenario? Any advice is greatly appreciated! Thank you. matt. ___ Info-cvs mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/info-cvs
Re: rlog: How to get log messages *after* one tag up to another tag
[EMAIL PROTECTED] (Larry Jones) wrote in message news:[EMAIL PROTECTED]... David Carson writes: I'm sure there is some complication involved, but it is apparently possible. The cvs rdiff -rrevA -rrevB syntax handles this problem correctly, going from revA to revB even if from trunk to branch. As long as point A is an ancestor of point B, then there is only one way to get to B from A. But rdiff doesn't care whether A is an ancestor of B or not, it compares *any* two revisions. The complication is determining whether A is an ancestor of B, B is an ancestor of A, or neither is an ancestor of the other. Granted. I agree that the problem is not trivial. But, are you saying that it is not possible with CVS? I would reiterate my earlier assertion that a version control system must be able to perform this function to call itself fully functional. David ___ Info-cvs mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/info-cvs
Re: RFC - new switches for 'cvs status'
In message [EMAIL PROTECTED], Matthew Persico [EMAIL PROTECTED] writes: Does this sound like something that could/should be patched into the source? A show of hands, please, before I attempt to hack up a patch. I have a patch that adds -t for quiet (based on, well, I can't remember, but there was another command that used -t, oh, Terse, maybe.) Let me know if you want the patch. -- rob partington % [EMAIL PROTECTED] % http://lynx.browser.org/ ___ Info-cvs mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/info-cvs
Re: checking for ssh-agent in pcl-cvs
I use cvs over ssh under ssh-agent for some of my repositories, and I sometimes try to start cvs-examine without first starting emacs under ssh-agent, which just hangs forever. This is a patch that checks for ssh-agent first, if necessary. Thank you. In what kind of circumstance exactly does it hang ? Is it under W32 or X or a tty ? What does the *cvs-tmp* buffer contain at that point ? And only ssh hangs, right ? Not Emacs ? Stefan ___ Info-cvs mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/info-cvs
Re: CVS integration with Windows Clients.
Gagneet Singh [EMAIL PROTECTED]wrote: Is it possible to use a Linux Server with Windows client and implement CVS? I would be grateful if you would help me out in this matter. There is no problem with this at all - I have such a network here and I have clients doing it routinely. You simply need to set up the Red Hat 7.0 server with a /etc/xinetd.d/cvspserver file, so that it will work. WinCVS works with this setup beautifully. Best, --- Les [http://www.lesbell.com.au] ___ Info-cvs mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/info-cvs