Subversion - Avoid Authentication for Public Repositories

2010-02-12 Thread Ramachandran, Vishwanath(IE10)
Hi there

 

For public (read-only to everyone repositories) such as example
http://myrepository.com/Public users still get prompted with an
authentication dialog., can we get rid of this, we have authenticated
our subversion with LDAP, if I remove the require valid -user entry
from subversion.conf, will it work

 

Please suggest

 

Regards

Vishwanath

Desk: +91 80 26588360 Extn: 48555

 

 



Re: Subversion - Avoid Authentication for Public Repositories

2010-02-12 Thread vishwajeet singh
you will also

On Fri, Feb 12, 2010 at 9:30 AM, Ramachandran, Vishwanath(IE10) 
vishwanath.ramachand...@honeywell.com wrote:

  Hi there



 For public (read-only to everyone repositories) such as example
 http://myrepository.com/Public users still get prompted with an
 authentication dialog., can we get rid of this, we have authenticated our
 subversion with LDAP, if I remove the “require valid –user” entry from
 subversion.conf, will it work


you will also have to remove all auth related settings like AuthType and
others; as far as I know just removing require valid-user will not work.


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


Re: Question about authz file syntax.

2010-02-12 Thread David Brodbeck

On Feb 12, 2010, at 1:27 AM, Johan Corveleyn wrote:

 On Fri, Feb 12, 2010 at 12:44 AM, David Brodbeck
 bro...@u.washington.edu wrote:
 Actually, I take that back, the manual says it's the *first* match:
 Another important fact is that the first matching rule is the one which 
 gets applied to a user.
 (http://svnbook.red-bean.com/nightly/en/svn.serverconfig.pathbasedauthz.html)
 
 
 This is actually incorrect. See this recent discussion on the dev mailinglist:
 http://svn.haxx.se/dev/archive-2010-01/0340.shtml
 
 The current documentation doesn't agree with how it actually behaves.
 The documentation will probably be fixed to describe the current
 behavior...
 
 I don't know if the behavior was different in 1.5 though.

Ah, OK.  So all the permission lines that apply to a user are ORed together?  
That would make sense, and wouldn't affect my setup because I'm explicitly 
naming all users who should have access and then blocking the rest with * =.

-- 

David Brodbeck
System Administrator, Linguistics
University of Washington






Maintaining large repositories

2010-02-12 Thread Justin Connell

Hi,
I have a repository that has been in use for well over a year and over 
this period the size on disk has grown to over 150 GB, I found that when 
running svnadmin dump, that the resulting dump file was at 46 GB on disk 
and then when loading the dump file into a new repository that the size 
on disk in the repository folder was 8 GB in total.


What's disturbing is the drop in disk usage from 150 -- 46 -- 8 Gig.

Does anyone have an explanation for this?

Or rather is there a better way of freeing up disk space back to the OS? 
(we are using FS and not Berkley DB storage)


Changing the native newline mode

2010-02-12 Thread Glenn Maynard
Is there any way to change the native newline mode for a particular
working copy?

I'm checking out code in Linux, over a CIFS mount to a Windows machine
where it's being used.  This is much easier for me than any of the
solutions involving Windows clients, but ends up with Unix line
endings, leading to newline headaches.

-- 
Glenn Maynard


RE: Changing the native newline mode

2010-02-12 Thread Bob Archer
 Is there any way to change the native newline mode for a particular
 working copy?
 
 I'm checking out code in Linux, over a CIFS mount to a Windows machine
 where it's being used.  This is much easier for me than any of the
 solutions involving Windows clients, but ends up with Unix line
 endings, leading to newline headaches.

This is pretty well explained in the documentation book. Read about the 
svn:eol-style property.

http://svnbook.red-bean.com/nightly/en/svn-book.html#svn.advanced.props.special.eol-style

BOb



Re: Changing the native newline mode

2010-02-12 Thread Ryan Schmidt

On Feb 12, 2010, at 16:05, Bob Archer wrote:

 Is there any way to change the native newline mode for a particular
 working copy?
 
 I'm checking out code in Linux, over a CIFS mount to a Windows machine
 where it's being used.  This is much easier for me than any of the
 solutions involving Windows clients, but ends up with Unix line
 endings, leading to newline headaches.
 
 This is pretty well explained in the documentation book. Read about the 
 svn:eol-style property.
 
 http://svnbook.red-bean.com/nightly/en/svn-book.html#svn.advanced.props.special.eol-style

Bob, I think Glenn's saying that he has set svn:eol-style to native, and he's 
checking out on a UNIX OS but he wants the eol-style of the files to be native 
to Windows, not UNIX.

Unfortunately, Glenn, I don't see a way to do that. svn export has an option 
for this, but svn checkout doesn't.

  --native-eol ARG : use a different EOL marker than the standard
 system marker for files with the svn:eol-style
 property set to 'native'.
 ARG may be one of 'LF', 'CR', 'CRLF'

I used to work at a company where we had the same workflow. We decided to never 
use svn:eol-style native. Instead, we set svn:eol-style to LF, and configured 
our Windows editors to know how to deal with such files.



RE: Changing the native newline mode

2010-02-12 Thread Bob Archer
 On Feb 12, 2010, at 16:05, Bob Archer wrote:
 
  Is there any way to change the native newline mode for a particular
  working copy?
 
  I'm checking out code in Linux, over a CIFS mount to a Windows machine
  where it's being used.  This is much easier for me than any of the
  solutions involving Windows clients, but ends up with Unix line
  endings, leading to newline headaches.
 
  This is pretty well explained in the documentation book. Read about the
 svn:eol-style property.
 
  http://svnbook.red-bean.com/nightly/en/svn-
 book.html#svn.advanced.props.special.eol-style
 
 Bob, I think Glenn's saying that he has set svn:eol-style to native, and
 he's checking out on a UNIX OS but he wants the eol-style of the files to
 be native to Windows, not UNIX.
 

Ah I see. Then wouldn't he just specify svn:eol-style CRLF? Assuming he only 
every edits with Windows tools.

Although I'm not sure why he wouldn't check out with a windows client. I'm not 
sure how connecting to a Linux machine to checkout to a folder mounted on a 
windows machine is easier than using the windows CLI.

BOb


Re: Changing the native newline mode

2010-02-12 Thread Glenn Maynard
On Fri, Feb 12, 2010 at 5:16 PM, Bob Archer bob.arc...@amsi.com wrote:
 Ah I see. Then wouldn't he just specify svn:eol-style CRLF? Assuming he only 
 every edits with Windows tools.

This isn't Windows-only code, and it's not code that only I'm
touching.  If someone's checking it out in Linux to compile in Linux
normally, then it should have Unix line endings as usual.

 Although I'm not sure why he wouldn't check out with a windows client. I'm 
 not sure how connecting to a Linux machine to checkout to a folder mounted on 
 a windows machine is easier than using the windows CLI.

It's easier because it's a fully configured CLI that I already have
running all the time, which does everything the way I want.  I don't
want to have to do half of my CLI work from a clumsy Cygwin window,
especially since I have working copies in both Linux and Windows that
I deal with simultaneously.


 Instead, we set svn:eol-style to LF, and configured our Windows editors to 
 know how to deal with such files.

Visual Studio just doesn't understand it.  It'll load them and do
basic editing fine, but copy/paste leads to mixed newlines.

-- 
Glenn Maynard


Re: Changing the native newline mode

2010-02-12 Thread Ryan Schmidt

On Feb 12, 2010, at 16:32, Glenn Maynard wrote:

 Although I'm not sure why he wouldn't check out with a windows client. I'm 
 not sure how connecting to a Linux machine to checkout to a folder mounted 
 on a windows machine is easier than using the windows CLI.
 
 It's easier because it's a fully configured CLI that I already have
 running all the time, which does everything the way I want.  I don't
 want to have to do half of my CLI work from a clumsy Cygwin window,
 especially since I have working copies in both Linux and Windows that
 I deal with simultaneously.

Actually, doesn't cygwin also consider the native eol-style to be LF? I think 
if you want CRLF line endings, you have to use a real Windows client, not 
cygwin.


Ryan Schmidt wrote:

 Instead, we set svn:eol-style to LF, and configured our Windows editors to 
 know how to deal with such files.
 
 Visual Studio just doesn't understand it.  It'll load them and do
 basic editing fine, but copy/paste leads to mixed newlines.

If you can't configure Visual Studio to understand LF line endings, and you 
cannot switch to an editor that understands LF line endings, then I agree you 
have a problem. I'm sorry, I don't have any more solutions.

I do remember that years ago when we configured UltraEdit to understand LF line 
endings, there were four separate settings / checkboxes / radio buttons that 
had to be set a particular way on several different settings screens. It was a 
nightmare because one of our committers would inevitably forget to set one of 
the options and begin messing up the line endings.



Re: Changing the native newline mode

2010-02-12 Thread Glenn Maynard
On Fri, Feb 12, 2010 at 6:23 PM, Bob Archer bob.arc...@amsi.com wrote:
 Use the native windows CLI. No clumsy Cygwin needed. But, to each his own.

What, CMD?  That's an order of magnitude worse than Cygwin.

 I would complain to MS about Studio mangling your line endings. Although my 
 understanding was it supported Unix style line endings.

If Microsoft fixed problems that were pointed out to them, my life
would be so much easier.  Unfortunately, I'd have as much luck yelling
my issues into the nearest sewer grate and hoping for help from a
ninja turtle...

-- 
Glenn Maynard


Re: Changing the native newline mode

2010-02-12 Thread Andrey Repin
Greetings, Glenn Maynard!

 Although I'm not sure why he wouldn't check out with a windows client. I'm 
 not sure how connecting to a Linux machine to checkout to a folder mounted 
 on a windows machine is easier than using the
 windows CLI.

 It's easier because it's a fully configured CLI that I already have
 running all the time, which does everything the way I want.  I don't
 want to have to do half of my CLI work from a clumsy Cygwin window,
 especially since I have working copies in both Linux and Windows that
 I deal with simultaneously.

Cygwin checkout will give you LF-only line endings, just like what you are
doing now.

 Instead, we set svn:eol-style to LF, and configured our Windows editors to
 know how to deal with such files. 

 Visual Studio just doesn't understand it.  It'll load them and do
 basic editing fine, but copy/paste leads to mixed newlines.

Use AnkhSVN for example. Or native Windows build of Subversion.


--
WBR,
 Andrey Repin (anrdae...@freemail.ru) 13.02.2010, 6:15

Sorry for my terrible english...



Re: Changing the native newline mode

2010-02-12 Thread Andrey Repin
Greetings, Glenn Maynard!

 Is there any way to change the native newline mode for a particular
 working copy?

 I'm checking out code in Linux, over a CIFS mount to a Windows machine
 where it's being used.  This is much easier for me than any of the
 solutions involving Windows clients, but ends up with Unix line
 endings, leading to newline headaches.

Don't do that. Check out it where it'll be used.


--
WBR,
 Andrey Repin (anrdae...@freemail.ru) 13.02.2010, 6:14

Sorry for my terrible english...



Re: Changing the native newline mode

2010-02-12 Thread Glenn Maynard
On Fri, Feb 12, 2010 at 10:15 PM, Andrey Repin anrdae...@freemail.ru wrote:
 Don't do that. Check out it where it'll be used.

Telling people don't do what you want to do; do what you don't want
instead is not helpful.

 First, CMD is quite powerful, if you know how to cook it.

It doesn't really matter how powerful it is.  I've had fifteen years
of practice to make me very efficient in Linux for commandline tasks.
That's the reason I have a Linux box next to my Windows one: so I can
use each for what they're good at.  I'd recompile svn with a manual
hack to change its notion of newlines before enduring CMD.

-- 
Glenn Maynard