While checking out some files from our CVS repository the other day I noticed that someone else that no longer works here already had the file checked out. It seems that he didn’t undo his checkouts before he left so they are now left stuck in the repository. His user accounts and files have already been removed so there’s no way I could just log onto his machine and undo the checkouts.
Is there a way to remove these checkouts on the server?
Thanks
Judging by your mention of
fileattr.xmlin your comments it sounds like you’re using CVSNT. In that case, removing those files from the repository is indeed a feasible, but rather brute-force approach. If your VS-plugin does indeed use CVSNT’s reserved edit command to implement the exclusive checkouts then the following command should have removed the edit locks as well:(where
<username>is the name of the user currently holding the “lock”)This requires that your user account is regarded as an admin by the CVS server, though. There are various ways to do this, the simplest being listing your user name in the
CVSROOT/adminfile. If I remember correctly, CVSNT also supports repo admins via a special windows user group. You’d have to check the documentation for specifics.