info-cvs
[Top][All Lists]
Advanced

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

Re: How to find out files edited by given user


From: Todd Denniston
Subject: Re: How to find out files edited by given user
Date: Thu, 20 Jan 2005 08:48:58 -0500

address@hidden wrote:
> 
> Hello,
> 
> recently we switched from SourceSafe to CVS and I think it was a good
> choice. We are using CVSNT as server and WinCVS as client. But from the
> SS we have certain habits (maybe wrong) which are hard to change. When
> I want to modify a file, first I send the "edit" command to make the
> file writable, then I make the changes, one or more commits and when I
> think I'm done, I pass the server the "unedit" command which makes it
> back read only. But sometimes change in one file implies changes in
> many others and I am unable to track every file, for which I am
> currently one of the editors, to release it when it's ready.
> In SS there was a feature called "Status search" which displayed all
> files being currently edited ("checked out" in SS terms) by me. Is
> there some similar command in CVS - or probably a script - which could
> do it? Our project is quite large and it takes me a lot of time to walk
> through every directory and seek for these files.
> Thank you,
> 
> John Walker jr.
If the way you are currently using watches, or the "reserved checkout",
capability of CVSNT marks the files read only until you issue `cvs edit
file`, then you should be able to go into your sandbox directory structure
and do a search for all files with read write enabled.  On unix this would
be fairly easy, I do not know of a tool to do it under MS.

on unix (bash shell) I would do something like
for i in `find . -type f`
do
  if [ -w $i ]
  then
    #file is write enabled
    echo "I am editing $i"
  fi
done

perhaps a bit of perl could be created to do it for you. 
http://www.xav.com/perl/lib/Pod/perlfunc.html#item_%2DX
http://www.xav.com/perl/lib/Pod/perlfunc.html#item_stat
-- 
Todd Denniston
Crane Division, Naval Surface Warfare Center (NSWC Crane) 
Harnessing the Power of Technology for the Warfighter




reply via email to

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