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

RE: Very Odd Behaviour of svn update from command line. Bug?

From: Roger Lipscombe <rogerl_at_1e.com>
Date: Mon, 7 Jul 2008 17:05:43 +0100

The 'svn update' runs under the context of the Apache user, and requires that it be able to access the repository.

On Windows, this is the LocalSystem account (by default). Depending on how you've got your authentication and authorization set up (I use mod_auth_sspi, for example), LocalSystem may not be able to access the repository to complete the 'svn update'.

To confirm this, pipe the output from svn update to another file, so you can see if it's reporting any errors.

"svn update > foo 2>&1" ought to work.

This doesn't affect "svn info", since (the way you're using it) it only accesses the working copy.

Cheers,
Roger.

-----Original Message-----
From: HAcland [mailto:hughacland_at_googlemail.com]
Sent: Mon 07 July 2008 16:12
To: users_at_subversion.tigris.org
Subject: Very Odd Behaviour of svn update from command line. Bug?

I am using:

MS Windows 2003,
SVN-win32-1.4.6,
Apache/2.2.6 (Win32) DAV/2 SVN/1.4.5 mod_ssl/2.2.6 OpenSSL/0.9.8g,

It appears as though there is some kind of an issue with running 'svn
update' on a working copy from a 'post-commit.bat'. Here's what happens:

Scenario 1:

post-commit.bat:
D:
cd D:\***\***\workingCopy\
PATH C:\Program Files\subversion\svn-win32-1.4.6\bin\;
svn update
mkdir demoDirToProveAPoint
svn info > infofile.txt

C:
end

Run post-commit.bat from command line directly. No problem at all. Works
fine and updates the working directory. Also a new directory is correctly
created called 'demoDirToProveAPoint' and the svn info is correctly piped to
a file called infofile.txt

All great and life is happy when running directly from command line.

Scenario 2:

with exactly the same post-commit.bat

however this time from a remote computer, using Tortoise, a commit is made
after modifying a file. One would expect the svn hook to kick in at the
desired time and automatically to run 'post-commit.bat' in exactly the same
way as if it was run from the command line directly.

The result is that the 'mkdir demoDirToMakeAPoint' and 'svn info >
infofile.txt' work correctly but the 'svn update' fails to action.

What is going on here? Looks like a weird bug. Any one help me out?

thanks
Hugh

--
View this message in context: http://www.nabble.com/Very-Odd-Behaviour-of-svn-update-from-command-line.-Bug--tp18319051p18319051.html
Sent from the Subversion Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
DISCLAIMER: This is a PRIVATE message. If you are not the intended recipient, please delete without copying and kindly advise us by e-mail of the mistake in delivery. NOTE: Regardless of content, this e-mail shall not operate to bind 1E Ltd to any order or other contract unless pursuant to explicit written agreement or government initiative expressly permitting the use of e-mail for such purpose
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-07-07 18:06:10 CEST

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.