Reputation: 28002
I have a subversion working copy checked out into the directory my-project/
I want to find out what user checked out that working copy. Is there a command I can run in that working copy directory to find out who it is checked out as?
EDIT: I want to use the command-line SVN client, not a GUI program specific to any OS.
Upvotes: 3
Views: 5204
Reputation: 392010
" working in a shared directory where multiple people might have checked out"
An ounce of prevention is worth a pound of cure.
Change the ownership and permissions on the shared area to stop this foolishness.
Get these people their own directories so they can check out in private areas and commit their changes.
The whole reason for using subversion is that everyone has a private -- easy to audit -- copy.
As soon as you work in a shared directory, your erases almost all value from using subversion.
If you don't use a shared directory, the problem goes away.
Upvotes: 7
Reputation: 127567
I would propose to use operating system file ownership for that. On Unix, do "ls -l". On Windows, view the security settings, and look for the owner tab in advanced settings.
The checkout metadata may or may not contain the user information, depending on the access protocol that was used. Do "svn info .", perhaps it is a svn+ssh checkout, and the user name is in the URL (likewise for certain cases of https). For a plain file: checkout, there is no way to tell.
Upvotes: 5
Reputation: 52689
You can only tell who acquired a lock, for other WC operations the user performing the checkout is not logged or stored.
svn status will tell you who last checked in the head revision, svn lock will tell you who has a file locked.
Upvotes: 1
Reputation: 40402
What operating system?
Can you check the files' owner? (ls -l on *nix, Properties > Security > Advanced > Owner on Windows)
Upvotes: 3