info-cvs
[Top][All Lists]
Advanced

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

Re: cvs editors funny


From: Colm Aengus Murphy
Subject: Re: cvs editors funny
Date: Tue, 29 Mar 2005 09:24:35 +0100
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040616

Hi Jim,

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 ?

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.

Regards

Colm A

Jim.Hyslop wrote:
Paul Sander wrote:


You don't have to store the actual locations in the repository. (Doing so is pointless anyway given that mount points can appear and disappear non-deterministically.) Just store an identifier there,

[etc]

Thank you for corroborating how difficult this would be to accomplish :-)

To summarize:
- you have to come up with a way of uniquely identifying each and every
unique checkout. This includes scenarios such as:
cvs co projname
cd projname
cvs edit filename
cd ..
rm -rf projname
cvs co projname

Two distinct checkouts, into the same location.

- You have to manage these unique IDs, and maintain the correlation between
the ID and the local directory
- You have to come up with an administrative interface to manage manually
removing edits to handle corner cases like the one above (or even the case
above, without the second 'cvs co' command)

I didn't say it couldn't be done, but I did hint that it would be a
complicated job. To implement this feature would take a lot of thought and
planning. A lot more than a simple patch to correct the "editors disappear
on a checkout" bug that Darren fixed.



reply via email to

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