Re: svn checkout - special characters in file name are not encoding properly

2010-08-12 Thread Csaba Raduly
On Wed, Aug 11, 2010 at 4:49 PM, Michael Pruemm  wrote:
> Vincent Lefevre wrote:
(snip)
>> Under these conditions, the only possibility is
>> to encode the filenames in UTF-8 anyway. So, why not enforcing
>> that?
>>
>
> But don't forget that different platforms may use different UTF-8 encodings
> for the same filename.

Huh? There's only one UTF-8 encoding for each Unicode code point. Are
you thinking of code pages?


-- 
Life is complex, with real and imaginary parts.
"Ok, it boots. Which means it must be bug-free and perfect. " -- Linus Torvalds
"People disagree with me. I just ignore them." -- Linus Torvalds


Re: svn checkout - special characters in file name are not encoding properly

2010-08-12 Thread Olivier Sannier

Csaba Raduly wrote:

On Wed, Aug 11, 2010 at 4:49 PM, Michael Pruemm  wrote:
   

Vincent Lefevre wrote:
 

(snip)
   

Under these conditions, the only possibility is
to encode the filenames in UTF-8 anyway. So, why not enforcing
that?

   

But don't forget that different platforms may use different UTF-8 encodings
for the same filename.
 

Huh? There's only one UTF-8 encoding for each Unicode code point. Are
you thinking of code pages?
   
I believe he is thinking of the way an accented character can be 
encoded: either its direct codepoint or diacritic + letter


This makes more bytes, but in the end, it's all valid UTF-8


Re: svn checkout - special characters in file name are not encoding properly

2010-08-12 Thread Vincent Lefevre
On 2010-08-12 09:59:30 +0200, Csaba Raduly wrote:
> On Wed, Aug 11, 2010 at 4:49 PM, Michael Pruemm  wrote:
> > Vincent Lefevre wrote:
> (snip)
> >> Under these conditions, the only possibility is
> >> to encode the filenames in UTF-8 anyway. So, why not enforcing
> >> that?
> >>
> >
> > But don't forget that different platforms may use different UTF-8 encodings
> > for the same filename.
> 
> Huh? There's only one UTF-8 encoding for each Unicode code point. Are
> you thinking of code pages?

Michael means that there are several ways to represent a "same"
string (from a semantic point of view). There are two normalized
representations: NFC and NFD. While Linux does not try to normalize
filenames (they are just viewed as a sequence of bytes[*]), Mac OS X
(at least with HFS+) requires that the filenames are valid UTF-8
strings (even in non-UTF-8 locales) and normalize them to NFD for
storing them on disk.

[*] The locale doesn't matter, and top-bit-set bytes are allowed and
can be handled even in ASCII-based locales.

-- 
Vincent Lefèvre  - Web: 
100% accessible validated (X)HTML - Blog: 
Work: CR INRIA - computer arithmetic / Arénaire project (LIP, ENS-Lyon)


Re: svn checkout - special characters in file name are not encoding properly

2010-08-12 Thread Michael Pruemm



Olivier Sannier wrote:

Csaba Raduly wrote:

On Wed, Aug 11, 2010 at 4:49 PM, Michael Pruemm  wrote:
But don't forget that different platforms may use different UTF-8 
encodings

for the same filename.
 

Huh? There's only one UTF-8 encoding for each Unicode code point. Are
you thinking of code pages?
   
I believe he is thinking of the way an accented character can be 
encoded: either its direct codepoint or diacritic + letter


This makes more bytes, but in the end, it's all valid UTF-8


Yes, exactly. The encoding differs, but the filename is the same.

- Michael


RE: Migrating from 32 to 64 bit

2010-08-12 Thread Jon Foster
Hi,
 
SVN decides if two repositories are "the same" by comparing their UUIDs.
You can get the Repository UUID from the old repository with "svn info",
and set it on the new repository with "svnadmin setuuid".
 
Kind regards,
 
Jon



From: Leszek Szarlej [mailto:leszek.szar...@gmail.com] 
Sent: 11 August 2010 18:56
To: Edward Ned Harvey; Leszek Szarlej; users@subversion.apache.org
Subject: Re: Migrating from 32 to 64 bit



Thank you for your answers. Currently I've setup svnsync and I am doing
test run of synchronizing repositories. I will have a small window to
migrate repositories. Using the svnsync gives me possibility to do major
job before the change window and then final sync during the change.

In this step I have some doubts whether users will have possibility to
relocate their local copies to new repository on new server. The first
step of sync procedure is to create fresh repository, I am afraid that
it will have different ID and svn will say "its not the same repository"


I will test it but you are welcome to give me your comments.

 

I have about 400 repositories to migrate. Svnsync showed about 60 -70
hours to sync all repos.

 

Thanks much

Leszek Szarlej



On 11 August 2010 15:50, Stefan Sperling  wrote:


On Wed, Aug 11, 2010 at 09:11:29AM -0400, Edward Ned Harvey
wrote:
> As far as subversion is concerned, as long as you get it
installed, there is
> nothing for you to think or care about.


It depends on the Subversion repository backend.

If the BerkeleyDB backend is used, a dump/load cycle is probably
necessery,
so just do it to be on the safe side.

With repositories using FSFS, there is nothing to worry about.

The file "db/fs-type" in a repository tells you which kind of
backend
the repository is using: "bdb" or "fsfs"

Stefan




__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__



**
This email and its attachments may be confidential and are intended solely for 
the use of the individual to whom it is addressed. Any views or opinions 
expressed are solely those of the author and do not necessarily represent those 
of Cabot Communications Ltd.

If you are not the intended recipient of this email and its attachments, you 
must take no action based upon them, nor must you copy or show them to anyone.

Cabot Communications Limited
Verona House, Filwood Road, Bristol BS16 3RY, UK
+44 (0) 1179584232

Co. Registered in England number 02817269

Please contact the sender if you believe you have received this email in error.

**


__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__

Re: What's the current status for subversion replication?

2010-08-12 Thread Ulrich Eckhardt
On Wednesday 11 August 2010, Ryan Schmidt wrote:
> you can set up a write-through proxy so that people who check out
> from a slave and try to commit will be transparently redirected to
> the master. 

How?

Uli

-- 
ML: http://subversion.tigris.org/mailing-list-guidelines.html
FAQ: http://subversion.tigris.org/faq.html
Docs: http://svnbook.red-bean.com/

Sator Laser GmbH, Fangdieckstraße 75a, 22547 Hamburg, Deutschland
Geschäftsführer: Thorsten Föcking, Amtsgericht Hamburg HR B62 932

**
Sator 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. Sator Laser GmbH ist für diese Folgen nicht 
verantwortlich.
**



RE: What's the current status for subversion replication?

2010-08-12 Thread Jon Foster

Ulrich Eckhardt wrote:
> On Wednesday 11 August 2010, Ryan Schmidt wrote:
> > you can set up a write-through proxy so that people who check out
> > from a slave and try to commit will be transparently redirected to
> > the master. 
>
> How?

It's described in the book:

http://svnbook.red-bean.com/nightly/en/svn.serverconfig.httpd.html#svn.s
erverconfig.httpd.extra.writethruproxy

Kind regards,

Jon


**
This email and its attachments may be confidential and are intended solely for 
the use of the individual to whom it is addressed. Any views or opinions 
expressed are solely those of the author and do not necessarily represent those 
of Cabot Communications Ltd.

If you are not the intended recipient of this email and its attachments, you 
must take no action based upon them, nor must you copy or show them to anyone.

Cabot Communications Limited
Verona House, Filwood Road, Bristol BS16 3RY, UK
+44 (0) 1179584232

Co. Registered in England number 02817269

Please contact the sender if you believe you have received this email in error.

**


__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__


Eric Cordon/FR/EUROPE/GROUP is out of the office.

2010-08-12 Thread eric . cordon


Je serai absent(e) à partir du  08/08/2010 de retour le 09/01/2010.

I will be out of the office
I am off, picking up e-mails only occasionnally
For all important issues please reach directly:
For Synapse : Patrice Canchon
For OPTIME : Optime Dev Eu (Raphael Glaizaud- Chant Mouradian)
For Fibex : Fibex Dev EU (Damien Delvallée - Eric Michaux)
For Dolce project : Guillaume Langeac
For Hercule Project : Eric De la Tullaye
For Fortis EQD Brokerage intergation : Eric De la Tullaye
For all other important issues : Werner Kloberdanz




This message and any attachments (the "message") is
intended solely for the addressees and is confidential. 
If you receive this message in error, please delete it and 
immediately notify the sender. Any use not in accord with 
its purpose, any dissemination or disclosure, either whole 
or partial, is prohibited except formal approval. The internet
can not guarantee the integrity of this message. 
BNP PARIBAS (and its subsidiaries) shall (will) not 
therefore be liable for the message if modified. 
Do not print this message unless it is necessary,
consider the environment.

-

Ce message et toutes les pieces jointes (ci-apres le 
"message") sont etablis a l'intention exclusive de ses 
destinataires et sont confidentiels. Si vous recevez ce 
message par erreur, merci de le detruire et d'en avertir 
immediatement l'expediteur. Toute utilisation de ce 
message non conforme a sa destination, toute diffusion 
ou toute publication, totale ou partielle, est interdite, sauf 
autorisation expresse. L'internet ne permettant pas 
d'assurer l'integrite de ce message, BNP PARIBAS (et ses
filiales) decline(nt) toute responsabilite au titre de ce 
message, dans l'hypothese ou il aurait ete modifie.
N'imprimez ce message que si necessaire,
pensez a l'environnement.


Re: What's the current status for subversion replication?

2010-08-12 Thread Ulrich Eckhardt
On Thursday 12 August 2010, you wrote:
> Ulrich Eckhardt wrote:
> > On Wednesday 11 August 2010, Ryan Schmidt wrote:
> > > you can set up a write-through proxy so that people who check out
> > > from a slave and try to commit will be transparently redirected to
> > > the master.
> >
> > How?
>
> It's described in the book:
>
> http://svnbook.red-bean.com/nightly/en/svn.serverconfig.httpd.html#svn.s
> erverconfig.httpd.extra.writethruproxy

Ah, thanks. I read the whole chapter on setting up svnsync, but it only 
said "never write to the mirror". In particular, it didn't mention that you 
could set up a write proxy if you are using Apache to serve the repository.

Uli

-- 
ML: http://subversion.tigris.org/mailing-list-guidelines.html
FAQ: http://subversion.tigris.org/faq.html
Docs: http://svnbook.red-bean.com/

Sator Laser GmbH, Fangdieckstraße 75a, 22547 Hamburg, Deutschland
Geschäftsführer: Thorsten Föcking, Amtsgericht Hamburg HR B62 932

**
Sator 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. Sator Laser GmbH ist für diese Folgen nicht 
verantwortlich.
**



svn:keywords settings make file different?

2010-08-12 Thread netvampire.tw
I set properties svn:keywords HeadURL,Id yesterday. I can't compile my 
C++ source code today. 
I got LNK 1106,1248 errors.I tried to find out what happened and I use 
WinMerge to compare the 3party Lib, 
I found 
1.They are different lib I can see the binary is the same but content 
different with HeadURL 
2.If I rollback to setting properties before revision,I can compile 
success. 
I wonder to know,that svn:keywords will break the file? Is there 
anyone face to the same problems? 
thanks for help. 
Best regards,
Edwin






Re: Migrating from 32 to 64 bit

2010-08-12 Thread Leszek Szarlej
Thanks Jon, no more to add , this is what I needed.


On 12 August 2010 10:30, Jon Foster  wrote:

>  Hi,
>
> SVN decides if two repositories are "the same" by comparing their UUIDs.
> You can get the Repository UUID from the old repository with "svn info", and
> set it on the new repository with "svnadmin setuuid".
>
> Kind regards,
>
> Jon
>
>  --
>  *From:* Leszek Szarlej [mailto:leszek.szar...@gmail.com]
> *Sent:* 11 August 2010 18:56
> *To:* Edward Ned Harvey; Leszek Szarlej; users@subversion.apache.org
> *Subject:* Re: Migrating from 32 to 64 bit
>
>Thank you for your answers. Currently I've setup svnsync and I am doing
> test run of synchronizing repositories. I will have a small window to
> migrate repositories. Using the svnsync gives me possibility to do major job
> before the change window and then final sync during the change.
>
> In this step I have some doubts whether users will have possibility to
> relocate their local copies to new repository on new server. The first step
> of sync procedure is to create fresh repository, I am afraid that it will
> have different ID and svn will say “its not the same repository”
>
> I will test it but you are welcome to give me your comments.
>
>
>
> I have about 400 repositories to migrate. Svnsync showed about 60 -70 hours
> to sync all repos.
>
>
>
> Thanks much
>
> Leszek Szarlej
>
>
> On 11 August 2010 15:50, Stefan Sperling  wrote:
>
>> On Wed, Aug 11, 2010 at 09:11:29AM -0400, Edward Ned Harvey wrote:
>> > As far as subversion is concerned, as long as you get it installed,
>> there is
>> > nothing for you to think or care about.
>>
>> It depends on the Subversion repository backend.
>>
>> If the BerkeleyDB backend is used, a dump/load cycle is probably
>> necessery,
>> so just do it to be on the safe side.
>>
>> With repositories using FSFS, there is nothing to worry about.
>>
>> The file "db/fs-type" in a repository tells you which kind of backend
>> the repository is using: "bdb" or "fsfs"
>>
>> Stefan
>>
>
>
> __
> This email has been scanned by the MessageLabs Email Security System.
> For more information please visit http://www.messagelabs.com/email
> __
>
>
> **
> This email and its attachments may be confidential and are intended solely
> for the use of the individual to whom it is addressed. Any views or opinions
> expressed are solely those of the author and do not necessarily represent
> those of Cabot Communications Ltd.
>
> If you are not the intended recipient of this email and its attachments,
> you must take no action based upon them, nor must you copy or show them to
> anyone.
>
> Cabot Communications Limited
> Verona House, Filwood Road, Bristol BS16 3RY, UK
> +44 (0) 1179584232
>
> Co. Registered in England number 02817269
>
> Please contact the sender if you believe you have received this email in
> error.
>
> **
>
> __
> This email has been scanned by the MessageLabs Email Security System.
> For more information please visit http://www.messagelabs.com/email
> __
>


Re: How to build GNOME Keyring for Subversion

2010-08-12 Thread Yudong Sun

Hi Giulio,

Did you build the GNOME Keyring support from source? How did you do that?

Thanks,

Yudong

Giulio Troccoli wrote, On 09/08/2010 13:44:



Linedata Limited
Registered Office: 85 Gracechurch St., London, EC3V 0AA
Registered in England and Wales No 3475006 VAT Reg No 710 3140 03

-Original Message-



From: Yudong Sun [mailto:yud...@nag.co.uk]
Sent: 09 August 2010 13:29
To: users@subversion.apache.org
Subject: How to build GNOME Keyring for Subversion

Hi,

I am trying to build Subversion 1.6.12 with GNOME Keyring
support. I have tried GNOME Keyring 2.30.3 downloaded from
http://linux.softpedia.com/get/Utilities/gnome-keyring-13111.shtml
The configure and make of this GNOME Keyring version have
been done with two pkg-config files created: gcr-0.pc and
gp11-0.pc but no gnome-keyring-1.pc generated.

I have also tried to install GNOME Keyring 2.28.2 downloaded
from
http://www.linuxfromscratch.org/blfs/view/svn/gnome/gnome-keyring.html
This version has an endless list of dependencies:

GNOME Keyring 2.28.2:  GConf-2.28.0, GTK+-2.18.7,
intltool-0.40.6, Libgcrypt-1.4.5, and libtasn1-2.5

GConf-2.28.0:  ORBit2-2.14.17 and polkit-0.94

polkit-0.94:  D-Bus GObject Bindings-0.5, intltool-0.40.6,
Linux-PAM-1.1.1, gobject-introspection-0.6.8, and DocBook XML DTD-4.5

... ...

That looks terrifying. I am almost giving up midway

I'd like to know your experience on building subversion with
GNOME Keyring. Which GNOME Keyring version works well with
svn 1.6.12 and is there an easier way to do it? Your advice
will be much appreciated.


You don't say which flavour of Linux, but if you have a package manager, like 
yum or apt-get for example, it's much easier as they take care of all the 
dependencies.

Having said that, I personally had a hell of a time (and gave up for the time 
being) to unlock the keyring upon login. Once the keyring is unlocked the 
everything is fine, but I can't seem to be able to avoid entering the keyring 
password.

Giulio


This e-mail has been scanned for all viruses by Star.





The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.

This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs. 



Re: svn:keywords settings make file different?

2010-08-12 Thread Ulrich Eckhardt
On Thursday 12 August 2010, netvampire.tw wrote:
> I set properties svn:keywords HeadURL,Id yesterday. I can't compile my
> C++ source code today.

Check out both sources and compare. Also, you can suppress keyword expansion 
while checking out, I believe.

> I got LNK 1106,1248 errors.

Not everybody knows what LNK 1106 and LNK 1248 are and I'm too lazy to look 
them up.

> I tried to find out what happened and I use WinMerge to compare the
> 3party Lib

Wait. Did you actually set the svn:keywords property on the .LIB file or only 
on the textual source files? I don't think that setting it on non-text files 
is a good idea.

> I found 
> 1.They are different lib I can see the binary is the same but content
> different with HeadURL

This doesn't make sense. What is the same as what, and what differs from what?

> 2.If I rollback to setting properties before revision,I can compile
> success.
> I wonder to know,that svn:keywords will break the file? Is there
> anyone face to the same problems?

Keyword replacement changes the file in a well-specified way. Whether the 
result then causes it to become invalid in some context is a different issue, 
which you should have considered before setting that property.

Uli

-- 
ML: http://subversion.tigris.org/mailing-list-guidelines.html
FAQ: http://subversion.tigris.org/faq.html
Docs: http://svnbook.red-bean.com/

Sator Laser GmbH, Fangdieckstraße 75a, 22547 Hamburg, Deutschland
Geschäftsführer: Thorsten Föcking, Amtsgericht Hamburg HR B62 932

**
Sator 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. Sator Laser GmbH ist für diese Folgen nicht 
verantwortlich.
**



RE: How to build GNOME Keyring for Subversion

2010-08-12 Thread Giulio Troccoli
>


Linedata Limited
Registered Office: 85 Gracechurch St., London, EC3V 0AA
Registered in England and Wales No 3475006 VAT Reg No 710 3140 03

-Original Message-


> From: Yudong Sun [mailto:yud...@nag.co.uk]
> Sent: 12 August 2010 12:12
> To: Giulio Troccoli
> Subject: Re: How to build GNOME Keyring for Subversion
>
> Giulio,
>
> But how did you build GNOME Keyring from source? Which
> version of G-K did you use? I'm trying to build G-K 2.28.2
> which has so many dependencies, very discouraging to continue.
>

Ah, but that's not what you asked :-)

No, I didn't build it from source, I used the CentOS package manager, yum.

Oh and please stop top-posting

Giulio


trunk listed in svn:mergeinfo in trunk

2010-08-12 Thread Jeremy Mordkoff
Why would trunk be listed in the svn:mergeinfo in trunk? We've been
using mergeinfo's for a while now. Could this be the result of merging
out (from trunk to a project branch) and then back? 

Can this safely be deleted? I'm trying to clean up our mergeinfo's
because they exist in too many directories and they contain references
to literally 2 dozen branches that are long retired and I think they're
slowing down my merges which now take almost 5 minutes each.

jlm

please cc me as I'm still off list




Update deleted local changes after rollback

2010-08-12 Thread erlend olsen

Hi all, me and my colleague have lost big changes in our code...
here's a quick summary:


repository has these files:
xyz
A: commits changes to all the files and adds 2 new files 
repository now has these files:
pqxyz
B: Sees that these changes f**ks up the whole program and he rollbacks to only 
x,y,z
A: keeps his changes locally and keeps changing them until they work...
B: commits new code.
A: is happy because now everything works on his local copy. Then he pushes 
'update' in netbeans before he commits.
SVN: now deletes all of A's  changes and new files.. 
A: screams in terror and tries to get back his files... but not a chance... He 
can get the changes he committed before the rollback, but the real big changes 
are now deleted


Is there a way to undo this update? Or to save us the next time, is there a way 
to take a local backup before updating???Please help we're desperate here... 
Its about 1 week of programming down the toilet...

Erlend Olsen

  

another mergeinfo question

2010-08-12 Thread Jeremy Mordkoff
I have two instances of mergeinfos in the root of my tree showing a
wider range of changes merged in than a merge info in a subdirectory.
Does svn merge these merge infos together? 

Example

Mergeinfo in /zcode/trunk   shows that
/zcode/branches/rel_2:1124-1406   was merged
Mergeinfo in /zcode/trunk/lcast shows that
/zcode/branches/rel_2/lcast:1124-1388 was merged

So was 1389-1406 merged in the lcast directory or not? 

No, I don't know how I got into this state. I wish I had caught this
sooner, but rel_2 has been dormant for a while. I suppose I could look
at the history of the property.

I'm on list now

JLM



Jeremy Mordkoff
Director, QA, IT & Release
ZeeVee, Inc.
One Monarch Drive | Littleton, MA 01460
Office: 978.467.1395 x233 | Fax: 978.467.1404
Mobile: 978-257-2183
j...@zeevee.com 
www.zeevee.com 




RE: Update deleted local changes after rollback

2010-08-12 Thread Giulio Troccoli






Linedata Limited
Registered Office: 85 Gracechurch St., London, EC3V 0AA
Registered in England and Wales No 3475006 VAT Reg No 710 3140 03





From: erlend olsen [mailto:eolse...@hotmail.com]
Sent: 12 August 2010 13:53
To: users@subversion.apache.org
Subject: Update deleted local changes after rollback


Hi all, me and my colleague have lost big changes in our code...

here's a quick summary:



repository has these files:

x
y
z

A: commits changes to all the files and adds 2 new files

repository now has these files:

p
q
x
y
z

B: Sees that these changes f**ks up the whole program and he rollbacks 
to only x,y,z

A: keeps his changes locally and keeps changing them until they work...

B: commits new code.

A: is happy because now everything works on his local copy. Then he 
pushes 'update' in netbeans before he commits.

SVN: now deletes all of A's  changes and new files..

A: screams in terror and tries to get back his files... but not a 
chance... He can get the changes he committed before the rollback, but the real 
big changes are now deleted



Is there a way to undo this update? Or to save us the next time, is 
there a way to take a local backup before updating???
Please help we're desperate here... Its about 1 week of programming 
down the toilet...


Erlend Olsen



How exactly did he "rollback to only x,y,z"?

Please, do not post in HTML.

Giulio


RE: another mergeinfo question

2010-08-12 Thread Bob Archer
> I have two instances of mergeinfos in the root of my tree showing a
> wider range of changes merged in than a merge info in a
> subdirectory.
> Does svn merge these merge infos together?
> 
> Example
> 
> Mergeinfo in /zcode/trunk   shows that
> /zcode/branches/rel_2:1124-1406   was merged
> Mergeinfo in /zcode/trunk/lcast shows that
> /zcode/branches/rel_2/lcast:1124-1388 was merged
> 
> So was 1389-1406 merged in the lcast directory or not?
> 

Well, from my amateur understanding if the merge into /zcode/trunk/lcast was 
done before the merge into /zcode/trunk/lcast when the top level merge was done 
the mergeinfo on /zcode/trunk/lcast should have been elided. My only guess is 
that the person that did the top level merge reverted the property change to 
the /zcode/trunk/lcast folder since they figured there was no change in that 
folder. 

Once again, from my understanding you can remove that merge info from 
/zcode/trunk/lcast because it is included in the /zcode/trunk folder. 

YMMV... check your logs and I expect you will see that the merge for 1124-1406 
into /trunk did not include a change to /trunk/lcast to elide the property... 
which it should of. Also, you might want to setup a test scenerio of this by 
dumping your repo or just create a similar situation in a test repo.

Also, you might want to train your people to not merge from project sub-folders 
to prevent child-node/file mergeinfo.

BOb



RE: trunk listed in svn:mergeinfo in trunk

2010-08-12 Thread Bob Archer
> Why would trunk be listed in the svn:mergeinfo in trunk? We've been
> using mergeinfo's for a while now. Could this be the result of
> merging
> out (from trunk to a project branch) and then back?

I don't think so... but you could test it. Do you have a test repo?

Is it possible at some point in time you just decided to make some branch into 
trunk by deleting trunk and then copying a branch to trunk? If you did that it 
may explain the mergeinfo.

 
> Can this safely be deleted? I'm trying to clean up our mergeinfo's
> because they exist in too many directories and they contain
> references
> to literally 2 dozen branches that are long retired and I think
> they're
> slowing down my merges which now take almost 5 minutes each.

I don't see why you would need to keep this data... it seems non-sensical to 
have mergeino on the trunk that shows merges from trunk.

BOb


Question about performance on large repository?

2010-08-12 Thread kj . quinn
We have a single repository which contains multiple projects (as opposed 
to have different repositories each representing a single project) that 
has been worked on over a considerable amount of time totalling probably 
well over 50 gb (code + binaries).  In this scenario, how is the overall 
performance of SVN operations affected (i.e. update, switch, checkout, 
etc.)?

Thanks.

KJQ

How to avoid the .svn while preparing rpm packages?

2010-08-12 Thread See
How to avoid the .svn  directories while preparing rpm packages?
When I am trying to do rpmbuild ,it is also taking all the .svn
directores recursively ,Which I don't want to see in the rpm packages
since we send to clients. I tried with %exclude but did not work. Do
any one has this problem?

Thanks in Advance,


Re: Update deleted local changes after rollback

2010-08-12 Thread Ulrich Eckhardt
On Thursday 12 August 2010, erlend olsen wrote:
> repository has these files:
> xyz
> A: commits changes to all the files and adds 2 new files
> repository now has these files:
> pqxyz
> B: Sees that these changes f**ks up the whole program and he rollbacks to
> only x,y,z

I guess he reverse-merge the according revision or manually reverted the 
changes. It shouldn't matter.

> A: keeps his changes locally and keeps changing them until they 
> work...

Both A and B should have first talked with each other. A would then have 
created a branch probably.

> B: commits new code. 
> A: is happy because now everything works on his local copy. Then he pushes
> 'update' in netbeans before he commits. SVN: now deletes all of A's 
> changes and new files..

I don't think so, as SVN tries very hard to preserve any user changes. If a 
file was deleted in the repository, SVN won't delete a local copy of a file 
if that contains modifications. If a file was modified, and those changes 
conflict with local changes, SVN will notify the user of this and attempt at 
resolving the conflict, but it first moves all three versions to separate 
files.

> A: screams in terror and tries to get back his files... but not a chance...
> He can get the changes he committed before the rollback, but the real big
> changes are now deleted

As I mentioned, SVN preserves those changes unless explicitly asked to throw 
them away (some "--force" options on the commandline). I don't know what 
netbeans' update button does. Also, if there are conflicts (I'm sure SVN 
would have complained), you can always choose "resolve using theirs", which 
implies that your own changes are discarded. If your colleague chose that, 
it's a user error.

> Its about 1 week of programming down the toilet...

Going one week without proper version control, without being able to backstep 
any changes, without the benefits of a centralised backup system, without 
updating the own WCs to see if changes conflict? Don't do that.

Note that if you had created a branch, you could have done these extensive 
changes in separation but still with version control etc, you should learn 
that. However, it still remains to find out what steps exactly lead to this 
data loss.

Sorry!

Uli

-- 
ML: http://subversion.tigris.org/mailing-list-guidelines.html
FAQ: http://subversion.tigris.org/faq.html
Docs: http://svnbook.red-bean.com/

Sator Laser GmbH, Fangdieckstraße 75a, 22547 Hamburg, Deutschland
Geschäftsführer: Thorsten Föcking, Amtsgericht Hamburg HR B62 932

**
Sator 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. Sator Laser GmbH ist für diese Folgen nicht 
verantwortlich.
**



Re: svn checkout - special characters in file name are not encoding properly

2010-08-12 Thread Stefan Sperling
On Thu, Aug 12, 2010 at 02:30:50AM +0200, Vincent Lefevre wrote:
> On 2010-08-11 19:56:28 +0200, Stefan Sperling wrote:
> > On Wed, Aug 11, 2010 at 04:29:56PM +0200, Vincent Lefevre wrote:
> > > You're forcing the user to use a UTF-8 locale. Unacceptable.
> > 
> > No, we leave users a choice.
> 
> The choice doesn't work.

It doesn't work for your twisted requirement of having a program
running in the C locale use UTF-8. Otherwise it works fine.
 
> > I consider your idea of forcing UTF-8 filenames on everybody unacceptable.
> 
> No, this is not *my* idea. Please read the thread again. I proposed to
> leave the choice by storing the charset chosen by the user in the .svn
> directory (or whatever mean following future WC formats). But you
> didn't want this solution.

It's not a solution because storing the information in wc meta-data
does not fix anything. What is Subversion supposed to do with filenames
that come down from the repository during an update, but cannot be
represented in the recorded charset? Using UTF-8 instead of the recorded
charset is out of the question. That leaves erroring out as the only
option. So how is that different from the current situation?

There is a clearly defined way of letting Subversion know which
charset to use. Set the locale. If you have to, set Subversion's locale
to something other than what locale your terminal uses.

~/bin/mysvn:
 #!/bin/sh
 evn LC_CTYPE="en_US." svn update

Stefan


RE: How to avoid the .svn while preparing rpm packages?

2010-08-12 Thread Bob Archer
> How to avoid the .svn  directories while preparing rpm packages?
> When I am trying to do rpmbuild ,it is also taking all the .svn
> directores recursively ,Which I don't want to see in the rpm
> packages
> since we send to clients. I tried with %exclude but did not work.
> Do
> any one has this problem?

You should probably export your working copy to a new folder and build your 
package from that. An export does not include the .svn folders.

BOb



RE: How to avoid the .svn while preparing rpm packages?

2010-08-12 Thread Luke Imhoff
On Thu, 2010-08-12 at 10:23 -0500, Bob Archer wrote:
> > How to avoid the .svn  directories while preparing rpm packages?
> > When I am trying to do rpmbuild ,it is also taking all the .svn
> > directores recursively ,Which I don't want to see in the rpm
> > packages
> > since we send to clients. I tried with %exclude but did not work.
> > Do
> > any one has this problem?
> 
> You should probably export your working copy to a new folder and build your 
> package from that. An export does not include the .svn folders.
> 
> BOb
> 

How are you preparing rpm packages?  I have a tool svndownstream that we
use to package up workareas or export revisions from a URL into a
tarball and loose files that can be used in OBS (which uses rpmbuild at
the lower levels).  It may be useful for you.

http://www.gitorious.org/cray-obs/svndownstream

It is smart enough to understand which files haven't been added to
Subversion yet or have been deleted, so it's useful for developers doing
test builds before checkins and it will ignore all the ? status derived
files.

svndownstream config -i obs .spec
svndownstream update ~/obs

If you want just the Subversion to Tarball bit that's in
http://www.gitorious.org/cray-obs/svndownstream/blobs/master/svndownstream/subversion.py

There's also support for injecting svn info, like the URL or revision
into files that rpmbuild can use.



svn crashed

2010-08-12 Thread Andrey Starodubtsev

 Hi, all!

tried to reverse merge part of my working copy:
svn merge -r 26832:26831 .

C:\>svn --version
svn, version 1.6.12 (SlikSvn/1.6.12) WIN32
   compiled Jun 22 2010, 20:45:29

Copyright (C) 2000-2009 CollabNet.
Subversion is open source software, see http://subversion.tigris.org/
This product includes software developed by CollabNet 
(http://www.Collab.Net/).


The following repository access (RA) modules are available:

* ra_neon : Module for accessing a repository via WebDAV protocol using 
Neon.

  - handles 'http' scheme
  - handles 'https' scheme
* ra_svn : Module for accessing a repository using the svn network protocol.
  - with Cyrus SASL authentication
  - handles 'svn' scheme
* ra_local : Module for accessing a repository on local disk.
  - handles 'file' scheme
* ra_serf : Module for accessing a repository via WebDAV protocol using 
serf.

  - handles 'http' scheme
  - handles 'https' scheme

crash log attached

--
WBR, Andrey Starodubtsevmailto:andrey.starodubt...@gmail.com


Process info:
Cmd line: "C:\Program Files\SlikSvn\bin\svn.EXE" merge -r 26832:26831 .
Version:  1.6.12 (SlikSvn/1.6.12) WIN32, compiled Jun 22 2010, 20:45:23
Platform: Windows OS version 5.1 build 2600 Service Pack 3

Exception: ACCESS_VIOLATION

Registers:
eax=0001 ebx=00ed9548 ecx=00495cb9 edx=01058300 esi= edi=0008
eip=00356ab6 esp=0012f9dc ebp=00356a87 efl=00010202
cs=001b  ss=0023  ds=0023  es=0023  fs=003b  gs=

Stacktrace:
#1  0x00356ab6 in apr_palloc ()
#2  0x07788d57 in (unknown function)


Loaded modules:
0x0040  C:\Program Files\SlikSvn\bin\svn.exe (1.6.12.38263, 163840 bytes)
0x7c90  C:\WINDOWS\system32\ntdll.dll (5.1.2600.5755, 729088 bytes)
0x7c80  C:\WINDOWS\system32\kernel32.dll (5.1.2600.5781, 1007616 bytes)
0x6eec  C:\Program Files\SlikSvn\bin\SlikSvn-libintl-win32.dll (0.0.0.0, 
49152 bytes)
0x7852  
C:\WINDOWS\WinSxS\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.30729.4148_x-ww_d495ac4e\msvcr90.dll
 (9.0.30729.4148, 667648 bytes)
0x0035  C:\Program Files\SlikSvn\bin\SlikSvn-libapr-1.dll (1.3.12.0, 131072 
bytes)
0x71ab  C:\WINDOWS\system32\ws2_32.dll (5.1.2600.5512, 94208 bytes)
0x77dd  C:\WINDOWS\system32\advapi32.dll (5.1.2600.5755, 634880 bytes)
0x77e7  C:\WINDOWS\system32\rpcrt4.dll (5.1.2600.5795, 598016 bytes)
0x77fe  C:\WINDOWS\system32\secur32.dll (5.1.2600.5834, 69632 bytes)
0x77c1  C:\WINDOWS\system32\msvcrt.dll (7.0.2600.5512, 360448 bytes)
0x71aa  C:\WINDOWS\system32\ws2help.dll (5.1.2600.5512, 32768 bytes)
0x71a5  C:\WINDOWS\system32\mswsock.dll (5.1.2600.5625, 258048 bytes)
0x1000  C:\Program Files\SlikSvn\bin\SlikSvn-svn_client-1.dll 
(1.6.12.38263, 184320 bytes)
0x6ee6  C:\Program Files\SlikSvn\bin\SlikSvn-libaprutil-1.dll (1.3.9.0, 
176128 bytes)
0x003a  C:\Program Files\SlikSvn\bin\SlikSvn-svn_delta-1.dll (1.6.12.38263, 
90112 bytes)
0x0043  C:\Program Files\SlikSvn\bin\SlikSvn-svn_subr-1.dll (1.6.12.38263, 
585728 bytes)
0x7c9c  C:\WINDOWS\system32\shell32.dll (6.0.2900.6018, 8482816 bytes)
0x77f1  C:\WINDOWS\system32\gdi32.dll (5.1.2600.5698, 299008 bytes)
0x7e41  C:\WINDOWS\system32\user32.dll (5.1.2600.5512, 593920 bytes)
0x77f6  C:\WINDOWS\system32\shlwapi.dll (6.0.2900.5912, 483328 bytes)
0x774e  C:\WINDOWS\system32\ole32.dll (5.1.2600.5512, 1298432 bytes)
0x77a8  C:\WINDOWS\system32\crypt32.dll (5.131.2600.5512, 610304 bytes)
0x77b2  C:\WINDOWS\system32\msasn1.dll (5.1.2600.5875, 73728 bytes)
0x003e  C:\Program Files\SlikSvn\bin\SlikSvn-svn_diff-1.dll (1.6.12.38263, 
53248 bytes)
0x004c  C:\Program Files\SlikSvn\bin\SlikSvn-svn_ra-1.dll (1.6.12.38263, 
430080 bytes)
0x0054  C:\Program Files\SlikSvn\bin\SlikSvn-svn_repos-1.dll (1.6.12.38263, 
135168 bytes)
0x0058  C:\Program Files\SlikSvn\bin\SlikSvn-svn_fs-1.dll (1.6.12.38263, 
208896 bytes)
0x1300  C:\Program Files\SlikSvn\bin\SlikSvn-DB44-20-win32.dll (4.0.4.20, 
757760 bytes)
0x7848  
C:\WINDOWS\WinSxS\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.30729.4148_x-ww_d495ac4e\msvcp90.dll
 (9.0.30729.4148, 581632 bytes)
0x005e  C:\Program Files\SlikSvn\bin\SlikSvn-LIBEAY32.dll (1.0.0.1, 1200128 
bytes)
0x0072  C:\Program Files\SlikSvn\bin\SlikSvn-SSLEAY32.dll (1.0.0.1, 249856 
bytes)
0x0077  C:\Program Files\SlikSvn\bin\SlikSvn-Sasl21-23-win32.dll (2.1.23.0, 
139264 bytes)
0x007b  C:\Program Files\SlikSvn\bin\SlikSvn-svn_wc-1.dll (1.6.12.38263, 
192512 bytes)
0x7639  C:\WINDOWS\system32\imm32.dll (5.1.2600.5512, 118784 bytes)
0x00da  C:\WINDOWS\system32\guard32.dll (3.14.64351.586, 172032 bytes)
0x77c0  C:\WINDOWS\system32\version.dll (5.1.2600.5512, 32768 bytes)
0x4ffe  C:\WINDOWS\system32\fltlib.dll (5.1.2600.5512, 32768 bytes)
0x773d  
C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.5512_x-ww_35d4ce83\comctl32.dll
 (6.0.2900.5512, 1060864 bytes)
0x5d09  C:\WINDOWS\system32\comctl32.dll (5.82.2900.5512, 630

Can't connect to the host 'hostname':

2010-08-12 Thread Andre Guilherme Soares e Silva
Please,
I have svnserve running as a service.
It starts automatically with a repository.

I can use the command "svn list svn://localhost", this runs very well, but
when i tried to do this from another pc ("svn list svn://mycomputer"), i got
the following error (it's translated because my subversion is in portuguese
language): "cannot connect to the host 'mycomputer': No connection could be
done because the target machine actively refused it"

I'm not behind a firewall in both machines.
Can someone help me, please?
Thanks!


RE: Can't connect to the host 'hostname':

2010-08-12 Thread Bob Archer
> Please,
> I have svnserve running as a service.
> It starts automatically with a repository.
> 
> I can use the command "svn list svn://localhost", this runs very
> well, but when i tried to do this from another pc ("svn list
> svn://mycomputer"), i got the following error (it's translated
> because my subversion is in portuguese language): "cannot connect
> to the host 'mycomputer': No connection could be done because the
> target machine actively refused it"
> 
> I'm not behind a firewall in both machines.
> Can someone help me, please?
> Thanks!

Have you tried using the ip address? 

BOb



Re: Can't connect to the host 'hostname':

2010-08-12 Thread Andy Levy
On Thu, Aug 12, 2010 at 15:02, Andre Guilherme Soares e Silva
 wrote:
> Please,
> I have svnserve running as a service.
> It starts automatically with a repository.
>
> I can use the command "svn list svn://localhost", this runs very well, but
> when i tried to do this from another pc ("svn list svn://mycomputer"), i got
> the following error (it's translated because my subversion is in portuguese
> language): "cannot connect to the host 'mycomputer': No connection could be
> done because the target machine actively refused it"
>
> I'm not behind a firewall in both machines.
> Can someone help me, please?

Does your computer have a valid entry in your network's DNS?


Re: How to build GNOME Keyring for Subversion

2010-08-12 Thread Daniel Shahaf
Giulio Troccoli wrote on Thu, Aug 12, 2010 at 12:14:10 +0100:
> Oh and please stop top-posting

In other words, Giulio is requesting you to put your text *below* the text
of the message you are responding to, per list convention.


Re: Setting multiple properties with on command

2010-08-12 Thread Daniel Shahaf
Pathy Kongo wrote on Wed, Aug 11, 2010 at 18:22:31 +0200:
> Hello,
> 
> I develop a web-based application that send command to a subversion Server
> using the Subversion command line client *svn*
> I create several files and use the *svn propset* command to add properties
> on files. There is a lot of properties (almost 15 by file), so it takes a
> lot of time.
> 

svn commit --with-revprop=foo=bar --with-revprop=foo2=bar2 

> My question is : how can set several properties on a file using only one
> command ? ie svn propset prop1 val1 prop2 val2 *file*
> 
> Thank you in advance.
> 
> Best regards,
> 
> Pathy


Re: svn checkout - special characters in file name are not encoding properly

2010-08-12 Thread Vincent Lefevre
On 2010-08-12 17:16:37 +0200, Stefan Sperling wrote:
> On Thu, Aug 12, 2010 at 02:30:50AM +0200, Vincent Lefevre wrote:
> > On 2010-08-11 19:56:28 +0200, Stefan Sperling wrote:
> > > On Wed, Aug 11, 2010 at 04:29:56PM +0200, Vincent Lefevre wrote:
> > > > You're forcing the user to use a UTF-8 locale. Unacceptable.
> > > 
> > > No, we leave users a choice.
> > 
> > The choice doesn't work.
> 
> It doesn't work for your twisted requirement of having a program
> running in the C locale use UTF-8. Otherwise it works fine.

Many programs are able to use UTF-8 in a C locale, such as programs
that handle XML or any file format based on UTF-8.

Also, if Subversion needs a UTF-8 locale for handle UTF-8 data, why
wouldn't there be an option to do that?

> > No, this is not *my* idea. Please read the thread again. I proposed to
> > leave the choice by storing the charset chosen by the user in the .svn
> > directory (or whatever mean following future WC formats). But you
> > didn't want this solution.
> 
> It's not a solution because storing the information in wc meta-data
> does not fix anything. What is Subversion supposed to do with filenames
> that come down from the repository during an update, but cannot be
> represented in the recorded charset?

Throw an error. But if the user has chosen UTF-8 as the recorded
charset, this won't happen.

> Using UTF-8 instead of the recorded charset is out of the question.
> That leaves erroring out as the only option. So how is that
> different from the current situation?

With the current situation, a "svn up" run under the non-UTF-8 locale
will either fail or corrupt the working copy if some filenames have
non-ASCII characters. With UTF-8 recorded as the encoding for
filenames, "svn up" will always work. See the difference?

> There is a clearly defined way of letting Subversion know which
> charset to use. Set the locale. If you have to, set Subversion's
> locale to something other than what locale your terminal uses.
> 
> ~/bin/mysvn:
>  #!/bin/sh
>  evn LC_CTYPE="en_US." svn update

Wrong, wrong, wrong! Security hole!

-- 
Vincent Lefèvre  - Web: 
100% accessible validated (X)HTML - Blog: 
Work: CR INRIA - computer arithmetic / Arénaire project (LIP, ENS-Lyon)


Re: Setting multiple properties with on command

2010-08-12 Thread Daniel Shahaf
Pathy Kongo wrote on Wed, Aug 11, 2010 at 18:22:31 +0200:
> Hello,
> 
> I develop a web-based application that send command to a subversion Server
> using the Subversion command line client *svn*
> I create several files and use the *svn propset* command to add properties
> on files. There is a lot of properties (almost 15 by file), so it takes a
> lot of time.
> 

Err, ignore my previous response, it wasn't to the question you asked.

But why does it take a long time?  You can do

svn add file
svn ps p1 v1 file
svn ps p2 v2 file
svn ps p3 v3 file
svn ci file

and only the last line is done over the network.

> My question is : how can set several properties on a file using only one
> command ? ie svn propset prop1 val1 prop2 val2 *file*
> 
> Thank you in advance.
> 
> Best regards,
> 
> Pathy


Re: svn:keywords settings make file different?

2010-08-12 Thread netvampire.tw
I knew I should set keywords properties on text file only.
I thought the properties would not apply to binary file so I apply the setting 
on the root folder.
If it couldn't tell binary or text file,I should find out thousands files which 
is binary or text,isn't it?
thanks for reply
Best regards,
Edwin





Re: svn:keywords settings make file different?

2010-08-12 Thread Ryan Schmidt

On Aug 12, 2010, at 21:47, netvampire.tw wrote:

> I knew I should set keywords properties on text file only.
> I thought the properties would not apply to binary file so I apply the 
> setting 
> on the root folder.
> If it couldn't tell binary or text file,I should find out thousands files 
> which 
> is binary or text,isn't it?

Properties will be successfully applied to any file you tell Subversion to 
apply them to. Setting properties on binary files will most likely corrupt 
them, as you've seen. Therefore do not instruct Subversion to set properties on 
binary files.




Re: svn:keywords settings make file different?

2010-08-12 Thread Ryan Schmidt
On Aug 12, 2010, at 22:00, Ryan Schmidt wrote:

> On Aug 12, 2010, at 21:47, netvampire.tw wrote:
> 
>> I knew I should set keywords properties on text file only.
>> I thought the properties would not apply to binary file so I apply the 
>> setting 
>> on the root folder.
>> If it couldn't tell binary or text file,I should find out thousands files 
>> which 
>> is binary or text,isn't it?
> 
> Properties will be successfully applied to any file you tell Subversion to 
> apply them to. Setting properties on binary files will most likely corrupt 
> them, as you've seen. Therefore do not instruct Subversion to set properties 
> on binary files.

Um, in all of the above I mean the svn:keywords property specifically, and the 
svn:eol-style property; setting other properties on binary files should be fine.






Re: svn:keywords settings make file different?

2010-08-12 Thread Daniel Shahaf
Ryan Schmidt wrote on Thu, Aug 12, 2010 at 22:00:25 -0500:
> On Aug 12, 2010, at 21:47, netvampire.tw wrote:
> > I knew I should set keywords properties on text file only.
> > I thought the properties would not apply to binary file so I apply the 
> > setting 
> > on the root folder.
> 
> Properties will be successfully applied to any file you tell Subversion to 
> apply them to.

This isn't unreasonable, I think:

0:% $svn add iota2
A  (bin)  iota2
0:% $svn ps svn:keywords Id iota2
property 'svn:keywords' set on 'iota2'
0:% $svn pl -v iota2
Properties on 'iota2':
  svn:mime-type
application/octet-stream
  svn:keywords
Id

We might want to require a --force for such a propset to be allowed.

Thoughts?


Re: svn checkout - special characters in file name are not encoding properly

2010-08-12 Thread Alexander Skwar
Hi.

2010/8/13 Vincent Lefevre 
>
> On 2010-08-12 17:16:37 +0200, Stefan Sperling wrote:

> > ~/bin/mysvn:
> >  #!/bin/sh
> >  env LC_CTYPE="en_US." svn update
>
> Wrong, wrong, wrong! Security hole!

No, not wrong, but totally correct - especially, if you need to parse the
output in some script, you (kinda) MUST set the locale to some value,
that you know. Leaving it in a undefined state is no good at all.

Alexander
--
↯    Lifestream (Twitter, Blog, …) ↣ http://alexs77.soup.io/     ↯
↯ Chat (Jabber/Google Talk) ↣ a.sk...@gmail.com , AIM: alexws77  ↯


Re: svn:keywords settings make file different?

2010-08-12 Thread netvampire.tw
It is never too late to mend.Next time I would tell others do not apply 
svn:keywords on binaries files.
But is it possible skip binary files setting properties to prevent corrupt 
binary file? :P Just thought
Thanks you.
best regards,