Discussion:
How to remove cvs watches set by other users
Rez
2009-02-07 00:44:09 UTC
Permalink
Hi all

How do I remove cvs watches set by other users who are no longer with our company? Is there any way to do this?

Thanks

Rez
_________________________________________________________________
Windows Live™: Keep your life in sync.
http://windowslive.com/explore?ocid=TXT_TAGLM_WL_t1_allup_explore_022009
Rez P
2009-02-10 18:14:42 UTC
Permalink
Hi

Asking this again. I've searched the cvs pdf manual and Googled and don't see anything on how to remove watches set by other users.



From: ***@hotmail.comTo: info-***@nongnu.orgDate: Fri, 6 Feb 2009 16:44:09 -0800Subject: How to remove cvs watches set by other users

Hi all How do I remove cvs watches set by other users who are no longer with our company? Is there any way to do this? Thanks Rez



Windows Live™: Keep your life in sync. Check it out.
_________________________________________________________________
Windows Live™: Keep your life in sync.
http://windowslive.com/howitworks?ocid=TXT_TAGLM_WL_t1_allup_howitworks_022009
Todd Denniston
2009-02-10 18:46:05 UTC
Permalink
Post by Rez P
Hi
Asking this again. I've searched the cvs pdf manual and Googled and don't see anything on how to remove watches set by other users.
Hi all How do I remove cvs watches set by other users who are no longer with our company? Is there any way to do this? Thanks Rez
Sometimes the list's own search is more useful.
http://lists.gnu.org/archive/html/info-cvs/

http://lists.gnu.org/archive/cgi-bin/namazu.cgi?query=remove+and+watch&submit=Search%21&idxname=info-cvs&max=20&result=normal&sort=score
http://lists.gnu.org/archive/html/info-cvs/2006-05/msg00127.html
http://lists.gnu.org/archive/html/info-cvs/2001-11/msg00062.html
http://lists.gnu.org/archive/html/info-cvs/2006-05/msg00163.html
.
.
.
--
Todd Denniston
Crane Division, Naval Surface Warfare Center (NSWC Crane)
Harnessing the Power of Technology for the Warfighter
Rez P
2009-02-10 21:39:30 UTC
Permalink
Thanks for the link. Many of the posts or threads point to either upgrading to cvs 1.12 or resurrecting the departed user in order to remove watches. Could I simply execute "find . -name fileattr -print | xargs rm -f"?> Date: Tue, 10 Feb 2009 13:46:05 -0500> From: ***@ssa.crane.navy.mil> To: ***@hotmail.com> CC: info-***@nongnu.org> Subject: Re: How to remove cvs watches set by other users> > Rez P wrote, On 02/10/2009 01:14 PM:> > Hi> > > > Asking this again. I've searched the cvs pdf manual and Googled and don't see anything on how to remove watches set by other users.> > > > > > > > From: ***@hotmail.comTo: info-***@nongnu.orgDate: Fri, 6 Feb 2009 16:44:09 -0800Subject: How to remove cvs watches set by other users> > > > Hi all How do I remove cvs watches set by other users who are no longer with our company? Is there any way to do this? Thanks Rez> > > > > > Sometimes the list's own search is more useful.> http://lists.gnu.org/archive/html/info-cvs/> > http://lists.gnu.org/archive/cgi-bin/namazu.cgi?query=remove+and+watch&submit=Search%21&idxname=info-cvs&max=20&result=normal&sort=score> http://lists.gnu.org/archive/html/info-cvs/2006-05/msg00127.html> http://lists.gnu.org/archive/html/info-cvs/2001-11/msg00062.html> http://lists.gnu.org/archive/html/info-cvs/2006-05/msg00163.html> .> .> .> > -- > Todd Denniston> Crane Division, Naval Surface Warfare Center (NSWC Crane)> Harnessing the Power of Technology for the Warfighter
_________________________________________________________________
Windows Live™: Keep your life in sync.
http://windowslive.com/howitworks?ocid=TXT_TAGLM_WL_t1_allup_howitworks_022009
Todd Denniston
2009-02-10 22:43:51 UTC
Permalink
Post by Rez P
http://lists.gnu.org/archive/cgi-bin/namazu.cgi?query=remove+and+watch&submit=Search%21&idxname=info-cvs&max=20&result=normal&sort=score> http://lists.gnu.org/archive/html/info-cvs/2006-05/msg00127.html> http://lists.gnu.org/archive/html/info-cvs/2001-11/msg00062.html> http://lists.gnu.org/archive/html/info-cvs/2006-05/msg00163.html> .> .> .> > -- > Todd Denniston> Crane Division, Naval Surface Warfare Center (NSWC Crane)> Harnessing the Power of Technology for the Warfighter
The above appears on one line to me.

Rez, can you see if hotmail will let you turn off "quoted-printable" & HTML &
RTF, and thus let you send plain text?

http://www.catb.org/~esr/faqs/smart-questions.html#formats
http://www.expita.com/nomime.html#programs

******
http://www.expita.com/nomime.html#hotmail
******

I find your replies difficult to interpret to the point I usually only reply
to your original posts (which for some reason are readable).

If I decoded the hotmail garbage correctly, you asked would it be sane to:
"find . -name fileattr -print | xargs rm -f"

never with out first doing:
"find . -name fileattr -print | less"
or better:
find . -name fileattr -print > thingstoblowup
vi thingstoblowup #remove anything you don't want to blow away
cat thingstoblowup | xargs rm -f

however, you realize everyone else's watches will be trashed too, right?

it _might_ be better to see if you could make a SED/ED script to just remove
the offending user's watches.
--
Todd Denniston
Crane Division, Naval Surface Warfare Center (NSWC Crane)
Harnessing the Power of Technology for the Warfighter
Rez P
2009-02-10 23:55:18 UTC
Permalink
Todd

Sorry about that, it looks bad. I've looked and can't find anywhere in my settings, how to change my display, send, and reply options. I've written to Microsoft but I've got no replies. If anyone out there, knows how, please email me individually.


Thanks

Rez
_________________________________________________________________
Windows Live™: E-mail. Chat. Share. Get more ways to connect.
http://windowslive.com/howitworks?ocid=TXT_TAGLM_WL_t2_allup_howitworks_022009
Rez P
2009-02-11 01:51:57 UTC
Permalink
I was basically asking, is it ok to delete cvs/fileattr files manually to remove cvs watchers. The links you sent me, either mention upgrading to cvs 1.12 (we're running 1.11.22) or resurrecting the dead user ids to remove watchers. I created a test project and imported it into cvs repository, checked it out, set watches on it, and then logged into the server to the new project's ../cvs/ subfolder and manually deleted the fileattr file and didn't experience any weird anomalies. None of our current users have set watches and don't care. Is this a bad way of doing it?


Another question: Is cvs a reserved word? Currently, on the new server where I'm testing and migrating our existing repository, our Linux network admin has named the repository /cvs. I'm not sure if that's a good idea.
_________________________________________________________________
Windows Live™: E-mail. Chat. Share. Get more ways to connect.
http://windowslive.com/online/hotmail?ocid=TXT_TAGLM_WL_HM_AE_Faster_022009
Jim Hyslop
2009-02-11 05:20:26 UTC
Permalink
Post by Rez P
I was basically asking, is it ok to delete cvs/fileattr files manually
to remove cvs watchers. ... None of our
current users have set watches and don't care. Is this a bad way of
doing it?
fileattr also keeps track of 'editors' - i.e. users who have issued 'cvs
edit.' If none of your existing users use the 'edit' command or watches
(either 'watch add' or 'watch on'), then you should be OK.
Post by Rez P
Another question: Is cvs a reserved word? Currently, on the new server
where I'm testing and migrating our existing repository, our Linux
network admin has named the repository /cvs. I'm not sure if that's a
good idea.
That's fine. I use that for my repository as well. Just don't try to
import a directory named `CVS' or CVS will complain ;-)

- --
Jim Hyslop
Dreampossible: Better software. Simply. http://www.dreampossible.ca
Consulting * Mentoring * Training in
C/C++ * OOD * SW Development & Practices * Version Management
Todd Denniston
2009-02-11 18:29:14 UTC
Permalink
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Post by Rez P
Another question: Is cvs a reserved word? Currently, on the new server
where I'm testing and migrating our existing repository, our Linux
network admin has named the repository /cvs. I'm not sure if that's a
good idea.
That's fine. I use that for my repository as well. Just don't try to
import a directory named `CVS' or CVS will complain ;-)
Also it CAN add to the confusion that results when you are describing things
on mailing lists, like when you are talking about CVSROOT, i.e, are you
talking about $CVSROOT or $CVSROOT/CVSROOT. :)

I usually go with /projectname/Repository or /Repository.
--
Todd Denniston
Crane Division, Naval Surface Warfare Center (NSWC Crane)
Harnessing the Power of Technology for the Warfighter
Shane Turner
2009-02-11 15:01:49 UTC
Permalink
Post by Rez
Hi all
How do I remove cvs watches set by other users who are no longer with
our company? Is there any way to do this?
Thanks
Rez
Here's how I remove cvs watches from my repository (cvs 1.11.22). There
may of course be bugs. It requires filesystem access to the repository.
In general it looks for all of the fileattr files with watches or edits
for the OLDUSER, saves the list, and backs them all up. Then you feed
the list to xargs and and perl to re-write all of the fileattr files
without the entries for the OLDUSER. WARNING: It does not lock the
directories! This hasn't been an issue for me, but there could be
weirdness if someone runs a command that would edit the same fileattr
files you are modifying.

export CVSROOT=<PATH_TO_YOUR_CVSROOT>
export OLDUSER=/USERNAME/
find $CVSROOT -type f -name fileattr -print0 | xargs --null grep -lZ
"\<$OLDUSER\>>" | tee /tmp/fileattr_list.txt |
tar --null -T - -zcf /tmp/fileattr_backup.tar.gz
cat /tmp/fileattr_list.txt | xargs --null perl -wpi -e '
BEGIN {
use Getopt::Std;

our ($opt_u);

getopts("u:");

die "Username not set (-u)" unless $opt_u;

$username=$opt_u;
}

s/([,=])($username>[^,;]*?)(?=[,;]|$)/$1/go; # Clean up entries for the
username that are within or ending the line
s/,,/,/g; # Clean up entries with
double commas
s/(?==),//g; # Clean up entries that
start with a comma
s/,(?=;_\w*=)//g; # Clean up entries that end
with a comma
s/,$//; # Clean up commas at the
end of a line
' -- -u $OLDUSER

I hope the commands are of some use to you.


Shane Turner

Loading...