Re: Error on Post Commit Hook.BAT

2011-02-01 Thread David Chapman

On 2/1/2011 11:36 PM, Waseem Bokhari wrote:


I am not using any email program But Only using my SMTP SERVER

E:\Repositories\WSBokhari\hooks\send_message.exe%MESSAGE_FILE% 
%server% %to% %from% %subj% %auth%


Then how would I mention this?




You need to find a program that contacts your SMTP server from the 
Windows command line prompt and sends a message to the server.  You may 
have one already installed on your machine; if you are defining a 
repository for a group of developers you will also need to ensure that 
it is installed (or at least accessible on the search path) on every 
developer's machine.


My Subversion installation does not send E-mail to developers and so I 
do not know of any programs that send mail to an SMTP server from a 
Windows command line prompt.  Perhaps someone else on the list will 
know.  I can't help you further.


--
David Chapman dcchap...@acm.org
Chapman Consulting -- San Jose, CA



RE: Error on Post Commit Hook.BAT

2011-02-01 Thread Waseem Bokhari
I am not using any email program But Only using my SMTP SERVER
 
E:\Repositories\WSBokhari\hooks\send_message.exe %MESSAGE_FILE% %server%
%to% %from% %subj% %auth%
 
 
Then how would I mention this?
 
Thanks
 
 
 Cheers!
 
cid:image001.jpg@01CA74D6.C3770120
 
Waseem Bokhari I Configurations and Release Management 
NetSol Technologies (NasdaqCM: NTWK)
Tel: +92 42 111448800 Ext: 346 Mob: +92 321 4294926
  waseem.bokh...@netsoltech.com
 www.netsoltech.com
 
 
From: David Chapman [mailto:dcchap...@acm.org] 
Sent: Wednesday, February 02, 2011 12:31 PM
To: Waseem Bokhari
Cc: users@subversion.apache.org
Subject: Re: Error on Post Commit Hook.BAT
 
On 2/1/2011 10:54 PM, Waseem Bokhari wrote: 
 
 
From: David Chapman [mailto:dcchap...@acm.org] 
Sent: Wednesday, February 02, 2011 11:48 AM
To: Waseem Bokhari
Cc: users@subversion.apache.org
Subject: Re: Error on Post Commit Hook.BAT
 
On 2/1/2011 10:16 PM, Waseem Bokhari wrote: 
Here is a Post-Commit.bat for generating email on every-commit.
 
@echo off
 
:
::: ARGUMENTS :::
 
SET REPOS=%1
SET REV=%2
 
:
::: GENERAL INFO 
SET DIR=E:\Repositories\WSBokhari\hooks
SET MESSAGE_FILE=%DIR%/message.txt
 
:
::: SVN INFO 
SET DIR=E:\Repositories\WSBokhari\hooks
SET REPO_PATH=file:///E:/Repositories/WSBokhari
 
 
::: Get the author ::
For /F "Tokens=*" %%I in ('svnlook author %REPOS% -r %REV%') Do Set
author=%%I
 
::: Get the log messsage ::
For /F "Tokens=*" %%I in ('svnlook log %REPOS% -r %REV%') Do Set log=%%I
 
::: Set the message body ::
ECHO Commit - rev %REV% (#%author%): '%log%' - %REPOS% > %MESSAGE_FILE%
 
:
::: EMAIL INFO ::
 
set to=-to ntpk@netsolpk.com
 
set subj=-s "SVN Commit (Revision %REV%)"
 
set server=-server mail.netsolpk.com
 
set auth=-u waseem.bokh...@netsolpk.com -pw 123 
 
set from=-f waseem.bokh...@netsolpk.com
 
:
::: SEND THE EMAIL ::
 
E:/Repositories/WSBokhari/%MESSAGE_FILE% %server% %to% %from% %subj% %auth%
 
 
Error Message:
 
post-commit hook failed (exit code 1) with output:
The filename, directory name, or volume label syntax is incorrect.
 
 
PS:
 
Even file message.txt is being creating in my Hooks Folder according to
this::
 
 SET MESSAGE_FILE=%DIR%/message.txt
 



 

This line looks wrong.  Try using a backslash ('\') instead of a forward
slash ('/').  Although many Windows programs tolerate forward slashes in
file names, the Windows batch processor is not one of them.  It uses forward
slashes to mark parameters (as is shown in the "For /F" lines) so it is
trying to interpret "/message.txt" as a parameter, not part of your message
file name.

If you're going to be creating or editing Windows batch files, I strongly
encourage you to buy a book on how to create them.  It's been so long that I
can't recommend one to you, unfortunately.


-- 
David Chapman dcchap...@acm.org
Chapman Consulting -- San Jose, CA
 
> 
>Even I have changed the slashed but the message was same.
> 
>Please advice.
 
Did you change both lines?  I also see forward slashes in the line which is
described as "SEND THE EMAIL" at the very end.

For that matter, this line looks wrong too.  Earlier, you set the variable
DIR to "E:\Repositories\WSBokhari\hooks".  The value of this variable will
be substituted whenever "%DIR%" appears.  Thus if you have "SET
MESSAGE_FILE=%DIR%\message.txt" this is the same as "SET
MESSAGE_FILE=E:\Repositories\WSBokhari\hooks\message.txt" and the value of
this variable will be substituted whenever "%MESSAGE_FILE%" appears, as it
does on the last line.

If you replace the forward slashes in the last line with backslashes and
perform the substitution of "%MESSAGE_FILE%", the first word of the line
will become
"E:\Repositories\WSBokhari\E:\Repositories\WSBokhari\hooks\message.txt",
which is obviously an invalid Windows path name.

The message file is clearly not intended to include the name of the mail
program, so you need to supply the name of the E-mail program.  I don't know
what that would be.  Nor do I know the command-line parameters for the
E-mail program, so I cannot tell you whether the syntax of this line is
correct.  But if your E-mail send program is
"E:\Repositories\WSBokhari\hooks\send_message.exe" and it accepted the
parameters you have listed, the last line of the batch program would be:

E:\Repositories\WSBokhari\hooks\send_message.exe %MESSAGE_FILE% %server%
%to% %from% %subj% %auth%

You really need a book on Windows

RE: Copy with externals, then commit fails

2011-02-01 Thread Ryno Changuion
>> I tried to create a new branch of a trunk that had some
>> svn:externals definition.
>> In particular, it pointed to a file.
>> 
>> I.e.
>> /somewhere/a.txt@4 a.txt
>> 
>> I used
>> svn copy svn://server/trunk branch
>> And the output from that was the usual stuff including
>> E  a.txt (indicating an externals file).
>> 
>> svn stat had the following output:
>>  +X   a.txt
>> Of course, the plus means "with history".
>> 
>> After this, I could not do a commit. The commit failed with a
>> message:
>> svn: File not found: revision 4, path '/trunk/a.txt'
>> 
>> My suspicion is that due to the fact that the file has history
>> associated
>> with it, the commit tries to commit a file that it shouldn't be
>> committing.
>> Besides, I didn't want to add a.txt to my branch, I still wanted it
>> to come
>> from the original externals definition. Is it a bug that svn copy
>> adds
>> history info to an external file?

>File externals require that the file being pointed to is in the same working 
>copy as the external of it. From the docs:

>"While directory externals can place the external directory at any depth, and 
>any missing intermediate directories will be created, file externals must be 
>placed into a >working copy that is already checked out."

>Bob

Hi Bob
Thanks for the reply.

"file externals must be placed into a working copy that is already checked 
out". 
Agreed. But in my example I was trying to create a branch by using svn copy's
REPOS-URL to WC-PATH option. This meant svn copy created the new working copy 
and thus
I couldn't start with a "already checked out wc". After this the new branch
(as a wc) couldn't be commited because of the above mentioned history data.

I did find a work-around. I used "svn copy --ignore-externals" when creating the
new branch (as a wc). This meant there was no history info and I could commit.

I am guessing that "svn copy REPOS-URL REPOS-URL" would have worked too.

I found a thread today 
(http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=965300)
related to this topic where it was suggested that svn copy REPOS-URL WC should 
never fetch externals.

I also found http://subversion.tigris.org/issues/show_bug.cgi?id=3589
I think the issue I was having is a variant of this bug. It is targeted
for a fix in 1.7.0. I found the issue using 1.6.12.

Ryno Changuion



Re: Error on Post Commit Hook.BAT

2011-02-01 Thread David Chapman

On 2/1/2011 10:54 PM, Waseem Bokhari wrote:


//

*From:*David Chapman [mailto:dcchap...@acm.org]
*Sent:* Wednesday, February 02, 2011 11:48 AM
*To:* Waseem Bokhari
*Cc:* users@subversion.apache.org
*Subject:* Re: Error on Post Commit Hook.BAT

On 2/1/2011 10:16 PM, Waseem Bokhari wrote:

_Here is a Post-Commit.bat for generating email on every-commit._

*@echo off*

**

*:*

*::: ARGUMENTS :::*

**

*SET REPOS=%1*

*SET REV=%2*

**

*:*

*::: GENERAL INFO *

*SET DIR=E:\Repositories\WSBokhari\hooks*

*SET MESSAGE_FILE=%DIR%/message.txt*

**

*:*

*::: SVN INFO *

*SET DIR=E:\Repositories\WSBokhari\hooks*

*SET REPO_PATH=file:///E:/Repositories/WSBokhari 
*


**

*::: Get the author ::*

*For /F "Tokens=*" %%I in ('svnlook author %REPOS% -r %REV%') Do Set 
author=%%I*


**

*::: Get the log messsage ::*

*For /F "Tokens=*" %%I in ('svnlook log %REPOS% -r %REV%') Do Set log=%%I*

**

*::: Set the message body ::*

*ECHO Commit - rev %REV% (#%author%): '%log%' - %REPOS% > %MESSAGE_FILE%*

**

*:*

*::: EMAIL INFO ::*

**

*set to=-to ntpk@netsolpk.com *

**

*set subj=-s "SVN Commit (Revision %REV%)"*

**

*set server=-server mail.netsolpk.com*

**

*set auth=-u waseem.bokh...@netsolpk.com 
 --pw 123 *


**

*set from=-f waseem.bokh...@netsolpk.com 
*


**

*:*

*::: SEND THE EMAIL ::*

**

*E:/Repositories/WSBokhari/%MESSAGE_FILE% %server% %to% %from% %subj% 
%auth%*


**

**

*_Error Message:_*

**

*post-commit hook failed (exit code 1) with output:*

*The filename, directory name, or volume label syntax is incorrect.*

**

**

*_PS:_*

Even file *message.txt***is being creating in my Hooks Folder 
according to this::


**

*SET MESSAGE_FILE=%DIR%/message.txt*



//


This line looks wrong.  Try using a backslash ('\') instead of a 
forward slash ('/').  Although many Windows programs tolerate forward 
slashes in file names, the Windows batch processor is not one of 
them.  It uses forward slashes to mark parameters (as is shown in the 
"For /F" lines) so it is trying to interpret "/message.txt" as a 
parameter, not part of your message file name.


If you're going to be creating or editing Windows batch files, I 
strongly encourage you to buy a book on how to create them.  It's been 
so long that I can't recommend one to you, unfortunately.


--
 David Chapman  dcchap...@acm.org  
 Chapman Consulting -- San Jose, CA


>


Even I have changed the slashed but the message was same.







Please advice.


Did you change both lines?  I also see forward slashes in the line which 
is described as "SEND THE EMAIL" at the very end.


For that matter, this line looks wrong too.  Earlier, you set the 
variable DIR to "E:\Repositories\WSBokhari\hooks".  The value of this 
variable will be substituted whenever "%DIR%" appears.  Thus if you have 
"SET MESSAGE_FILE=%DIR%\message.txt" this is the same as "SET 
MESSAGE_FILE=E:\Repositories\WSBokhari\hooks\message.txt" and the value 
of this variable will be substituted whenever "%MESSAGE_FILE%" appears, 
as it does on the last line.


If you replace the forward slashes in the last line with backslashes and 
perform the substitution of "%MESSAGE_FILE%", the first word of the line 
will become 
"E:\Repositories\WSBokhari\E:\Repositories\WSBokhari\hooks\message.txt", 
which is obviously an invalid Windows path name.


The message file is clearly not intended to include the name of the mail 
program, so you need to supply the name of the E-mail program.  I don't 
know what that would be.  Nor do I know the command-line parameters for 
the E-mail program, so I cannot tell you whether the syntax of this line 
is correct.  But if your E-mail send program is 
"E:\Repositories\WSBokhari\hooks\send_message.exe" and it accepted the 
parameters you have listed, the last line of the batch program would be:


E:\Repositories\WSBokhari\hooks\send_message.exe %MESSAGE_FILE% %server% 
%to% %from% %subj% %auth%


You really need a book on Windows batch file processing.
//

--
David Chapman dcchap...@acm.org
Chapman Consulting -- San Jose, CA



RE: Error on Post Commit Hook.BAT

2011-02-01 Thread Waseem Bokhari
Even I have changed the slashed but the message was same.
 
Please advice.
 
 
 
 Cheers!
 
cid:image001.jpg@01CA74D6.C3770120
 
Waseem Bokhari I Configurations and Release Management 
NetSol Technologies (NasdaqCM: NTWK)
Tel: +92 42 111448800 Ext: 346 Mob: +92 321 4294926
  waseem.bokh...@netsoltech.com
 www.netsoltech.com
 
 
From: David Chapman [mailto:dcchap...@acm.org] 
Sent: Wednesday, February 02, 2011 11:48 AM
To: Waseem Bokhari
Cc: users@subversion.apache.org
Subject: Re: Error on Post Commit Hook.BAT
 
On 2/1/2011 10:16 PM, Waseem Bokhari wrote: 
Here is a Post-Commit.bat for generating email on every-commit.
 
@echo off
 
:
::: ARGUMENTS :::
 
SET REPOS=%1
SET REV=%2
 
:
::: GENERAL INFO 
SET DIR=E:\Repositories\WSBokhari\hooks
SET MESSAGE_FILE=%DIR%/message.txt
 
:
::: SVN INFO 
SET DIR=E:\Repositories\WSBokhari\hooks
SET REPO_PATH=file:///E:/Repositories/WSBokhari
 
 
::: Get the author ::
For /F "Tokens=*" %%I in ('svnlook author %REPOS% -r %REV%') Do Set
author=%%I
 
::: Get the log messsage ::
For /F "Tokens=*" %%I in ('svnlook log %REPOS% -r %REV%') Do Set log=%%I
 
::: Set the message body ::
ECHO Commit - rev %REV% (#%author%): '%log%' - %REPOS% > %MESSAGE_FILE%
 
:
::: EMAIL INFO ::
 
set to=-to ntpk@netsolpk.com
 
set subj=-s "SVN Commit (Revision %REV%)"
 
set server=-server mail.netsolpk.com
 
set auth=-u waseem.bokh...@netsolpk.com -pw 123 
 
set from=-f waseem.bokh...@netsolpk.com
 
:
::: SEND THE EMAIL ::
 
E:/Repositories/WSBokhari/%MESSAGE_FILE% %server% %to% %from% %subj% %auth%
 
 
Error Message:
 
post-commit hook failed (exit code 1) with output:
The filename, directory name, or volume label syntax is incorrect.
 
 
PS:
 
Even file message.txt is being creating in my Hooks Folder according to
this::
 
 SET MESSAGE_FILE=%DIR%/message.txt
 



 

This line looks wrong.  Try using a backslash ('\') instead of a forward
slash ('/').  Although many Windows programs tolerate forward slashes in
file names, the Windows batch processor is not one of them.  It uses forward
slashes to mark parameters (as is shown in the "For /F" lines) so it is
trying to interpret "/message.txt" as a parameter, not part of your message
file name.

If you're going to be creating or editing Windows batch files, I strongly
encourage you to buy a book on how to create them.  It's been so long that I
can't recommend one to you, unfortunately.


-- 
David Chapman dcchap...@acm.org
Chapman Consulting -- San Jose, CA


DISCLAIMER:  This e-mail and any file transmitted with it are confidential and 
intended solely 
for the use of the addressee.  If you are not the intended recipient, you are 
hereby advised that
any dissemination, distribution or copy of this email or its attachments is 
strictly prohibited.  If you
have received this email in error, please immediately notify us by return email 
and destroy this email 
message and its attachments.  This communication may contain forward-looking 
statements
relating to the development of NetSol Technologies' products and services and 
future operations.
The words "believe," "expect," "anticipate," "intend," variations of such 
words, and similar 
expressions, identify forward looking statements, but their absence does not 
mean that the 
statement is not forward-looking.  Views and opinions contained herein are 
those of the author of 
this email and do not necessarily represent those of NetSol Technologies.  
Statements contained 
herein are not guarantees of future performance and are subject to certain 
risks, uncertainties and 
assumptions that are difficult to predict. The company will not undertake to 
update any statements 
contained herein.

WARNING: The recipient should check this email and any attachment for the 
presence of viruses. 
Although the company has taken reasonable precautions to ensure no viruses are 
present in this 
email, the company does not accept responsibility for any loss or damage 
arising from the use of 
this email or attachment. Note: Please consider the environment before printing 
this e-mail. 
<>

Re: Error on Post Commit Hook.BAT

2011-02-01 Thread David Chapman

On 2/1/2011 10:16 PM, Waseem Bokhari wrote:


_Here is a Post-Commit.bat for generating email on every-commit._

*@echo off*

**

*:*

*::: ARGUMENTS :::*

**

*SET REPOS=%1*

*SET REV=%2*

**

*:*

*::: GENERAL INFO *

*SET DIR=E:\Repositories\WSBokhari\hooks*

*SET MESSAGE_FILE=%DIR%/message.txt*

**

*:*

*::: SVN INFO *

*SET DIR=E:\Repositories\WSBokhari\hooks*

*SET REPO_PATH=file:///E:/Repositories/WSBokhari*

**

*::: Get the author ::*

*For /F "Tokens=*" %%I in ('svnlook author %REPOS% -r %REV%') Do Set 
author=%%I*


**

*::: Get the log messsage ::*

*For /F "Tokens=*" %%I in ('svnlook log %REPOS% -r %REV%') Do Set log=%%I*

**

*::: Set the message body ::*

*ECHO Commit - rev %REV% (#%author%): '%log%' - %REPOS% > %MESSAGE_FILE%*

**

*:*

*::: EMAIL INFO ::*

**

*set to=-to ntpk@netsolpk.com*

**

*set subj=-s "SVN Commit (Revision %REV%)"*

**

*set server=-server mail.netsolpk.com*

**

*set auth=-u waseem.bokh...@netsolpk.com --pw 123 *

**

*set from=-f waseem.bokh...@netsolpk.com*

**

*:*

*::: SEND THE EMAIL ::*

**

*E:/Repositories/WSBokhari/%MESSAGE_FILE% %server% %to% %from% %subj% 
%auth%***


**

**

*_Error Message:_*

**

*post-commit hook failed (exit code 1) with output:*

*The filename, directory name, or volume label syntax is incorrect.*

**

**

*_PS:_*

Even file *message.txt***is being creating in my Hooks Folder 
according to this::**


**

*SET MESSAGE_FILE=%DIR%/message.txt*


**

//



This line looks wrong.  Try using a backslash ('\') instead of a forward 
slash ('/').  Although many Windows programs tolerate forward slashes in 
file names, the Windows batch processor is not one of them.  It uses 
forward slashes to mark parameters (as is shown in the "For /F" lines) 
so it is trying to interpret "/message.txt" as a parameter, not part of 
your message file name.


If you're going to be creating or editing Windows batch files, I 
strongly encourage you to buy a book on how to create them.  It's been 
so long that I can't recommend one to you, unfortunately.


--
David Chapman dcchap...@acm.org
Chapman Consulting -- San Jose, CA



Error on Post Commit Hook.BAT

2011-02-01 Thread Waseem Bokhari
Here is a Post-Commit.bat for generating email on every-commit.
 
@echo off
 
:
::: ARGUMENTS :::
 
SET REPOS=%1
SET REV=%2
 
:
::: GENERAL INFO 
SET DIR=E:\Repositories\WSBokhari\hooks
SET MESSAGE_FILE=%DIR%/message.txt
 
:
::: SVN INFO 
SET DIR=E:\Repositories\WSBokhari\hooks
SET REPO_PATH=file:///E:/Repositories/WSBokhari
 
::: Get the author ::
For /F "Tokens=*" %%I in ('svnlook author %REPOS% -r %REV%') Do Set
author=%%I
 
::: Get the log messsage ::
For /F "Tokens=*" %%I in ('svnlook log %REPOS% -r %REV%') Do Set log=%%I
 
::: Set the message body ::
ECHO Commit - rev %REV% (#%author%): '%log%' - %REPOS% > %MESSAGE_FILE%
 
:
::: EMAIL INFO ::
 
set to=-to ntpk@netsolpk.com
 
set subj=-s "SVN Commit (Revision %REV%)"
 
set server=-server mail.netsolpk.com
 
set auth=-u waseem.bokh...@netsolpk.com -pw 123 
 
set from=-f waseem.bokh...@netsolpk.com
 
:
::: SEND THE EMAIL ::
 
E:/Repositories/WSBokhari/%MESSAGE_FILE% %server% %to% %from% %subj% %auth%
 
 
Error Message:
 
post-commit hook failed (exit code 1) with output:
The filename, directory name, or volume label syntax is incorrect.
 
 
PS:
 
Even file message.txt is being creating in my Hooks Folder according to
this::
 
 SET MESSAGE_FILE=%DIR%/message.txt
 
 
Commit - rev 26 (#Shahzadw): 'w' - E:\Repositories\WSBokhari
 
 
Please advice.
 
I am using Visual SVN Server and TSVN on client side.
 
Thanks in advance.
 
 
 Cheers!
 
cid:image001.jpg@01CA74D6.C3770120
 
Waseem Bokhari I Configurations and Release Management 
NetSol Technologies (NasdaqCM: NTWK)
Tel: +92 42 111448800 Ext: 346 Mob: +92 321 4294926
  waseem.bokh...@netsoltech.com
 www.netsoltech.com
 
 


DISCLAIMER:  This e-mail and any file transmitted with it are confidential and 
intended solely 
for the use of the addressee.  If you are not the intended recipient, you are 
hereby advised that
any dissemination, distribution or copy of this email or its attachments is 
strictly prohibited.  If you
have received this email in error, please immediately notify us by return email 
and destroy this email 
message and its attachments.  This communication may contain forward-looking 
statements
relating to the development of NetSol Technologies' products and services and 
future operations.
The words "believe," "expect," "anticipate," "intend," variations of such 
words, and similar 
expressions, identify forward looking statements, but their absence does not 
mean that the 
statement is not forward-looking.  Views and opinions contained herein are 
those of the author of 
this email and do not necessarily represent those of NetSol Technologies.  
Statements contained 
herein are not guarantees of future performance and are subject to certain 
risks, uncertainties and 
assumptions that are difficult to predict. The company will not undertake to 
update any statements 
contained herein.

WARNING: The recipient should check this email and any attachment for the 
presence of viruses. 
Although the company has taken reasonable precautions to ensure no viruses are 
present in this 
email, the company does not accept responsibility for any loss or damage 
arising from the use of 
this email or attachment. Note: Please consider the environment before printing 
this e-mail. 
<>

RE: sparse working directories and externals

2011-02-01 Thread Dave Andreas
Johan,

Thanks for the reply.  I looked at the two issues being tracked and they 
summary my problem fairly well.

Dave Andreas

-Original Message-
From: Johan Corveleyn [mailto:jcor...@gmail.com] 
Sent: Saturday, January 29, 2011 3:48 AM
To: Dave Andreas
Cc: users@subversion.apache.org
Subject: Re: sparse working directories and externals

On Fri, Jan 28, 2011 at 4:35 PM, Dave Andreas  wrote:
> I've encountered a few anomalies regarding the sparse workaareas and
> externals.  I can construct a sparse workarea using either a top down
> approach or a bottoms up approach as shown in the following examples
>
> Top down:
>
> $ svn co -depth immediates  modules
>
> A modules
> A modules/module1
> A modules/module2
> $ svn update -set-depth immediates modules/*
> A modules/module1/subdir1
> A modules/module1/subdir2
> A modules/module2/subdir1
> A modules/module2/subdir2
>
> $svn update -set-depth infinity modules/*/subdir1
>
> A modules/module1/subdir1/file1
> A modules/module2/subdir1/file3
>
>
> Bottoms up:
>
> $svn co  modules
>
> A modules
> A modules/module1
> A modules/module1/subdir1
> A modules/module1/subdir1/file1
> A modules/module2/subdir2
> A modules/module1/subdir2/file2
> A modules/module2
> A moduels/module2/subdir1
> A modules/module2/subdir1/file3
> A modules/module2/subdir2
> A modules/module2/subdir2/file4
> A modules/external1/subdir1
> A modules/external1/subdir1/file5
> A modules/external1/subdir2/
> A modules/external1/subdir2/file6
>
> $svn update -set-depth empty modules/*/subdir2
>
> D modules/module1/subdir2/file2
> D modules/module2/subdir2/file4
> D modules/external1/subdir2/file6
>
>
> If it weren't for the external, the result is the same.  Unfortunately the
> initial checkout of an external appears to be an all or nothing scenario
> requiring a depth of infinity.
>
> The disadvantage of a bottoms up approach is that I'm checking out
> everything from the repository into the workarea and them pruning it back.
> In my actual case, I'm dealing with 10's of thousands of file and this
> process can take nearly 3 hours.
>
> The ideal solution would be a top down approach that handled externals
> identically to modules from the local repository.
>
> Any suggestions?

If I understand correctly, the problem is really at the start of your
explanation, in that:

> Top down:
>
> $ svn co -depth immediates  modules
>
> A modules
> A modules/module1
> A modules/module2

doesn't checkout modules/external1. If that would be the case, it
would probably pan out the way you want, wouldn't it?

I think this is issue #3311:
http://subversion.tigris.org/issues/show_bug.cgi?id=3311 (externals
are not created unless depth=infinity)

I don't know an easy workaround. After your first step (checkout with
depth=immediates), can you "manually" pull in the externals with eg.
"svn update --set-depth=infinity external1"? In that case, maybe you
could script something, using the output of "svn propget
svn:externals" right after the "co --depth=immediates"? That would
still pull in too much of the externals themselves, but maybe it makes
it already a little more manageable ...

Unfortunately, there is no way to limit the depth of pulling in the
external itself, because of another issue:
http://subversion.tigris.org/issues/show_bug.cgi?id=3216 (externals
with --depth)

Cheers,
-- 
Johan
This message (including any attachments) is intended only for the use of the 
individual or entity to which it is addressed and may contain information that 
is non-public, proprietary, privileged, confidential, and exempt from 
disclosure under applicable law or may constitute as attorney work product.  If 
you are not the intended recipient, you are hereby notified that any use, 
dissemination, distribution, or copying of this communication is strictly 
prohibited. If you have received this communication in error, notify us 
immediately by telephone and (i) destroy this message if a facsimile or (ii) 
delete this message immediately if this is an electronic communication.  

Thank you.



Re: missing carriage returns from output of "svn diff" in Windows

2011-02-01 Thread Stefan Sperling
On Tue, Feb 01, 2011 at 12:39:29PM -0800, David Chapman wrote:
> 000   I   n   d   e   x   :   s   v   n   _   u   s   a   g   e
> 020   _   n   o   t   e   s   .   t   x   t  \r  \n   =   =   =   =
> 040   =   =   =   =   =   =   =   =   =   =   =   =   =   =   =   =
> *
> 120   =   =   =   =   =   =   =   =   =   =   =   =   =   =   =  \r
> 140  \n   -   -   -   s   v   n   _   u   s   a   g   e   _   n
> 160   o   t   e   s   .   t   x   t  \t   (   r   e   v   i   s   i
> 200   o   n   1   1   1   6   )  \r  \n   +   +   +   s   v
> 220   n   _   u   s   a   g   e   _   n   o   t   e   s   .   t   x
> 240   t  \t   (   w   o   r   k   i   n   g   c   o   p   y   )
> 260  \r  \n   @   @   -   6   1   2   2   ,   3   +   6   1
> 300   2   2   ,   6   @   @  \r  \n  \n   M   a   r   k
> 320   P   h   i   p   p   a   r   d  \n   h   t   t   p   :
> 340   /   /   m   a   r   k   p   h   i   p   .   b   l   o   g   s
> 360   p   o   t   .   c   o   m   /  \n   +   f   o   o  \n   +
> 400   b   a   r  \n   +   z   o   t  \n
> 413
> 
> Note how the first part of the file has "\r\n" while the last part
> (showing the extra lines) has only '\n'.  The file itself has "\r\n"
> for every line, and I have the following line in
> C:\Users\David\AppData\Roaming\Subversion\config:
> 
> *.txt = svn:eol-style=native

This is a known issue:
http://subversion.tigris.org/issues/show_bug.cgi?id=3338

Stefan


RE: Python 2.6 bindings

2011-02-01 Thread Alina Frey
Mark, Daniel,

Thanks for all your inputs.
I think I am getting closer to the seeing the light at the end of the tunnel
:). I will describe below all the steps that I took in order to download,
install and setup. Please let me know if everything seems alright or I need
to change anything. I read that when I create a Trac project, it should ask
me about the repository type and repository path, which is not happening. I
was wondering if it is because of the newer version of Python (2.7). 

Another dilemma that I have is related to the repositories. 
>From the Trac project webpage, when logged in with admin privileges, I can
create a repository by going to Adim -> Repositories -> Add repository. Here
I can create a new repository. Let's say that I'm creating Repository1. From
here it says that I should set up a post-commit hook on the repository to
call trac-admin $ENV changeset added "Repository1" $REV for each committed
changeset. I don't understand what that is and how should I do this.

Also, what do I need to install in order to be able to check in files?

Thank you so much,

- Alina.


Here are the steps that I took in order to download, install and setup.

Trac-Subversion Installation in Windows

The following software packages must be installed: 
1.  Python 
2.  setuptools
3.  Genshi
4.  SQLite Database
5.  Subversion
6.  Apache

Perform the following steps:

1.   Python: Download Python 2.7.1 Windows Installer (python-2.7.1.msi)
from http://www.python.org/download/. Install it by double clicking on
python-2.7.1.msi.

2.  setuptools: Downloaded setuptools
0.6c11(setuptools-0.6c11.win32-py2.7.exe (md5) ) from
http://pypi.python.org/pypi/setuptools. Install it by double clicking on
setuptools-0.6c11.win32-py2.7.exe.

3.  Add the following to the Path Environment Variables:
C:\Python27\Scripts; C:\Python27\.

4.  Genshi (it comes with Python 2.7). From the command line:
>   easy_install Genshi

5.  SQLite Database (it comes with Python 2.7). Does not need to perform
any steps to install it.

6.  Subversion, 1.5.x or 1.6.x and the corresponding Python bindings:
a.  Download and install Subversion 1.6.15 first: Win32Svn
(32-bit client) from https://sourceforge.net/projects/win32svn/
b.  Download the Python bindings: svn-win32-1.6.15_py_2.7.zip
(from http://trac.edgewall.org/wiki/TracSubversion ). Unzip and copy the two
folders under the extracted package (libsvn and svn) under
C:\Python27\Lib\site-packages.
c.  Create a subversion folder:
>   mkdir C:\Projects\SVN
d.  Crete SVN repository
>   svnadmin create C:\Projects\SVN\TestRepository

7.  Apache: Download and install win32 Binary including OpenSSL 0.9.8o
(MSI Installer): httpd-2.2.17-win32-x86-openssl-0.9.8o.msi from
http://httpd.apache.org/download.cgi

8.  Create a password file for Trac by using htpasswd.exe from Apache
folder:
>   Cd C:\Program Files (x86)\Apache Software
Foundation\Apache2.2\bin
>   htpasswd.exe -b -c password.txt afrey dds4mo
>   The file password.txt will be copied under Trac after it
will be installed.

9.  Install Trac from the command line:
>   easy_install Babel==0.9.5 Genshi==0.6
>   easy_install Trac
>   I have a step that does the install by double clicking on
Trac_0.12.1.win32.exe. I don't understand what that does, if it does the
same thing as the easy_install or not.

10. Create a project environment:
>   trac-admin C:\Projects\Trac-Test initenv
>   Prompted to enter the following:
>   Project name: Test
>   Database connection: just press  to take the default
[sqlite:db/trac.db]
>   Noticed that it did not ask anything about subversion.

11. Copy password.txt to C:\Projects\Trac-Test\auth\ password.txt. If
the folder auth is not created yet, create it now. The file should reside
somewhere else so it does not depend on only one project (in this case
Trac-Test).

12. Start Trac from the command line:
>   tracd -p 8000
--basic-auth="Trac-Test,C:\Projects\Trac-Test\auth\password.txt,"
C:\Projects\Trac-Test

13. Add user with admin priviledges:
>   trac-admin C:\Projects\Trac-Test permission add afrey
TRAC_ADMIN 
>   trac-admin C:\Projects\Trac-Test permission add mgilger
TRAC_ADMIN 
>   To see all the users and permissions: trac-admin
C:\Projects\Trac-Test permission list

14. The environment could be configured by editing the file:
C:\Trac-Test\conf\trac.ini

15. To add an image to the Trac project home page:
>   Copy picture TestLogo.png (that was previously created and
saved somewhere on the computer) under
C:\Projects\Trac-Test\htdocs\TestLogo.png.
>   Modify C:\Projects\Trac-Test\conf\trac.ini. Look for the
section [header_logo] and add or rep

Re: missing carriage returns from output of "svn diff" in Windows

2011-02-01 Thread David Chapman

On 2/1/2011 1:29 PM, Johan Corveleyn wrote:

On Tue, Feb 1, 2011 at 9:39 PM, David Chapman  wrote:

Running Subversion 1.6.15 under Windows 7, if I redirect the output of "svn
diff" to a file and then try to edit that file using Notepad, the line
breaks are garbled.  In particular they have only the '\n' character, not
the '\r' character.

For example, if "svn_usage_notes.txt" is in my repository, and I do the
following in a sandbox:

echo foo>>  svn_usage_notes.txt
echo bar>>  svn_usage_notes.txt
echo zot>>  svn_usage_notes.txt
svn diff svn_usage_notes.txt>  wowow.txt
od -c wowow.txt

I get:

000   I   n   d   e   x   :   s   v   n   _   u   s   a   g   e
020   _   n   o   t   e   s   .   t   x   t  \r  \n   =   =   =   =
040   =   =   =   =   =   =   =   =   =   =   =   =   =   =   =   =
*
120   =   =   =   =   =   =   =   =   =   =   =   =   =   =   =  \r
140  \n   -   -   -   s   v   n   _   u   s   a   g   e   _   n
160   o   t   e   s   .   t   x   t  \t   (   r   e   v   i   s   i
200   o   n   1   1   1   6   )  \r  \n   +   +   +   s   v
220   n   _   u   s   a   g   e   _   n   o   t   e   s   .   t   x
240   t  \t   (   w   o   r   k   i   n   g   c   o   p   y   )
260  \r  \n   @   @   -   6   1   2   2   ,   3   +   6   1
300   2   2   ,   6   @   @  \r  \n  \n   M   a   r   k
320   P   h   i   p   p   a   r   d  \n   h   t   t   p   :
340   /   /   m   a   r   k   p   h   i   p   .   b   l   o   g   s
360   p   o   t   .   c   o   m   /  \n   +   f   o   o  \n   +
400   b   a   r  \n   +   z   o   t  \n
413

Note how the first part of the file has "\r\n" while the last part (showing
the extra lines) has only '\n'.  The file itself has "\r\n" for every line,
and I have the following line in
C:\Users\David\AppData\Roaming\Subversion\config:

*.txt = svn:eol-style=native

Ok, that may be your client side config, but maybe it's not working
correctly or not being picked up for whatever reason. Can you verify
directly whether the property is set on the file?

 svn propget svn:eol-style svn_usage_notes.txt


"svn propget svn:eol-style svn_usage_notes.txt" returns "native", as 
expected.  I should point out that the problem is not specific to this 
one file, but is common to every text file in my sandboxes (including C 
and C++ source code).  I've been using Subversion for years under both 
Windows and Linux and am pretty careful to set autoprops for all 
appropriate file types.  Bad things happen otherwise...



The absence of newlines makes it impossible to view the differences file in
Notepad.  Years ago before I knew about "unzip -a", I wrote a program to add
carriage returns to text files being copied from Linux to Windows and so I
can use that, but it would be nice to have system-appropriate line endings
in the output of "svn diff" without this extra step.

Is anyone else seeing this?  Is there a configuration parameter I can set to
fix it, or is it a bug that should be bumped to the dev list?

Certainly no need to escalate to the dev list (unless we're going to
discuss design/implementation considerations or something). We can
discuss it on this list, and if we find out it's a genuine issue, you
can submit it to the issue tracker.


It's been a while since I was subscribed to this list, and as I recall 
bumping to dev was the next step.  Submitting an issue works for me if 
that's the preferred way now.



(For the record, I have "UnxUtils.zip" loaded, so I have a number of
Unix/Linux utilities such as "od" available under Windows, and only the
Windows Subversion executable ever writes into a Windows sandbox.)

Ok, this may be a very important detail. Can you first try to
reproduce this issue without the UnxUtils loaded?


Uninstalling the Unix utility set is rather a drastic step, but I 
removed its executable directory from the
search path for a newly opened shell (there is no "od" and no "diff" on 
the search path; I checked).  Same result.



Which client are you using actually (which distribution)? You aren't
using one from cygwin are you? There are known problems with the svn
client that comes with cygwin (don't know the details, but I think it
can be confused about its native eol-style, because it thinks it's
running on unix etc.).

Also, is this something new you're seeing only from 1.6.15? Can you
try reproducing with an older version, and try to find out when the
problem first appeared?


The installation is Windows native (i.e. Command Prompt) from 
Setup-Subversion-1.6.15.msi, downloaded December 26, 2010 as I was 
building a new machine to recover from a crash on my old one.  :-(  I've 
never used Cygwin; I always try to ensure that I have enough machines 
that I can boot Linux in native mode on a separate machine alongside my 
Windows machine.  TortoiseSVN is not installed either.


My eight-year-old ThinkPad wheezes a bit, but it still boots Windows XP

Re: Post-Commit Hook for Windows

2011-02-01 Thread David Weintraub
On Mon, Jan 31, 2011 at 4:16 AM, Waseem Bokhari <
waseem.bokh...@netsoltech.com> wrote:

>  Will you guys please share example script for Email Generation on Each
> Commit in SVN Windows Environment.
>

Here's a script called svn-watch.pl:
http://dl.dropbox.com/u/433257/svn-watch.pl

This is a Perl script which means you need to install Perl on your
Subversion repository server in order for it to work. Perl is available for
free from http://activestate.com.

The script allows users to set what files will trigger email notifications.
Complete directions are embedded in the script itself, and can be generated
via the "perldoc" command. See the comments on the very top of the file.

Even if you don't use this script, it does show you how to do notifications
in Subversion and shows you the basic technique.

-- 
David Weintraub
qazw...@gmail.com


Re: missing carriage returns from output of "svn diff" in Windows

2011-02-01 Thread Johan Corveleyn
On Tue, Feb 1, 2011 at 9:39 PM, David Chapman  wrote:
> Running Subversion 1.6.15 under Windows 7, if I redirect the output of "svn
> diff" to a file and then try to edit that file using Notepad, the line
> breaks are garbled.  In particular they have only the '\n' character, not
> the '\r' character.
>
> For example, if "svn_usage_notes.txt" is in my repository, and I do the
> following in a sandbox:
>
> echo foo >> svn_usage_notes.txt
> echo bar >> svn_usage_notes.txt
> echo zot >> svn_usage_notes.txt
> svn diff svn_usage_notes.txt > wowow.txt
> od -c wowow.txt
>
> I get:
>
> 000   I   n   d   e   x   :       s   v   n   _   u   s   a   g   e
> 020   _   n   o   t   e   s   .   t   x   t  \r  \n   =   =   =   =
> 040   =   =   =   =   =   =   =   =   =   =   =   =   =   =   =   =
> *
> 120   =   =   =   =   =   =   =   =   =   =   =   =   =   =   =  \r
> 140  \n   -   -   -       s   v   n   _   u   s   a   g   e   _   n
> 160   o   t   e   s   .   t   x   t  \t   (   r   e   v   i   s   i
> 200   o   n       1   1   1   6   )  \r  \n   +   +   +       s   v
> 220   n   _   u   s   a   g   e   _   n   o   t   e   s   .   t   x
> 240   t  \t   (   w   o   r   k   i   n   g       c   o   p   y   )
> 260  \r  \n   @   @       -   6   1   2   2   ,   3       +   6   1
> 300   2   2   ,   6       @   @  \r  \n      \n       M   a   r   k
> 320       P   h   i   p   p   a   r   d  \n       h   t   t   p   :
> 340   /   /   m   a   r   k   p   h   i   p   .   b   l   o   g   s
> 360   p   o   t   .   c   o   m   /  \n   +   f   o   o      \n   +
> 400   b   a   r      \n   +   z   o   t      \n
> 413
>
> Note how the first part of the file has "\r\n" while the last part (showing
> the extra lines) has only '\n'.  The file itself has "\r\n" for every line,
> and I have the following line in
> C:\Users\David\AppData\Roaming\Subversion\config:
>
> *.txt = svn:eol-style=native

Ok, that may be your client side config, but maybe it's not working
correctly or not being picked up for whatever reason. Can you verify
directly whether the property is set on the file?

svn propget svn:eol-style svn_usage_notes.txt

> The absence of newlines makes it impossible to view the differences file in
> Notepad.  Years ago before I knew about "unzip -a", I wrote a program to add
> carriage returns to text files being copied from Linux to Windows and so I
> can use that, but it would be nice to have system-appropriate line endings
> in the output of "svn diff" without this extra step.
>
> Is anyone else seeing this?  Is there a configuration parameter I can set to
> fix it, or is it a bug that should be bumped to the dev list?

Certainly no need to escalate to the dev list (unless we're going to
discuss design/implementation considerations or something). We can
discuss it on this list, and if we find out it's a genuine issue, you
can submit it to the issue tracker.

> (For the record, I have "UnxUtils.zip" loaded, so I have a number of
> Unix/Linux utilities such as "od" available under Windows, and only the
> Windows Subversion executable ever writes into a Windows sandbox.)

Ok, this may be a very important detail. Can you first try to
reproduce this issue without the UnxUtils loaded?

Which client are you using actually (which distribution)? You aren't
using one from cygwin are you? There are known problems with the svn
client that comes with cygwin (don't know the details, but I think it
can be confused about its native eol-style, because it thinks it's
running on unix etc.).

Also, is this something new you're seeing only from 1.6.15? Can you
try reproducing with an older version, and try to find out when the
problem first appeared?

Cheers,
-- 
Johan


missing carriage returns from output of "svn diff" in Windows

2011-02-01 Thread David Chapman
Running Subversion 1.6.15 under Windows 7, if I redirect the output of 
"svn diff" to a file and then try to edit that file using Notepad, the 
line breaks are garbled.  In particular they have only the '\n' 
character, not the '\r' character.


For example, if "svn_usage_notes.txt" is in my repository, and I do the 
following in a sandbox:


echo foo >> svn_usage_notes.txt
echo bar >> svn_usage_notes.txt
echo zot >> svn_usage_notes.txt
svn diff svn_usage_notes.txt > wowow.txt
od -c wowow.txt

I get:

000   I   n   d   e   x   :   s   v   n   _   u   s   a   g   e
020   _   n   o   t   e   s   .   t   x   t  \r  \n   =   =   =   =
040   =   =   =   =   =   =   =   =   =   =   =   =   =   =   =   =
*
120   =   =   =   =   =   =   =   =   =   =   =   =   =   =   =  \r
140  \n   -   -   -   s   v   n   _   u   s   a   g   e   _   n
160   o   t   e   s   .   t   x   t  \t   (   r   e   v   i   s   i
200   o   n   1   1   1   6   )  \r  \n   +   +   +   s   v
220   n   _   u   s   a   g   e   _   n   o   t   e   s   .   t   x
240   t  \t   (   w   o   r   k   i   n   g   c   o   p   y   )
260  \r  \n   @   @   -   6   1   2   2   ,   3   +   6   1
300   2   2   ,   6   @   @  \r  \n  \n   M   a   r   k
320   P   h   i   p   p   a   r   d  \n   h   t   t   p   :
340   /   /   m   a   r   k   p   h   i   p   .   b   l   o   g   s
360   p   o   t   .   c   o   m   /  \n   +   f   o   o  \n   +
400   b   a   r  \n   +   z   o   t  \n
413

Note how the first part of the file has "\r\n" while the last part 
(showing the extra lines) has only '\n'.  The file itself has "\r\n" for 
every line, and I have the following line in 
C:\Users\David\AppData\Roaming\Subversion\config:


*.txt = svn:eol-style=native

The absence of newlines makes it impossible to view the differences file 
in Notepad.  Years ago before I knew about "unzip -a", I wrote a program 
to add carriage returns to text files being copied from Linux to Windows 
and so I can use that, but it would be nice to have system-appropriate 
line endings in the output of "svn diff" without this extra step.


Is anyone else seeing this?  Is there a configuration parameter I can 
set to fix it, or is it a bug that should be bumped to the dev list?


(For the record, I have "UnxUtils.zip" loaded, so I have a number of 
Unix/Linux utilities such as "od" available under Windows, and only the 
Windows Subversion executable ever writes into a Windows sandbox.)


Thanks.

--
David Chapman dcchap...@acm.org
Chapman Consulting -- San Jose, CA



unsubscribe

2011-02-01 Thread Lionel Varay
unsubscribe


RE: Copy with externals, then commit fails

2011-02-01 Thread Bob Archer
> I tried to create a new branch of a trunk that had some
> svn:externals definition.
> In particular, it pointed to a file.
> 
> I.e.
> /somewhere/a.txt@4 a.txt
> 
> I used
> svn copy svn://server/trunk branch
> And the output from that was the usual stuff including
> E  a.txt (indicating an externals file).
> 
> svn stat had the following output:
>  +X   a.txt
> Of course, the plus means "with history".
> 
> After this, I could not do a commit. The commit failed with a
> message:
> svn: File not found: revision 4, path '/trunk/a.txt'
> 
> My suspicion is that due to the fact that the file has history
> associated
> with it, the commit tries to commit a file that it shouldn't be
> committing.
> Besides, I didn't want to add a.txt to my branch, I still wanted it
> to come
> from the original externals definition. Is it a bug that svn copy
> adds
> history info to an external file?

File externals require that the file being pointed to is in the same working 
copy as the external of it. From the docs:

"While directory externals can place the external directory at any depth, and 
any missing intermediate directories will be created, file externals must be 
placed into a working copy that is already checked out."

BOb



Re: Checkout really slow in Windows with lots of files in one directory

2011-02-01 Thread Mark Phippard
On Wed, Jan 26, 2011 at 9:28 AM, Neil Bird  wrote:

>  We have a graphics-oriented code-base that's auto-generated and has >5000
> source files in one directory.  While I can check this out OK on Linux,
> we're seeing an unusable slow-down on Windows XP (NTFS), both using Tortoise
> directly, and as a test on Linux with the Windows drive mapped over CIFS.

I created a folder with 5001 files in it ... maybe that is not enough?
 I just used small simple text files as I was only checking for the
general problem in managing the temp files and the WC metadata.

Upon checkout (using 1.6.15 command line client) I did not notice any
slowdown.  Windows checked out via HTTP across internet in about 49
seconds as opposed to 33 from my Mac (which is a faster system).  The
main thing is checkout did not seem to slow down.

The bad news is that I tried it again with trunk.  Both Windows and
Mac were much slower and I was doing the tests because I thought it
would be much faster.  Windows time went up to 210 secs and OSX to
about 90 seconds.

In all cases, the performance seemed linear.  I did not see it start
to get slower.

-- 
Thanks

Mark Phippard
http://markphip.blogspot.com/


Re: Checkout really slow in Windows with lots of files in one directory

2011-02-01 Thread Neil Bird

Around about 01/02/11 15:36, Neil Bird typed ...

I've had no response from the email I sent him privately, so I may try that
myself, and maybe then raise a ticket (or whatever system they use) to ask
for the backport if it works.


  My bad, I just found Thunderbird has mis-threaded his reply.  He never 
tried it as they were using a workaround.


  I'll give it a bash myself, as our workaround is still sucking in 7+ minutes.

--
[neil@fnx ~]# rm -f .signature
[neil@fnx ~]# ls -l .signature
ls: .signature: No such file or directory
[neil@fnx ~]# exit


RE: externals behavior with tags

2011-02-01 Thread Bob Archer
> Thanks for the link. I knew the -rREV method was supported I just
> feel that doing that for every externally referenced file is a pain
> and one more thing to keep track of. Oh well.
> 
> Is there a way to search for all instances of an externally ref
> file in the entire repo? I think a "where used" type function is
> what im looking for.
> 

There is also a tool called svncopy that will peg the externals for you.

http://svn.apache.org/repos/asf/subversion/trunk/contrib/client-side/svncopy/svncopy.README

BOb


RE: externals behavior with tags

2011-02-01 Thread Bob Archer

> > Option 2 is supported, and in fact is the recommended method.
> >
> > See:
> > http://svnbook.red-bean.com/nightly/en/svn-
> book.html#svn.advanced.externals
> 
> And if you want the externals references on your trunk to float
> with the
> trunk of the referenced item during development, one approach is to
> always make an intermediate branch where you make these and any
> other
> needed changes before making the tag.

Or, just make the changes on your working copy and create the tag from your 
working copy.

BOb



RE: Merging in Subversion

2011-02-01 Thread Bob Archer
> > .  Is there any best way to merge files in SVN or you need to
> > incorporate any strong merging tool?
> 
> Text files are handled well by SVN's builtin merging capabilities.
> For other
> files, I don't know how to merge them. In practice, I consider
> anything
> non-textual as non-mergable, too. This means that merging requires
> manual aid
> (unless the base version of both branches is equal, in that case
> SVN does the
> job automatically) and that the "needs-lock" property is always
> set.

In our shop the policy is that if a fix is made in a version to a binary file, 
that same fix is applied to higher versions. This is usually an issue with 
reports since we use crystal the .rpt files are binary. It seems to work for us 
but may not work for others. If only every file could be textual... ;)

BOb



Re: Checkout really slow in Windows with lots of files in one directory

2011-02-01 Thread Neil Bird

Around about 28/01/11 04:32, Daniel Shahaf typed ...

(I don't recall why the fixes on trunk weren't backported, but I imagine
the threads linked from this thread say why.)


  The threads (that I've see) all peter out, with the last event being some 
saying a colleague was about to compile 1.6 with that fix backported to see 
if it helped.


  I've had no response from the email I sent him privately, so I may try 
that myself, and maybe then raise a ticket (or whatever system they use) to 
ask for the backport if it works.


  There may be a good reason it can't be done (there was a 'cleaner' way 
that couldn't have been done due to it being an API change, apparently, but 
this seems to be drop-in).


--
[neil@fnx ~]# rm -f .signature
[neil@fnx ~]# ls -l .signature
ls: .signature: No such file or directory
[neil@fnx ~]# exit


Re: Checkout really slow in Windows with lots of files in one directory

2011-02-01 Thread Neil Bird

Around about 27/01/11 12:51, Nico Kadel-Garcia typed ...

Are you *normally* out to a CIFS shared location, or to local NTFS
disk?


  Not ... as such.  No, this was particularly to test the client code/OS to 
try to pin things down for this issue.


--
[neil@fnx ~]# rm -f .signature
[neil@fnx ~]# ls -l .signature
ls: .signature: No such file or directory
[neil@fnx ~]# exit


Re: how do I add support for SSL

2011-02-01 Thread Nick Upson
On 1 February 2011 12:58, Ryan Schmidt  wrote:
> On Feb 1, 2011, at 06:10, Nick Upson wrote:
>
>> I have downloaded and compiled 1.6.15 on fedora 8, where 1.4.4-7 was
>> working fine (I need 1.6 for compatibity with other users)
>>
>> but when I do
>>
>> svn co https://x.y.z.1/... (my repo)
>>
>> I now get
>>
>> svn: SSL is not supported
>>
>> In case it's a configuration issue I'm using "./configure --with-ssl
>> --with-neon=/usr/local", then make and make install
>
> It's your HTTP library (neon or serf), not Subversion itself, that needs the 
> SSL support compiled in. Verify that neon has been compiled with SSL support.

I just recompiled neon using ./configure --with-ssl" but I still get
the same result


Re: how do I add support for SSL

2011-02-01 Thread Ryan Schmidt
On Feb 1, 2011, at 06:10, Nick Upson wrote:

> I have downloaded and compiled 1.6.15 on fedora 8, where 1.4.4-7 was
> working fine (I need 1.6 for compatibity with other users)
> 
> but when I do
> 
> svn co https://x.y.z.1/... (my repo)
> 
> I now get
> 
> svn: SSL is not supported
> 
> In case it's a configuration issue I'm using "./configure --with-ssl
> --with-neon=/usr/local", then make and make install

It's your HTTP library (neon or serf), not Subversion itself, that needs the 
SSL support compiled in. Verify that neon has been compiled with SSL support.




Re: how do I add support for SSL

2011-02-01 Thread Nick Upson
On 1 February 2011 12:34, Nico Kadel-Garcia  wrote:
> On Tue, Feb 1, 2011 at 7:10 AM, Nick Upson  wrote:
>> I have downloaded and compiled 1.6.15 on fedora 8, where 1.4.4-7 was
>> working fine (I need 1.6 for compatibity with other users)
>>
>> but when I do
>>
>> svn co https://x.y.z.1/... (my repo)
>>
>> I now get
>>
>> svn: SSL is not supported
>>
>> In case it's a configuration issue I'm using "./configure --with-ssl
>> --with-neon=/usr/local", then make and make install
>
> First: Fedora 8 is out of date and deprecated, update if you can.

I know , but this is for me to build packages to be install on fc8

> Second, you need to make sure that the openssl-devel packages are
> installed, so that the "include" files are available for compilation.

openssl-devel - 0.9.8b-17.fc8.i386 already installed

> Third, you might just save yourself the grief and install from the
> latest SRPM from Fedora 14, and that will at least tell you the
> dependencies.

I'd like to keep that as a last resort, so much has changed in fedora
between 8 & 14


Re: how do I add support for SSL

2011-02-01 Thread Nico Kadel-Garcia
On Tue, Feb 1, 2011 at 7:10 AM, Nick Upson  wrote:
> I have downloaded and compiled 1.6.15 on fedora 8, where 1.4.4-7 was
> working fine (I need 1.6 for compatibity with other users)
>
> but when I do
>
> svn co https://x.y.z.1/... (my repo)
>
> I now get
>
> svn: SSL is not supported
>
> In case it's a configuration issue I'm using "./configure --with-ssl
> --with-neon=/usr/local", then make and make install

First: Fedora 8 is out of date and deprecated, update if you can.

Second, you need to make sure that the openssl-devel packages are
installed, so that the "include" files are available for compilation.

Third, you might just save yourself the grief and install from the
latest SRPM from Fedora 14, and that will at least tell you the
dependencies.


how do I add support for SSL

2011-02-01 Thread Nick Upson
I have downloaded and compiled 1.6.15 on fedora 8, where 1.4.4-7 was
working fine (I need 1.6 for compatibity with other users)

but when I do

svn co https://x.y.z.1/... (my repo)

I now get

svn: SSL is not supported

In case it's a configuration issue I'm using "./configure --with-ssl
--with-neon=/usr/local", then make and make install


Re: one doubt on subversion

2011-02-01 Thread Ulrich Eckhardt
On Tuesday 01 February 2011, vani yadav wrote:
> Helo sir,

EHLO madam\r\n

> now i need GUI for subversion, so downloaded TortoiseSVN [...]
> D:\SVN\TortoiseSVN\ext\build\apr.build(25,4):
> File 'D:\SVN\TortoiseSVN\ext\apr\include\apr.hw' does not exist.

Try asking that in the TSVN users group, not here. SVN and TSVN are separate 
projects. Also, please don't top post in unrelated threads and pick a 
meaningful subject, it makes communication more efficient.

Cheers!

Uli


-- 
ML: http://subversion.apache.org/docs/community-guide/mailing-lists.html
FAQ: http://subversion.apache.org/faq.html
Docs: http://svnbook.red-bean.com/


**
Domino Laser GmbH, Fangdieckstraße 75a, 22547 Hamburg, Deutschland
Geschäftsführer: Thorsten Föcking, Amtsgericht Hamburg HR B62 932
**
Visit our website at 
**
Diese E-Mail einschließlich sämtlicher Anhänge ist nur für den Adressaten 
bestimmt und kann vertrauliche Informationen enthalten. Bitte benachrichtigen 
Sie den Absender umgehend, falls Sie nicht der beabsichtigte Empfänger sein 
sollten. Die E-Mail ist in diesem Fall zu löschen und darf weder gelesen, 
weitergeleitet, veröffentlicht oder anderweitig benutzt werden.
E-Mails können durch Dritte gelesen werden und Viren sowie nichtautorisierte 
Änderungen enthalten. Domino Laser GmbH ist für diese Folgen nicht 
verantwortlich.
**




Re: one doubt on subversion

2011-02-01 Thread vani yadav
Hello sir,

I want to build source TortoiseSVN because i want to customize TortoiseSVN.


On Tue, Feb 1, 2011 at 2:42 AM, vishwajeet singh wrote:

>
>
> On Tue, Feb 1, 2011 at 3:59 PM, vani yadav  wrote:
>
>> Helo sir,
>>
>> I need one help from you.
>>
>> I downloaded subversion-1.6.15 source, i compiled and installed it.
>>
>> now i need GUI for subversion, so downloaded TortoiseSVN  1.6.12 source.i
>> installed all the dependency package for TortoiseSVN.
>>
>> when i run the command "nant subversion", i get the following error
>>
>>
>> BUILD FAILED
>>
>> D:\SVN\TortoiseSVN\ext\build\apr.build(25,4):
>> File 'D:\SVN\TortoiseSVN\ext\apr\include\apr.hw'
>> does not exist.
>>
>> Like this i get error like missing libapr.rc, apr_version.h(all these
>> files are their in subversion) but how to link them.
>>
>> can you please help me
>>
>
> First of all why you need to build TortoiseSVN ?? Binaries are readily
> available on TortoiseSVN site
>
>>
>>
>> With Regards
>> Vani
>>
>>
>>
>>
>>
>>
>>
>> On Tue, Jan 25, 2011 at 1:46 AM, Volker Kopetzky  wrote:
>>
>>> Vani,
>>>
>>> subversion comes with a commandline client only.
>>> There are several Open Source and paid GUI clients out there.
>>> On Windows, I mostly use TortoiseSVN (open source)
>>> On OSX, I use Versions (paid).
>>> On Linux, I mostly use the CLI.
>>>
>>> For development, there's also several Eclipse and Visual Studio Plugins,
>>> for Eclipse I use subclipse and CollabNet Desktop.
>>>
>>> For more, please see
>>> http://en.wikipedia.org/wiki/Comparison_of_Subversion_clients
>>>
>>> Kind regards,
>>> Volker
>>>
>>> Am 25.01.2011 um 16:29 schrieb vani yadav:
>>>
>>> Hello sir,
>>>
>>> I downloaded subversion-1.6.15, i installed all the dependency package. i
>>> built berkeley, built apache then configured subversion and built
>>> subversion.
>>>
>>> after building subversion i Run the win-tests.py script to test
>>> Subversion.
>>>
>>> now all the binaries are created, if i run svn.exe
>>> (C:\SVN\src-trunk\Release\subversion\svn) from command line it works.
>>> I am able to see SVN commands on command line but not able to find svn
>>> GUI.
>>>
>>> My question is i am not able to make GUI up, so please let me know how to
>>> create subversion-setup.exe file.
>>>
>>>
>>> --
>>> Thanks and Regards
>>> Vani
>>>
>>>
>>
>>
>> --
>> Thanks and Regards
>> Vani
>>
>
>
>
> --
> Vishwajeet Singh
> +91-9657702154 | dextrou...@gmail.com | http://bootstraptoday.com
> Twitter: http://twitter.com/vishwajeets | LinkedIn:
> http://www.linkedin.com/in/singhvishwajeet
>



-- 
Thanks and Regards
Vani


Re: one doubt on subversion

2011-02-01 Thread vishwajeet singh
On Tue, Feb 1, 2011 at 3:59 PM, vani yadav  wrote:

> Helo sir,
>
> I need one help from you.
>
> I downloaded subversion-1.6.15 source, i compiled and installed it.
>
> now i need GUI for subversion, so downloaded TortoiseSVN  1.6.12 source.i
> installed all the dependency package for TortoiseSVN.
>
> when i run the command "nant subversion", i get the following error
>
>
> BUILD FAILED
>
> D:\SVN\TortoiseSVN\ext\build\apr.build(25,4):
> File 'D:\SVN\TortoiseSVN\ext\apr\include\apr.hw'
> does not exist.
>
> Like this i get error like missing libapr.rc, apr_version.h(all these files
> are their in subversion) but how to link them.
>
> can you please help me
>

First of all why you need to build TortoiseSVN ?? Binaries are readily
available on TortoiseSVN site

>
>
> With Regards
> Vani
>
>
>
>
>
>
>
> On Tue, Jan 25, 2011 at 1:46 AM, Volker Kopetzky  wrote:
>
>> Vani,
>>
>> subversion comes with a commandline client only.
>> There are several Open Source and paid GUI clients out there.
>> On Windows, I mostly use TortoiseSVN (open source)
>> On OSX, I use Versions (paid).
>> On Linux, I mostly use the CLI.
>>
>> For development, there's also several Eclipse and Visual Studio Plugins,
>> for Eclipse I use subclipse and CollabNet Desktop.
>>
>> For more, please see
>> http://en.wikipedia.org/wiki/Comparison_of_Subversion_clients
>>
>> Kind regards,
>> Volker
>>
>> Am 25.01.2011 um 16:29 schrieb vani yadav:
>>
>> Hello sir,
>>
>> I downloaded subversion-1.6.15, i installed all the dependency package. i
>> built berkeley, built apache then configured subversion and built
>> subversion.
>>
>> after building subversion i Run the win-tests.py script to test
>> Subversion.
>>
>> now all the binaries are created, if i run svn.exe
>> (C:\SVN\src-trunk\Release\subversion\svn) from command line it works.
>> I am able to see SVN commands on command line but not able to find svn
>> GUI.
>>
>> My question is i am not able to make GUI up, so please let me know how to
>> create subversion-setup.exe file.
>>
>>
>> --
>> Thanks and Regards
>> Vani
>>
>>
>
>
> --
> Thanks and Regards
> Vani
>



-- 
Vishwajeet Singh
+91-9657702154 | dextrou...@gmail.com | http://bootstraptoday.com
Twitter: http://twitter.com/vishwajeets | LinkedIn:
http://www.linkedin.com/in/singhvishwajeet


Re: one doubt on subversion

2011-02-01 Thread vani yadav
Helo sir,

I need one help from you.

I downloaded subversion-1.6.15 source, i compiled and installed it.

now i need GUI for subversion, so downloaded TortoiseSVN  1.6.12 source.i
installed all the dependency package for TortoiseSVN.

when i run the command "nant subversion", i get the following error


BUILD FAILED

D:\SVN\TortoiseSVN\ext\build\apr.build(25,4):
File 'D:\SVN\TortoiseSVN\ext\apr\include\apr.hw'
does not exist.

Like this i get error like missing libapr.rc, apr_version.h(all these files
are their in subversion) but how to link them.

can you please help me


With Regards
Vani






On Tue, Jan 25, 2011 at 1:46 AM, Volker Kopetzky  wrote:

> Vani,
>
> subversion comes with a commandline client only.
> There are several Open Source and paid GUI clients out there.
> On Windows, I mostly use TortoiseSVN (open source)
> On OSX, I use Versions (paid).
> On Linux, I mostly use the CLI.
>
> For development, there's also several Eclipse and Visual Studio Plugins,
> for Eclipse I use subclipse and CollabNet Desktop.
>
> For more, please see
> http://en.wikipedia.org/wiki/Comparison_of_Subversion_clients
>
> Kind regards,
> Volker
>
> Am 25.01.2011 um 16:29 schrieb vani yadav:
>
> Hello sir,
>
> I downloaded subversion-1.6.15, i installed all the dependency package. i
> built berkeley, built apache then configured subversion and built
> subversion.
>
> after building subversion i Run the win-tests.py script to test Subversion.
>
> now all the binaries are created, if i run svn.exe
> (C:\SVN\src-trunk\Release\subversion\svn) from command line it works.
> I am able to see SVN commands on command line but not able to find svn GUI.
>
> My question is i am not able to make GUI up, so please let me know how to
> create subversion-setup.exe file.
>
>
> --
> Thanks and Regards
> Vani
>
>


-- 
Thanks and Regards
Vani