You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Anton Shepelev <an...@gmail.com> on 2019/08/19 20:34:18 UTC
Viewing the woking copy of a lock
Hello, all
How can I view the working-copy path with which a
lock is associated, given the information about the
lock from `svnadmin lslocks'?
--
() ascii ribbon campaign -- against html e-mail
/\ http://preview.tinyurl.com/qcy6mjc [archived]
Re: Viewing the woking copy of a lock
Posted by Anton Shepelev <an...@gmail.com>.
Lorenz to Anton Shepelev:
>>How can I view the working-copy path with which a
>>lock is associated, given the information about
>>the lock from `svnadmin lslocks'?
>
>you can't. The server knows nothing about the
>working copy and its location, only about the user.
>
>If you know the working copy, you could run "svn
>info" on all occurences of the file, to identify
>the working copy.
I think it one of the rare cases when dear old
SourceSafe was better, but of course we should reor-
gaise our process to avoid situations when this
functinality is desired.
--
Please, do not forward replies to the list to my e-mail.
Re: Viewing the woking copy of a lock
Posted by Anton Shepelev <an...@gmail.com>.
Daniel Shahaf:
> And for future reference, you can have your users lock
> files using something along the lines of `svn lock -m
> "$(hostname):$(pwd)' to be able to answer your question.
> You could even enforce this with a pre-lock hook.
Thank you, Daniel. Since the pre-lock hook does not receive
the actual working directory I can only theck the syntax of
such a comment, but I will bear the option in mind.
--
Please, do not forward replies to my e-mail.
Re: Viewing the woking copy of a lock
Posted by Daniel Shahaf <d....@daniel.shahaf.name>.
Lorenz wrote on Tue, 20 Aug 2019 09:20 +00:00:
> Anton Shepelev wrote:
> >How can I view the working-copy path with which a
> >lock is associated, given the information about the
> >lock from `svnadmin lslocks'?
>
> you can't.
> The server knows nothing about the working copy and its location,
> only about the user.
>
> If you know the working copy, you could run "svn info" on all
> occurences of the file, to identify the working copy.
And for future reference, you can have your users lock files using
something along the lines of «svn lock -m "$(hostname):$(pwd)"» to be
able to answer your question. You could even enforce this with a pre-lock
hook.
Re: Viewing the woking copy of a lock
Posted by Lorenz <lo...@yahoo.com>.
Anton Shepelev wrote:
>How can I view the working-copy path with which a
>lock is associated, given the information about the
>lock from `svnadmin lslocks'?
you can't.
The server knows nothing about the working copy and its location,
only about the user.
If you know the working copy, you could run "svn info" on all
occurences of the file, to identify the working copy.
--
Lorenz