You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by frame <xs...@yahoo.com> on 2014/12/04 17:42:11 UTC
TortoiseSVN on the shared drive to be used by multiple users
Hi:
In our office, each of us has his own PC. Cygwin is installed on each PC.
Every PC can access the shared S drive.
I have installed TortoiseSVN on my own PC. I am thinking doing a short-cut:
no need to install TortoiseSVN on everybody's PC. I just copied my
C:/Program Files/TortoiseSVN to the S drive. Now everybody in Cygwin on his
PC can have 'svn' command(svn is an alias now to avoid typing the long
path). For example, "svn --version" works on everybody's Cygwin.
The problem is authentication. On their PC Window Explorer, mouse right
click won't show those SVN options in the menu. On their Cygwin, I typed
this command:
svn ls username my_username --password my_secret_pswd URL
prompting me to enter password for the user 'my_username', I did and it
hangs there forever.
I checked his PC %AppData%/Roaming/Subversion/auth/svn.simple. The
directory has been created on his own drive. But it is always empty.
I even cleaned my own svn.simple directory, re-run TortoiseSVN gui again,
this time I entered his username and password so that a credential file was
created in my svn.simple/. Then I moved this file(containing his
credentials) to his own empty svn.simple/, then on his Cygwin I tried "svn
ls URL". It still didn't work.
Is that possible for me to set up such a thing so that everybody can use
the shared svn on the S drive, no need to install his own?
Thank you.
Re: TortoiseSVN on the shared drive to be used by multiple users
Posted by frame <xs...@yahoo.com>.
Actually I got it working. Sorry, yesterday I used incorrect command
options to set user and password. Below is part of email I sent to my
office mates on how to use it:
On anybody's Cygin command line, I just do:
*svn ls --username my_svn_account_username --password
my_svn_account_password URL_OF_SVN_REPO*
It creates the log in credential file in the directory
*%AppData%/Roaming/Subversion/auth/svn.simple/*
In PC DOS window, the command "*echo %APPDATA%*" (case insensitive) will
show which directory %APPDATA% refers to on your own PC. Each PC is
different.
The bottom line is that since then, you will never need to enter your
username and password anymore when using *svn* command, just like on
Linux--the credential has been saved.
Now, in Cygwin, you can use subversion just like you use it on Linux
terminal. (TortoiseSVN has GUI features which are available when right
mouse clicking in Window Explorer. You won't have this feature by using
centralized S drive subversion since you don't really have TortoiseSVN
installed on your PC. If you really need the GUI features, you need to ask
HOT-LINE to install it on your PC. Then you don't need the S drive version).
On Friday, December 5, 2014 3:09:16 PM UTC-5, Ryan Schmidt wrote:
>
>
> On Dec 4, 2014, at 10:42 AM, frame wrote:
>
> > In our office, each of us has his own PC. Cygwin is installed on each
> PC. Every PC can access the shared S drive.
> >
> > I have installed TortoiseSVN on my own PC. I am thinking doing a
> short-cut: no need to install TortoiseSVN on everybody's PC. I just copied
> my C:/Program Files/TortoiseSVN to the S drive. Now everybody in Cygwin on
> his PC can have 'svn' command(svn is an alias now to avoid typing the long
> path). For example, "svn --version" works on everybody's Cygwin.
> >
> > The problem is authentication. On their PC Window Explorer, mouse right
> click won't show those SVN options in the menu. On their Cygwin, I typed
> this command:
> >
> > svn ls username my_username --password my_secret_pswd URL
> >
> > prompting me to enter password for the user 'my_username', I did and it
> hangs there forever.
> >
> > I checked his PC %AppData%/Roaming/Subversion/auth/svn.simple. The
> directory has been created on his own drive. But it is always empty.
> >
> > I even cleaned my own svn.simple directory, re-run TortoiseSVN gui
> again, this time I entered his username and password so that a credential
> file was created in my svn.simple/. Then I moved this file(containing his
> credentials) to his own empty svn.simple/, then on his Cygwin I tried "svn
> ls URL". It still didn't work.
> >
> > Is that possible for me to set up such a thing so that everybody can use
> the shared svn on the S drive, no need to install his own?
>
> I don't know if TortoiseSVN can be used that way. You could ask on the
> TortoiseSVN mailing list.
>
>
>
Re: TortoiseSVN on the shared drive to be used by multiple users
Posted by Nico Kadel-Garcia <nk...@gmail.com>.
On Fri, Dec 5, 2014 at 3:07 PM, Ryan Schmidt
<su...@ryandesign.com> wrote:
>
> On Dec 4, 2014, at 10:42 AM, frame wrote:
>
>> In our office, each of us has his own PC. Cygwin is installed on each PC. Every PC can access the shared S drive.
>>
>> I have installed TortoiseSVN on my own PC. I am thinking doing a short-cut: no need to install TortoiseSVN on everybody's PC. I just copied my C:/Program Files/TortoiseSVN to the S drive. Now everybody in Cygwin on his PC can have 'svn' command(svn is an alias now to avoid typing the long path). For example, "svn --version" works on everybody's Cygwin.
>>
>> The problem is authentication. On their PC Window Explorer, mouse right click won't show those SVN options in the menu. On their Cygwin, I typed this command:
>>
>> svn ls username my_username --password my_secret_pswd URL
>>
>> prompting me to enter password for the user 'my_username', I did and it hangs there forever.
>>
>> I checked his PC %AppData%/Roaming/Subversion/auth/svn.simple. The directory has been created on his own drive. But it is always empty.
>>
>> I even cleaned my own svn.simple directory, re-run TortoiseSVN gui again, this time I entered his username and password so that a credential file was created in my svn.simple/. Then I moved this file(containing his credentials) to his own empty svn.simple/, then on his Cygwin I tried "svn ls URL". It still didn't work.
>>
>> Is that possible for me to set up such a thing so that everybody can use the shared svn on the S drive, no need to install his own?
>
> I don't know if TortoiseSVN can be used that way. You could ask on the TortoiseSVN mailing list.
frame is mixing two distinct issues. TortoiseSVN manipulates the
Windows systems configurations when installed and requires a reboot to
activate the ability to open a folder and get the varioius TortoiseSVN
browsing and display options. So installing a shared copy will *NOT*
provide all the TortoiseSVN options. TortoiseSVN also provides
credential management, to store SVN credentials encrypted locally.
Again, that's in the local sytem's configuration, and built into
TortoiseSVN.
So, while sharing a copy of the binary kind-of/sort-of/almost works,
it's as likely to be completely broken as sharing the same Subversion
binary from an NFS drive among multiple versions of Linux. Just Never
Do This(tm).
The separate issue is the shared CIFS drive. This can work great,
until it doesn't. There are *inevitable* delays between when one
person, modifying files, has published a write operation and someone
else with another access to the same shared drive cannot yet see the
change., Unless the authors of Subversion, and the structure of CIFS
shared drives have been very, very careful to handle atomic local
database operations, frame is in real danger of submitting
simultaneous writes and causing... well, chaos.
This can certainly work with light loads and only a few users, or
possibly with personnel who don't modify the same parts of the working
copy at the same time.
Re: TortoiseSVN on the shared drive to be used by multiple users
Posted by Ryan Schmidt <su...@ryandesign.com>.
On Dec 4, 2014, at 10:42 AM, frame wrote:
> In our office, each of us has his own PC. Cygwin is installed on each PC. Every PC can access the shared S drive.
>
> I have installed TortoiseSVN on my own PC. I am thinking doing a short-cut: no need to install TortoiseSVN on everybody's PC. I just copied my C:/Program Files/TortoiseSVN to the S drive. Now everybody in Cygwin on his PC can have 'svn' command(svn is an alias now to avoid typing the long path). For example, "svn --version" works on everybody's Cygwin.
>
> The problem is authentication. On their PC Window Explorer, mouse right click won't show those SVN options in the menu. On their Cygwin, I typed this command:
>
> svn ls username my_username --password my_secret_pswd URL
>
> prompting me to enter password for the user 'my_username', I did and it hangs there forever.
>
> I checked his PC %AppData%/Roaming/Subversion/auth/svn.simple. The directory has been created on his own drive. But it is always empty.
>
> I even cleaned my own svn.simple directory, re-run TortoiseSVN gui again, this time I entered his username and password so that a credential file was created in my svn.simple/. Then I moved this file(containing his credentials) to his own empty svn.simple/, then on his Cygwin I tried "svn ls URL". It still didn't work.
>
> Is that possible for me to set up such a thing so that everybody can use the shared svn on the S drive, no need to install his own?
I don't know if TortoiseSVN can be used that way. You could ask on the TortoiseSVN mailing list.