You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by fida aljounaidi <fi...@gmail.com> on 2009/05/18 18:46:53 UTC

Re: svnsync: --sync-password doesnt accept the special charactert '$'?

hi
thanks for your answer.
But now, i have the error password Mismatch.

Also i have another problem. After the commit, i have this error
message in the client console :

svn: Échec de la requête MERGE sur '/svn/project/branches/test'
svn: MERGE de '/svn//project/branches/tes': 200 OK (http://svn.project.example).

where svn.project.example is the source svn server.








On 18/05/2009, Stefan Sperling <st...@elego.de> wrote:
> On Mon, May 18, 2009 at 07:23:57PM +0200, fida aljounaidi wrote:
>>    Hello
>>    I'm tryingA  to automate the "svnsync sync" command after every commit.
>>    On the post-commit script i put the command line :
>>    svnsync sync http://server.subversion/svn-mirror --sync-username
>>    syncusername --sync-password $syncpass (the sync password contain the
>>    character '$').
>>
>>    This doesnt work. In fact, i have this error on the client console:
>>    post-commit hook failed (exit code 1) with output:
>>    svnsync: missing argument: --sync-password
>>
>
> On the command line, you need to put words that start with $ in quotes:
> 	--sync-password '$syncpass'
>
> Otherwise the shell tries to expand the variable "syncpass".
> It expands to an empty string if the variable is not defined.
>
> Stefan
>

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2302436

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].


Re: svnsync: --sync-password doesnt accept the special charactert '$'?

Posted by Andy Levy <an...@gmail.com>.
On Mon, May 18, 2009 at 15:11, fida aljounaidi
<fi...@gmail.com> wrote:
>
> Also
>
> When i manually execute the svnsync sync manually, it works.
>
> So i's a problem in post commit script

Hook scripts execute in an empty environment. If your post-commit hook
doesn't set a PATH variable which includes the path to svnsync, you
need to specify the full path to the svnsync binary.

> 2009/5/18 fida aljounaidi <fi...@gmail.com>
>>
>> Now, i succeded to do a commit without post-commit error (i still have the
>> merge problem (resolved after doing svn up)). But the replication dpesnt
>> work.
>> i don't know why. i can't see any error message on both mirror and source
>> server .
>>
>> Do u have any idea about that?
>>
>> Thank u
>>
>>
>>
>>
>> 2009/5/18 fida aljounaidi <fi...@gmail.com>
>>>
>>> hi
>>> thanks for your answer.
>>> But now, i have the error password Mismatch.
>>>
>>> Also i have another problem. After the commit, i have this error
>>> message in the client console :
>>>
>>> svn: Échec de la requête MERGE sur '/svn/project/branches/test'
>>> svn: MERGE de '/svn//project/branches/tes': 200 OK
>>> (http://svn.project.example).
>>>
>>> where svn.project.example is the source svn server.
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> On 18/05/2009, Stefan Sperling <st...@elego.de> wrote:
>>> > On Mon, May 18, 2009 at 07:23:57PM +0200, fida aljounaidi wrote:
>>> >>    Hello
>>> >>    I'm tryingA  to automate the "svnsync sync" command after every
>>> >> commit.
>>> >>    On the post-commit script i put the command line :
>>> >>    svnsync sync http://server.subversion/svn-mirror --sync-username
>>> >>    syncusername --sync-password $syncpass (the sync password contain
>>> >> the
>>> >>    character '$').
>>> >>
>>> >>    This doesnt work. In fact, i have this error on the client console:
>>> >>    post-commit hook failed (exit code 1) with output:
>>> >>    svnsync: missing argument: --sync-password
>>> >>
>>> >
>>> > On the command line, you need to put words that start with $ in quotes:
>>> >       --sync-password '$syncpass'
>>> >
>>> > Otherwise the shell tries to expand the variable "syncpass".
>>> > It expands to an empty string if the variable is not defined.
>>> >
>>> > Stefan
>>> >
>>
>
>

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2302698

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].


Re: svnsync: --sync-password doesnt accept the special charactert '$'?

Posted by fida aljounaidi <fi...@gmail.com>.
Also

When i manually execute the svnsync sync manually, it works.

So i's a problem in post commit script




2009/5/18 fida aljounaidi <fi...@gmail.com>

> Now, i succeded to do a commit without post-commit error (i still have the
> merge problem (resolved after doing svn up)). But the replication dpesnt
> work.
> i don't know why. i can't see any error message on both mirror and source
> server .
>
> Do u have any idea about that?
>
> Thank u
>
>
>
>
> 2009/5/18 fida aljounaidi <fi...@gmail.com>
>
> hi
>> thanks for your answer.
>> But now, i have the error password Mismatch.
>>
>> Also i have another problem. After the commit, i have this error
>> message in the client console :
>>
>> svn: Échec de la requête MERGE sur '/svn/project/branches/test'
>> svn: MERGE de '/svn//project/branches/tes': 200 OK (
>> http://svn.project.example).
>>
>> where svn.project.example is the source svn server.
>>
>>
>>
>>
>>
>>
>>
>>
>> On 18/05/2009, Stefan Sperling <st...@elego.de> wrote:
>> > On Mon, May 18, 2009 at 07:23:57PM +0200, fida aljounaidi wrote:
>> >>    Hello
>> >>    I'm tryingA  to automate the "svnsync sync" command after every
>> commit.
>> >>    On the post-commit script i put the command line :
>> >>    svnsync sync http://server.subversion/svn-mirror --sync-username
>> >>    syncusername --sync-password $syncpass (the sync password contain
>> the
>> >>    character '$').
>> >>
>> >>    This doesnt work. In fact, i have this error on the client console:
>> >>    post-commit hook failed (exit code 1) with output:
>> >>    svnsync: missing argument: --sync-password
>> >>
>> >
>> > On the command line, you need to put words that start with $ in quotes:
>> >       --sync-password '$syncpass'
>> >
>> > Otherwise the shell tries to expand the variable "syncpass".
>> > It expands to an empty string if the variable is not defined.
>> >
>> > Stefan
>> >
>>
>
>

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2302596

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

Re: svnsync: --sync-password doesnt accept the special charactert '$'?

Posted by fida aljounaidi <fi...@gmail.com>.
Now, i succeded to do a commit without post-commit error (i still have the
merge problem (resolved after doing svn up)). But the replication dpesnt
work.
i don't know why. i can't see any error message on both mirror and source
server .

Do u have any idea about that?

Thank u




2009/5/18 fida aljounaidi <fi...@gmail.com>

> hi
> thanks for your answer.
> But now, i have the error password Mismatch.
>
> Also i have another problem. After the commit, i have this error
> message in the client console :
>
> svn: Échec de la requête MERGE sur '/svn/project/branches/test'
> svn: MERGE de '/svn//project/branches/tes': 200 OK (
> http://svn.project.example).
>
> where svn.project.example is the source svn server.
>
>
>
>
>
>
>
>
> On 18/05/2009, Stefan Sperling <st...@elego.de> wrote:
> > On Mon, May 18, 2009 at 07:23:57PM +0200, fida aljounaidi wrote:
> >>    Hello
> >>    I'm tryingA  to automate the "svnsync sync" command after every
> commit.
> >>    On the post-commit script i put the command line :
> >>    svnsync sync http://server.subversion/svn-mirror --sync-username
> >>    syncusername --sync-password $syncpass (the sync password contain the
> >>    character '$').
> >>
> >>    This doesnt work. In fact, i have this error on the client console:
> >>    post-commit hook failed (exit code 1) with output:
> >>    svnsync: missing argument: --sync-password
> >>
> >
> > On the command line, you need to put words that start with $ in quotes:
> >       --sync-password '$syncpass'
> >
> > Otherwise the shell tries to expand the variable "syncpass".
> > It expands to an empty string if the variable is not defined.
> >
> > Stefan
> >
>

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2302588

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].