[Top][All Lists]

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

Re: cvs editors funny

From: Paul Sander
Subject: Re: cvs editors funny
Date: Tue, 29 Mar 2005 10:32:12 -0800

Be careful here. The location appears to the directory identified by the client at the time the edit was done. Due to network mounts, this path is not unique. So when editing, unediting, or committing a file, there's really no way to know if the workspace you're affecting is really the one recorded by a prior edit.

On Mar 29, 2005, at 6:22 AM, address@hidden wrote:

Colm Aengus Murphy wrote:
The current cvs edit command stores the users name and workspace
location in the fileattr file. I'm guessing that when you unedit or
checkin it it only matching the users name and not the workspace
location. How difficult would it be to check the users name and
workspace location and only remove the edit if it matches ?
Huh, whaddya know - it looks like CVS already captures that information. I
issued a 'watch on' and 'edit' on a .cvsignore file, and the fileattr

F.cvsignore     _watched=;_editors=jhyslop>Tue Mar 29 14:13:46 2005
GMT+01-2189+E:\cvs\cvs-test\jhyslop; _watchers=jhyslop>tedit+tunedit+tcommit

The datestamp and path are displayed when you issue 'cvs editors'.

It only stores one per user, though - I checked out the project into a
different directory, issued the 'cvs edit' command and got:

F.cvsignore     _watched=;_editors=jhyslop>Tue Mar 29 14:16:07 2005

So the infrastructure may be there already. It may not be as difficult as I

We do find that old edits hang around when uses forget to use
unedit and
just remove the workspace. This isn't a major pain as you can
just edit
the fileattr to remove the unused edits.
Ick - I hate having to manually edit the file (we have a lot of people who have left, but forgot to 'cvs watch remove' before they left). One of these days, when I have the time, I'm going to work on implementing rwatch and
redit commands, with options to specify the user.
Paul Sander       | "When a true genius appears in the world, you may
address@hidden | know him by this sign:  that all the dunces are in
| confederacy against him." -- Jonathan Swift, writer.

reply via email to

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