Problems running svnserve as Windows service

2010-03-19 Thread Holger Naundorf
Hi,

I am trying to run svnserve as a windows service.
At different places (like 
http://subversion.apache.org/faq.html#svnserve-win-service) I found a very good 
description of what I have to do.
Unfortunately, when I follow the description, I have no problems registering 
the Windows service (both on Vista and XP) but on both systems, I cannot start 
the service.
The command I use for registering is:
sc create svn binpath= "D:\cygwin\bin\svnserve.exe --service -r 
D:\SubVersionReps\Default" displayname= "Subversion Server" depend= Tcpip 
start= auto

It seems to me that I have followed everything in the description.
When I try to start the service I get the following error (both on Vista and 
XP):
C:\>net start svn
The service is not responding to the control function.

More help is available by typing NET HELPMSG 2186.

I have the same problem when I try to start the service through the GUI.
It appears that nobody else has this problem, but I have no idea why this is 
not working and how I could find out, why it is not working.
Thanks in advance,
Holger Naundorf
___
WEB.DE DSL: Internet, Telefon und Entertainment für nur 19,99 EUR/mtl.!
http://produkte.web.de/go/02/


Re: Problems running svnserve as Windows service

2010-03-19 Thread Andy Levy
On Fri, Mar 19, 2010 at 06:47, Holger Naundorf  wrote:
> Hi,
>
> I am trying to run svnserve as a windows service.
> At different places (like 
> http://subversion.apache.org/faq.html#svnserve-win-service) I found a very 
> good description of what I have to do.
> Unfortunately, when I follow the description, I have no problems registering 
> the Windows service (both on Vista and XP) but on both systems, I cannot 
> start the service.
> The command I use for registering is:
> sc create svn binpath= "D:\cygwin\bin\svnserve.exe --service -r 
> D:\SubVersionReps\Default" displayname= "Subversion Server" depend= Tcpip 
> start= auto
>
> It seems to me that I have followed everything in the description.
> When I try to start the service I get the following error (both on Vista and 
> XP):
> C:\>net start svn
> The service is not responding to the control function.
>
> More help is available by typing NET HELPMSG 2186.
>
> I have the same problem when I try to start the service through the GUI.
> It appears that nobody else has this problem, but I have no idea why this is 
> not working and how I could find out, why it is not working.

What message if any do you have in Event Viewer?

Are you running a Cygwin version of svnserve? Why not the standard
Win32 client? There's no need to use Cygwin except maybe in some very
specific situations, and in fact some weirdness happens when you do
use it instead of native Win32.


Out of memory error while merging

2010-03-19 Thread RoboJ1M
Hi,

I'm having a problem with our new SVN system.
Initially I thought it was a problem with TortoiseSVN but after
discussing it on their mailing list and performing the same actions in
command line svn it seems the problem further up the pipe.

Anyway, I'm getting Out Of Memory for this command:

svn merge --non-interactive http://xxx/branches/Southwark_Permits "C:
\xxx\trunk"

System information:

Server:
Ubuntu Server 8.04
svn, version 1.5.1 (r32289)

Client:
Win XP SP3 32bit
4GB (3.25GB available) of RAM
svn, version 1.6.9 (r901367)
   compiled Jan 21 2010, 22:00:47

Previous thread at TSVN:
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=2461734

I've tested tortoise on two machines, a clean check out and merge
fails (test merge succeeds)
Command line test succeeds on my machine.

I know that's not a lot of information to go on, but if somebody can
show me how to get more info out of svn I can post it.

Many Thanks,

James.


Re: file /directory size on svnServer?

2010-03-19 Thread Campbell Allan

On Wednesday 17 Mar 2010, netvampire.tw wrote:
> Is there any command can show files / directories size on the server? I
> want to know if I have enough space before checkout Thanks

I don't believe there is a command, it's difficult to get an accurate answer 
as each operating system has different overheads. If you are on unix then you 
could try this one liner, just replace SVNURL with the repository url you'd 
like to guess the size of. 

svn ls -v -R  SVNURL | perl -e 'my $total = 0; while(<>) { if( /^(?:\s+\S+)
{2}\s+(\d+)/ ) { $total += $1; } } my $svntotal = $total * 3; print "Total 
file size: $total bytes, estimated checkout size $svntotal bytes\n";'

I'm estimating at least three times the size for the checkout (this is with a 
1.5 client) based on one repository I have available but I had originally 
guessed at twice the size plus a little for the administration directories 
and found it way off. The total bytes will be off as well though as this does 
not take into account filesystem overheads. In my test case the full checkout 
was around 884mb as measured by du -bs, deleting the .svn directories 
resulted in a size of 306mb yet summing up all the file sizes is 270mb 
according to the script.
-- 

__
Sword Ciboodle is the trading name of ciboodle Limited (a company 
registered in Scotland with registered number SC143434 and whose 
registered office is at India of Inchinnan, Renfrewshire, UK, 
PA4 9LH) which is part of the Sword Group of companies.

This email (and any attachments) is intended for the named
recipient(s) and is private and confidential. If it is not for you, 
please inform us and then delete it. If you are not the intended 
recipient(s), the use, disclosure, copying or distribution of any 
information contained within this email is prohibited. Messages to 
and from us may be monitored. If the content is not about the 
business of the Sword Group then the message is neither from nor 
sanctioned by us.

Internet communications are not secure. You should scan this
message and any attachments for viruses. Under no circumstances
do we accept liability for any loss or damage which may result from
your receipt of this email or any attachment.
__



RE: Problems running svnserve as Windows service

2010-03-19 Thread Bob Archer
> I am trying to run svnserve as a windows service.
> At different places (like http://subversion.apache.org/faq.html#svnserve-
> win-service) I found a very good description of what I have to do.
> Unfortunately, when I follow the description, I have no problems
> registering the Windows service (both on Vista and XP) but on both
> systems, I cannot start the service.
> The command I use for registering is:
> sc create svn binpath= "D:\cygwin\bin\svnserve.exe --service -r
> D:\SubVersionReps\Default" displayname= "Subversion Server" depend= Tcpip
> start= auto
> 

Why are you trying to run the Cygwin version of svnserve? I'm pretty sure you 
can only run that if you are in the Cygwin runtime environment. You need to use 
the native windows binaries.

BOb


Re: SVN 1.4.6 support exit codes

2010-03-19 Thread Charan
Hi all,

Can anyone help me on this?

Thanks,


On Wed, Mar 17, 2010 at 10:34 PM, Charan  wrote:

> Hi,
>
> does SVN support exit codes. Suppose if I use "svn merge" in my shell
> script, will svn be able to return exit code "0" if the merge is successful.
>
>
> Thanks,
> Charan
>


Re: SVN 1.4.6 support exit codes

2010-03-19 Thread Jeremy Whitlock
> 
> does SVN support exit codes. Suppose if I use "svn merge" in my shell script, 
> will svn be able to return exit code "0" if the merge is successful.


Yes, Subversion's exit codes conform to Unix standards in that regard.  All 
this time waiting around and you could had just run a simple test to get the 
answer.

Jeremy Whitlock 
http://www.thoughtspark.org






Re: Problems running svnserve as Windows service

2010-03-19 Thread Holger Naundorf

Hi,

this was indeed the problem!
The rest of cygwin runs so great under Windows that it never occurred to me 
that this could be the problem.


Thank you very much,
   Holger Naundorf

- Original Message - 
From: "Bob Archer" 

To: "Holger Naundorf" ; 
Sent: Friday, March 19, 2010 3:10 PM
Subject: RE: Problems running svnserve as Windows service



I am trying to run svnserve as a windows service.
At different places (like http://subversion.apache.org/faq.html#svnserve-
win-service) I found a very good description of what I have to do.
Unfortunately, when I follow the description, I have no problems
registering the Windows service (both on Vista and XP) but on both
systems, I cannot start the service.
The command I use for registering is:
sc create svn binpath= "D:\cygwin\bin\svnserve.exe --service -r
D:\SubVersionReps\Default" displayname= "Subversion Server" depend= Tcpip
start= auto



Why are you trying to run the Cygwin version of svnserve? I'm pretty sure 
you can only run that if you are in the Cygwin runtime environment. You 
need to use the native windows binaries.


BOb






Implementing a 'deploy' script / webdav

2010-03-19 Thread robert mena
Hi,

I am using svn (webdav) and I need to allow the developers to request that
updates are made in a staging server.

Since the developers can't access the server from the console/ssh I'd like
to create a system where the developer would list the files and request.
My script would pull the requests and do a svn update  and return to the
user the output of the command.

I do not want to reinvent the wheel so tips would be great.

Thanks.


Re: Implementing a 'deploy' script / webdav

2010-03-19 Thread Ryan Schmidt

On Mar 19, 2010, at 16:55, robert mena wrote:

> I am using svn (webdav) and I need to allow the developers to request that 
> updates are made in a staging server.
> 
> Since the developers can't access the server from the console/ssh I'd like to 
> create a system where the developer would list the files and request.   My 
> script would pull the requests and do a svn update  and return to the 
> user the output of the command.
> 
> I do not want to reinvent the wheel so tips would be great.

I suggest you use SVN::Notify::Mirror. Developers who wish to promote something 
to the staging server need only create a tag with a name of a certain format, 
and SVN::Notify::Mirror will deploy the contents of the tag to the right place.



Re: Implementing a 'deploy' script / webdav

2010-03-19 Thread robert mena
hi ryan,

thanks.

I've looked but it seems to work only with ssh and does not mention webdav.

On Fri, Mar 19, 2010 at 6:35 PM, Ryan Schmidt <
subversion-20...@ryandesign.com> wrote:

>
> On Mar 19, 2010, at 16:55, robert mena wrote:
>
> > I am using svn (webdav) and I need to allow the developers to request
> that updates are made in a staging server.
> >
> > Since the developers can't access the server from the console/ssh I'd
> like to create a system where the developer would list the files and
> request.   My script would pull the requests and do a svn update  and
> return to the user the output of the command.
> >
> > I do not want to reinvent the wheel so tips would be great.
>
> I suggest you use SVN::Notify::Mirror. Developers who wish to promote
> something to the staging server need only create a tag with a name of a
> certain format, and SVN::Notify::Mirror will deploy the contents of the tag
> to the right place.
>
>


Re: Implementing a 'deploy' script / webdav

2010-03-19 Thread robert mena
Hi,

Just to make sure my 'requirements' are clear I have a repository (/repos)
where I have several projects like clientA, clientB etc.

They are all websites so the devel team (testers, layout etc) adds, removes,
updates directories and files related.  When they've reached a point where
they need to show something for the client (or an outside tester) they need
to 'publish' their modifications to a server (different than the devel one).

For security and technical reasons (try teaching designers about ssh :) )
they are not allowed to access the remote server (staging). So now I have
someone with a list of files that he does a svn update in the remote server.
 This is boring and takes one person for a mechanical job (automation!
automation!).

So my take would be:
- create a simple app where the developer puts the name of the directory or
files that he/she wants to be published in the staging server
- another app will run from the crontab of the staging server and fetch the
pending requests, do an exec svn  (the args will be sanitized for
security) and save the output

Why webdav : essentially for the granularity of the access/auth control.

I'd like to cut as many steps as possible so the request for feedback and/or
code snippets for the app.

I'll use php for both parts.

On Fri, Mar 19, 2010 at 6:35 PM, Ryan Schmidt <
subversion-20...@ryandesign.com> wrote:

>
> On Mar 19, 2010, at 16:55, robert mena wrote:
>
> > I am using svn (webdav) and I need to allow the developers to request
> that updates are made in a staging server.
> >
> > Since the developers can't access the server from the console/ssh I'd
> like to create a system where the developer would list the files and
> request.   My script would pull the requests and do a svn update  and
> return to the user the output of the command.
> >
> > I do not want to reinvent the wheel so tips would be great.
>
> I suggest you use SVN::Notify::Mirror. Developers who wish to promote
> something to the staging server need only create a tag with a name of a
> certain format, and SVN::Notify::Mirror will deploy the contents of the tag
> to the right place.
>
>


Re: Implementing a 'deploy' script / webdav

2010-03-19 Thread Ryan Schmidt
On Mar 19, 2010, at 18:52, robert mena wrote:

> On Fri, Mar 19, 2010 at 6:35 PM, Ryan Schmidt wrote:
> 
>> On Mar 19, 2010, at 16:55, robert mena wrote:
>> 
>> > I am using svn (webdav) and I need to allow the developers to request that 
>> > updates are made in a staging server.
>> >
>> > Since the developers can't access the server from the console/ssh I'd like 
>> > to create a system where the developer would list the files and request.   
>> > My script would pull the requests and do a svn update  and return to 
>> > the user the output of the command.
>> >
>> > I do not want to reinvent the wheel so tips would be great.
>> 
>> I suggest you use SVN::Notify::Mirror. Developers who wish to promote 
>> something to the staging server need only create a tag with a name of a 
>> certain format, and SVN::Notify::Mirror will deploy the contents of the tag 
>> to the right place.
> 
> Just to make sure my 'requirements' are clear I have a repository (/repos) 
> where I have several projects like clientA, clientB etc.
> 
> They are all websites so the devel team (testers, layout etc) adds, removes, 
> updates directories and files related.  When they've reached a point where 
> they need to show something for the client (or an outside tester) they need 
> to 'publish' their modifications to a server (different than the devel one).
> 
> For security and technical reasons (try teaching designers about ssh :) ) 
> they are not allowed to access the remote server (staging). So now I have 
> someone with a list of files that he does a svn update in the remote server.  
> This is boring and takes one person for a mechanical job (automation! 
> automation!).
> 
> So my take would be:
> - create a simple app where the developer puts the name of the directory or 
> files that he/she wants to be published in the staging server
> - another app will run from the crontab of the staging server and fetch the 
> pending requests, do an exec svn  (the args will be sanitized for 
> security) and save the output
> 
> Why webdav : essentially for the granularity of the access/auth control.
> 
> I'd like to cut as many steps as possible so the request for feedback and/or 
> code snippets for the app.
> 
> I'll use php for both parts.

SVN::Notify::Mirror is what you want.

There is no restriction on the method you use to serve your repository; svn://, 
svn+ssh://, http://, https:// should all be fine.

If the machine where you want to deploy the working copy (the staging server) 
is different from the repository server, then the repository server must be 
able to reach the deployment server via ssh or I believe rsync.




Re: file /directory size on svnServer?

2010-03-19 Thread netvampire.tw
Thanks for your information would be helpful
but I am on Windows.
I separate using the output from svn ls -R --xml > size.xml
then apply xslt to sum size.
now I can estimate the size grows every day.
I use this statistic to help monitor detail working status on svn every day now.
I knew it would be 3 times space size to checkout from 
http://svn.apache.org/repos/asf/subversion/trunk/doc/user/svn-best-practices.html
but don't know the sequence flow (which generate first tmp or base or realfile 
) when svn checkout.



- 原始信件 
寄件者: Campbell Allan 
收件者: netvampire.tw 
副 本: users@subversion.apache.org
寄件日期: 2010/3/19 (五) 9:12:06 PM
主 旨: Re: file /directory size on svnServer?


On Wednesday 17 Mar 2010, netvampire.tw wrote:
> Is there any command can show files / directories size on the server? I
> want to know if I have enough space before checkout Thanks

I don't believe there is a command, it's difficult to get an accurate answer 
as each operating system has different overheads. If you are on unix then you 
could try this one liner, just replace SVNURL with the repository url you'd 
like to guess the size of. 

svn ls -v -R  SVNURL | perl -e 'my $total = 0; while(<>) { if( /^(?:\s+\S+)
{2}\s+(\d+)/ ) { $total += $1; } } my $svntotal = $total * 3; print "Total 
file size: $total bytes, estimated checkout size $svntotal bytes\n";'

I'm estimating at least three times the size for the checkout (this is with a 
1.5 client) based on one repository I have available but I had originally 
guessed at twice the size plus a little for the administration directories 
and found it way off. The total bytes will be off as well though as this does 
not take into account filesystem overheads. In my test case the full checkout 
was around 884mb as measured by du -bs, deleting the .svn directories 
resulted in a size of 306mb yet summing up all the file sizes is 270mb 
according to the script.
-- 

__
Sword Ciboodle is the trading name of ciboodle Limited (a company 
registered in Scotland with registered number SC143434 and whose 
registered office is at India of Inchinnan, Renfrewshire, UK, 
PA4 9LH) which is part of the Sword Group of companies.

This email (and any attachments) is intended for the named
recipient(s) and is private and confidential. If it is not for you, 
please inform us and then delete it. If you are not the intended 
recipient(s), the use, disclosure, copying or distribution of any 
information contained within this email is prohibited. Messages to 
and from us may be monitored. If the content is not about the 
business of the Sword Group then the message is neither from nor 
sanctioned by us.

Internet communications are not secure. You should scan this
message and any attachments for viruses. Under no circumstances
do we accept liability for any loss or damage which may result from
your receipt of this email or any attachment.
__