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

RE: hook permissions, visualsvn, windows

From: Henry Hartley <henryhartley_at_westat.com>
Date: Thu, 9 Jun 2011 15:05:25 +0000

Lorenz wrote:
>> that doesn't look like a windows batch file to me.
>> You sure that runs from the windows command line?
>>
>> Doing so on win xp gives me errors about the "REPOS=$1" and
>> "REV=$2" lines. And the when I correct the syntax the call to svn
>> results in svn trying to update $REPOS (literally!) and
>> D:/Websites/wwwsite1
>>
>> Anyway, the syntax of the update command is:
>>
>> svn up <path to working copy>
>>
>>no repository url/path required/allowed.

I wondered about that but it worked on my old server and yes, it did run from the command line. It complained about the lines starting with # but ignored them. Looking more closely, it appears to have complained abou the REPOS=$1 line as well but ignored that, too. Finally, it seems to have ignored the "$REPOS" in the update command and updated the listed working copy.

I have now shortened the file to a single line:

"C:\Program Files (x86)\VisualSVN Server\bin\svn" up D:/websites/wwwsite1

That runs from the command line this time without any comments or warnings. So, that's good. It still doesn't run when I commit a change to the repository, though.

I did, though, get an error in the event log this time. It seems to be complaining about a username/password being unknown or incorrect. The user name displayed is my own. It's a network account that happens to be an administrator on the local machine. It occurs to me, however, that I installed VisualSVN without right-clicking and selecting "Run as Administrator." Should I have? Would that produce the problem I'm seeing?

-- 
Henry
Received on 2011-06-09 17:06:00 CEST

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