On Oct 10, 2007, at 00:52, pinky goyal wrote:
> Les Mikesell wrote:
>
>> pinky goyal wrote:
>>
>> > can you please give an example.?
>> >
>> > actually what i want is to give the facility to the website
>> users to
>> > checkout the folder from the website (a website is there to
>> manage the
>> > repository) . i want that when a request comes for checkout of any
>> > folder, that folder can be checked out on that user's m/c
>>
>> If you just want one-way distribution, you might be able to use
>> ViewVC
>> or SVN::web to provide a web download, but if these users are
>> going to
>> commit changes back they really need a subversion client to work with
>> svnserve or http on the server side.
>
> yes i need only one way distribution.
Then offering the user a download on your web page will likely be the
better option. I started to compose a reply to your earlier message
about how to check out directly to the user's PC, but it would be
very complicated and not particularly secure so I think it's best to
forget that.
So on the web server you should check out the repository to a working
copy. Then have a periodic process (via cron?) which runs "svn
update" on that working copy and then tars it up. On your web site,
offer a download link for that tarfile. Of course the user will then
want to run "svn update" on the working copy to make sure it's up to
date. Or, you could update the server-side working copy and tarfile
after every commit via the post-commit hook. Then you wouldn't need
the periodic cron task, and the user wouldn't need to "svn update"
right after downloading.
Also, this will only work correctly if you do not have any path-based
authorization in place. Otherwise, the user might download something
they weren't supposed to be authorized to see!
Why, out of curiosity, can't the user just check out a working copy
themselves when they want one? Wouldn't that be simpler all 'round?
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Oct 10 08:47:32 2007