|
View:
New views
17 Messages
—
Rating Filter:
Alert me
|
|
|
CVS list files in repository which are currently in checked out statusHi,
Is there a command or a way or a tools/script to list the files which have been checked out from the repository , i.e. list files which are currently checked out by various users. Doing this is useful before doing a build Regards, Rupa |
|
|
RE: CVS list files in repository which are currently in checked out statusRupa,
You can scan the history file to see what files have ever been checked out, but that won't tell you whether the users still have those files that were checked out. This is because there is no opposite, or end, of a checkout command. It's similar to looking at an .html web page which was looked at by a web browser. You might have an access log on the web server that tells when the user accessed that page, but you can't tell if they still have it open. A CVS checkout is a bit like a download in that regard. - Mark -----Original Message----- From: info-cvs-bounces+mark.risman=mlb.com@... [mailto:info-cvs-bounces+mark.risman=mlb.com@...] On Behalf Of RupaL Sent: Monday, August 17, 2009 2:12 AM To: Info-cvs@... Subject: CVS list files in repository which are currently in checked out status Hi, Is there a command or a way or a tools/script to list the files which have been checked out from the repository , i.e. list files which are currently checked out by various users. Doing this is useful before doing a build Regards, Rupa -- View this message in context: http://www.nabble.com/CVS-list-files-in-repository-which-are-currently-i n-checked-out-status-tp25001494p25001494.html Sent from the Gnu - Cvs - Info mailing list archive at Nabble.com. ********************************************************** MLB.com: Where Baseball is Always On |
|
|
Re: CVS list files in repository which are currently in checked out statusRisman, Mark wrote, On 08/18/2009 11:05 AM:
> Rupa, > > You can scan the history file to see what files have ever been checked > out, but that won't tell you whether the users still have those files > that were checked out. This is because there is no opposite, or end, of > a checkout command. > Not _quite_ true. Although you don't have to, and I most times don't, there is the cvs command: `cvs release oldtree` (or if you like getting rid of the tree if there are no _CVS_ _detectable_ differences between sandbox and tree...) `cvs release -d oldtree` which a user might use instead of `rm -r oldtree`. the manual indicates that: " This command is meant to safely cancel the effect of ‘cvs checkout’. ... This command checks that no uncommitted changes are present; that you are executing it from immediately above a CVS working directory; and that the repository recorded for your files is the same as the repository defined in the module database. If all these conditions are true, ‘cvs release’ leaves a record of its execution (attesting to your intentionally abandoning your checkout) in the CVS history log. " just don't confuse it with cvs remove which has a QUITE different effect. (part of the reason I don't use release often.) > It's similar to looking at an .html web page which was looked at by a > web browser. You might have an access log on the web server that tells > when the user accessed that page, but you can't tell if they still have > it open. A CVS checkout is a bit like a download in that regard. > I agree with this analogy in the normal use case, however it does not have to be. > - Mark > > -----Original Message----- > From: info-cvs-bounces+mark.risman=mlb.com@... > [mailto:info-cvs-bounces+mark.risman=mlb.com@...] On Behalf Of > RupaL > Sent: Monday, August 17, 2009 2:12 AM > To: Info-cvs@... > Subject: CVS list files in repository which are currently in checked out > status > > > Hi, > Is there a command or a way or a tools/script to list the files which > have > been checked out from the repository , i.e. list files which are > currently > checked out by various users. Doing this is useful before doing a build > > Regards, > Rupa -- Todd Denniston Crane Division, Naval Surface Warfare Center (NSWC Crane) Harnessing the Power of Technology for the Warfighter |
|
|
RE: CVS list files in repository which are currently in checked out statusHi,
Thank you. The command indicated - `cvs release -d oldtree` needs to be fired from the working copy? Is there any command which can be executed from the CVS Server itself to check which are the files which are currently checked out by users? Regards, Rupa -----Original Message----- From: Todd Denniston [mailto:Todd.Denniston@...] Sent: Wednesday, August 19, 2009 4:41 AM To: Risman, Mark Cc: Rupa Bholanath Lahiri; Info-cvs@... Subject: Re: CVS list files in repository which are currently in checked out status Risman, Mark wrote, On 08/18/2009 11:05 AM: > Rupa, > > You can scan the history file to see what files have ever been checked > out, but that won't tell you whether the users still have those files > that were checked out. This is because there is no opposite, or end, of > a checkout command. > Not _quite_ true. Although you don't have to, and I most times don't, there is the cvs command: `cvs release oldtree` (or if you like getting rid of the tree if there are no _CVS_ _detectable_ differences between sandbox and tree...) `cvs release -d oldtree` which a user might use instead of `rm -r oldtree`. the manual indicates that: " This command is meant to safely cancel the effect of 'cvs checkout'. ... This command checks that no uncommitted changes are present; that you are executing it from immediately above a CVS working directory; and that the repository recorded for your files is the same as the repository defined in the module database. If all these conditions are true, 'cvs release' leaves a record of its execution (attesting to your intentionally abandoning your checkout) in the CVS history log. " just don't confuse it with cvs remove which has a QUITE different effect. (part of the reason I don't use release often.) > It's similar to looking at an .html web page which was looked at by a > web browser. You might have an access log on the web server that tells > when the user accessed that page, but you can't tell if they still have > it open. A CVS checkout is a bit like a download in that regard. > I agree with this analogy in the normal use case, however it does not have to be. > - Mark > > -----Original Message----- > From: info-cvs-bounces+mark.risman=mlb.com@... > [mailto:info-cvs-bounces+mark.risman=mlb.com@...] On Behalf Of > RupaL > Sent: Monday, August 17, 2009 2:12 AM > To: Info-cvs@... > Subject: CVS list files in repository which are currently in checked out > status > > > Hi, > Is there a command or a way or a tools/script to list the files which > have > been checked out from the repository , i.e. list files which are > currently > checked out by various users. Doing this is useful before doing a build > > Regards, > Rupa -- Todd Denniston Crane Division, Naval Surface Warfare Center (NSWC Crane) Harnessing the Power of Technology for the Warfighter |
|
|
Re: CVS list files in repository which are currently in checked out statusRupa Bholanath Lahiri <RupaB_Lahiri@...> writes:
> The command indicated - `cvs release -d oldtree` needs to be fired > from the working copy? Yes. > Is there any command which can be executed from the CVS Server itself > to check which are the files which are currently checked out by users? No. -- Mark |
|
|
RE: CVS list files in repository which are currently in checked out statusHi,
Please correct me if I am wrong, does this command list out the files which are locked (file locking or reserved checkouts) to allow only one person to edit the file at a time. Regards, Rupa -----Original Message----- From: mdb@... [mailto:mdb@...] On Behalf Of Mark D. Baushke Sent: Wednesday, August 26, 2009 9:10 PM To: Rupa Bholanath Lahiri Cc: Todd Denniston; Risman, Mark; Info-cvs@... Subject: Re: CVS list files in repository which are currently in checked out status Rupa Bholanath Lahiri <RupaB_Lahiri@...> writes: > The command indicated - `cvs release -d oldtree` needs to be fired > from the working copy? Yes. > Is there any command which can be executed from the CVS Server itself > to check which are the files which are currently checked out by users? No. -- Mark |
|
|
|
|
|
Re: CVS list files in repository which are currently in checked out statusHi Rupa,
Rupa Bholanath Lahiri <RupaB_Lahiri@...> writes: > Please correct me if I am wrong, does this command list out the files > which are locked (file locking or reserved checkouts) to allow only > one person to edit the file at a time. A 'cvs release' command will automagically unlock files on which you have performed a 'cvs edit filename' operation. It will not print out such files unless they have been modified in your working copy. A 'cvs release' command will print out a list of modified files in your along with a number: $ cvs release -d mod M foo.txt You have [1] altered files in this repository. Are you sure you want to release (and delete) directory `mod': If you say 'no', then you will get a message like ** `release' aborted by user choice. and the module will not be released. If you say 'yes', then the module will be released. The -d option will remove the local copy of the files for you in addition to possibly updating the history file and sending any notifications of edits you have released to any watchers of the files you have edited. -- Mark |
|
|
RE: CVS list files in repository which are currently in checked out statusHi,
Thank you all for your patience. Now I would like to specify here after digging further and further that I need to list out the files which have being reserved check out / locked by any user. Regards, Rupa -----Original Message----- From: mdb@... [mailto:mdb@...] On Behalf Of Mark D. Baushke Sent: Thursday, August 27, 2009 8:13 PM To: Rupa Bholanath Lahiri Cc: Risman, Mark; Todd Denniston; Info-cvs@... Subject: Re: CVS list files in repository which are currently in checked out status Hi Rupa, Rupa Bholanath Lahiri <RupaB_Lahiri@...> writes: > Please correct me if I am wrong, does this command list out the files > which are locked (file locking or reserved checkouts) to allow only > one person to edit the file at a time. A 'cvs release' command will automagically unlock files on which you have performed a 'cvs edit filename' operation. It will not print out such files unless they have been modified in your working copy. A 'cvs release' command will print out a list of modified files in your along with a number: $ cvs release -d mod M foo.txt You have [1] altered files in this repository. Are you sure you want to release (and delete) directory `mod': If you say 'no', then you will get a message like ** `release' aborted by user choice. and the module will not be released. If you say 'yes', then the module will be released. The -d option will remove the local copy of the files for you in addition to possibly updating the history file and sending any notifications of edits you have released to any watchers of the files you have edited. -- Mark |
|
|
RE: CVS list files in repository which are currently in checked out statusHi,
Thank you very much. I am much clearer now. I thought any user can lock files as we do in Subversion (I am familiar with Subversion but I had kind of a query for CVS from a team which needed me to be clear on this) Regards, Rupa -----Original Message----- From: Arthur Barrett [mailto:arthur.barrett@...] Sent: Thursday, August 27, 2009 5:22 PM To: Rupa Bholanath Lahiri; Mark D. Baushke Cc: Risman, Mark; Todd Denniston; Info-cvs@... Subject: RE: CVS list files in repository which are currently in checked out status Rupa, > Please correct me if I am wrong, does this command list out > the files which are locked (file locking or reserved > checkouts) to allow only one person to edit the file at a time. CVS does not support workflows with a requirement for reserved edits. If you have a real business reason that requires a SCCM process that in turn requires reserved edits then try a tool that does support it, like CVSNT (Free/GPL just like CVS) or ClearCase. Note: CVS does have a 'lock' command - but it is administrative, not part of the non-privileged user workflow. Regards, Arthur Barrett |
|
|
|
|
|
|
|
|
|
|
|
RE: CVS list files in repository which are currently in checked out statusHi,
Thank you very much. I have communicated this to my team now. What I will need to do now is to get all modified files in all working copies. Is there a command in CVS to get all working copies? Regards, Rupa -----Original Message----- From: Arthur Barrett [mailto:arthur.barrett@...] Sent: Saturday, August 29, 2009 10:26 AM To: Rupa Bholanath Lahiri; Mark D. Baushke Cc: Risman, Mark; Todd Denniston; Info-cvs@... Subject: RE: CVS list files in repository which are currently in checked out status Hi Rupa, > I thought any user can lock files as we do in Subversion > (I am familiar with Subversion but I had kind of a query for > CVS from a team which needed me to be clear on this) Subversion does not provide support for a reserved versioning model, as explained in the svnbook for SVN 1.5: http://svnbook.red-bean.com/en/1.5/svn-book.html#svn.advanced.locking "users to break each other's locks over the network. To do this, Sally simply needs to pass the --force to the svn unlock command" If any user can unlock any file then the lock is purely advisory, or rather: not a lock at all but a watch (actually the Subversion programmers clearly used the CVSNT 'co-operative lock' mechanism as a template for implementing their lock, not the 'reserved' lock mechanism). Ie: subversion behaves just like CVS, which is understandable because their design goal was to rewrite CVS. ie: svn lock is equivalent (in business function) to cvs edit, it ADVISES other people that you are working on the file. CVS, SVN, Git etc do not support workflows with a requirement for reserved edits. If you have a real business reason that requires a SCCM process that in turn requires reserved edits then try a tool that does support it, like CVSNT (Free/GPL just like CVS) or ClearCase. Note: CVS does have a 'lock' command - but it is administrative, not part of the non-privileged user workflow. Regards, Arthur Barrett |
|
|
Re: CVS list files in repository which are currently in checked out statusRupa Bholanath Lahiri <RupaB_Lahiri@...> writes:
> Is there a command in CVS to get all working copies? No. -- Mark |
|
|
RE: CVS list files in repository which are currently in checked out statusHi,
On a Unix box, through any command can we identify which are all the folders being used as working copy? Regards, Rupa -----Original Message----- From: mdb@... [mailto:mdb@...] On Behalf Of Mark D. Baushke Sent: Monday, August 31, 2009 11:37 AM To: Rupa Bholanath Lahiri Cc: Arthur Barrett; Mark Risman; Todd Denniston; Info-cvs@... Subject: Re: CVS list files in repository which are currently in checked out status Rupa Bholanath Lahiri <RupaB_Lahiri@...> writes: > Is there a command in CVS to get all working copies? No. -- Mark |
|
|
|
| Free embeddable forum powered by Nabble | Forum Help |