[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: SVN command line and Cygwin problem (and resolution) on Windows - FYI

From: Mark Bohlman <mbohlman_at_tcicredit.com>
Date: 2004-06-30 15:51:25 CEST

Mark Bohlman wrote:
> Max Bowsher wrote:
>
>> Mark Bohlman wrote:
>>
>>> All,
>>>
>>> Recently I modified the my startup batch file for cygwin on WinXP
>>> including setting the CYGWIN environment variable to 'tty' as
>>> recommended for emacs usage. This has an unpleasant side effect of
>>> hiding the password prompt for a new repository (or if you blow away the
>>> credential auth files under %APPDATA%/Subversion/auth). Without the
>>> auth files from the command line you are prompted for the password (I'm
>>> using domain authentication with the sspi options in my httpd.conf
>>> file).
>>>
>>> So a command line like:
>>> $ svn ls http://server/repos
>>>
>>> results in output like:
>>> Authentication realm: <http://a_server:80>my text blurb here
>>>
>>> Hitting return shows the password prompt one time along with an
>>> additional message and a username prompt as in:
>>> Password for 'fred':
>>> Authentication realm: <http://a_server:80>my text blurb here
>>> Username:
>>>
>>>
>>> You can enter a new username, but nothing ever comes back. Ctrl-C gets
>>> you out of this. Drove me nuts for a bit (ok, so that's a short trip)
>>> until I remembered making that change to my Cygwin environment.
>>
>>
>>
>> Yes, if you are using a *native Windows* subversion. If you use a
>> *Cygwin* subversion, you won't have this problem (and, as an extra
>> bonus, a Cygwin subversion will understand Cygwin unix-style paths).
>>
>> Max.
>
>
> Thanks Max - this works like a charm! Glad that Subversion is part of
> the Cygwin installs. I just hadn't gotten round to updating since the
> announcement.
>
> -- Mark

Max,

    Looks like I was a bit premature in being happy about the cygwin
version. Initial testing with the following file:/// access command did
not work.

$ svn ls file:///ap
svn: Unable to open an ra_local session to URL
svn: Unable to open repository 'file:///ap'

The native Windows build does work still:
$ ./svn ls file:///ap
t3/
test/
xml/

Note that this was a repository that was built with the native Windows
version of code.

Building a repository with the Cygwin version of svnadmin generates the
following error message when trying to access it with the native Windows
svn command:
$ svnadmin create /ap1
#import some files

$ svn ls file:///ap1
t3/
test/
xml/

# in the Windows version (e.g. Program Files/Subversion/bin/)
$ ./svn ls file:///ap1
svn: Unable to open an ra_local session to URL
svn: Unable to open repository 'file:///ap1'
svn: Berkeley DB error while opening environment for filesystem /ap1/db:
Invalid argument

So it looks like the modes of code being used cannot be mixed. Have
other errors accessing via http:// that I'm not able to chase further at
the moment.

-- Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Jun 30 15:54:17 2004

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.