Return-Path: X-Original-To: apmail-subversion-users-archive@minotaur.apache.org Delivered-To: apmail-subversion-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DCB35D4B9 for ; Wed, 1 Aug 2012 06:08:49 +0000 (UTC) Received: (qmail 4236 invoked by uid 500); 1 Aug 2012 06:08:49 -0000 Delivered-To: apmail-subversion-users-archive@subversion.apache.org Received: (qmail 4144 invoked by uid 500); 1 Aug 2012 06:08:48 -0000 Mailing-List: contact users-help@subversion.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@subversion.apache.org Received: (qmail 4119 invoked by uid 99); 1 Aug 2012 06:08:47 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Aug 2012 06:08:47 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of honeylyn@menue.com designates 209.85.213.43 as permitted sender) Received: from [209.85.213.43] (HELO mail-yw0-f43.google.com) (209.85.213.43) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Aug 2012 06:08:42 +0000 Received: by yhl10 with SMTP id 10so12723320yhl.16 for ; Tue, 31 Jul 2012 23:08:21 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-originating-ip:in-reply-to:references:date :message-id:subject:from:to:cc:content-type:x-gm-message-state; bh=fQ18fmb5u/0lYFuhMpMZet/yuTJa9x9Q2kcw7lhoO0g=; b=QpZI04IB3/+d767zl0pSmpDIXLqbCjb7Sx5RaeCZhv8GtRQ/GgiTFpVs+VsSmsmpxH fK0dO8SP3n2YkjQmbJShalwGqa5mcnnEjAhQSvLVF/2jysji6jDr1Gk10388aKuX/3zT DMCpxJl7vifSRqUXQXzAeLNa/Uyu2DKMh228h9SrpeqCnOmxLvU8cXifgLp8P5X1JlFJ C0yJqN2/0vISnXqlGjJJcfO1ogwTnYQnx3jxTVEvk6FtK3q3nBuEIuvmMsS23jYMuHSv gaDgdlhIYTQ2/DBTwEQIPENQ6Y3ByTD2GEVNf4yIxxlwVwvH4X1twj0b/w8cW7FsUppg iF2A== MIME-Version: 1.0 Received: by 10.50.94.166 with SMTP id dd6mr4282606igb.11.1343801301259; Tue, 31 Jul 2012 23:08:21 -0700 (PDT) Received: by 10.64.39.207 with HTTP; Tue, 31 Jul 2012 23:08:21 -0700 (PDT) X-Originating-IP: [122.52.15.35] In-Reply-To: References: Date: Wed, 1 Aug 2012 14:08:21 +0800 Message-ID: Subject: Re: SVNSYNC Error From: "Honeylyn O. Fukuoka" To: vishwajeet singh Cc: users@subversion.apache.org Content-Type: multipart/alternative; boundary=e89a8f23548535d56204c62e1faa X-Gm-Message-State: ALoCoQmMapmATVS8cFbXSsZxtwNbkg8Ah9OeZabjUvUhL2vDdA/SPTfrFY+Yin6Lf7Pn5TIzlI1J X-Virus-Checked: Checked by ClamAV on apache.org --e89a8f23548535d56204c62e1faa Content-Type: text/plain; charset=ISO-8859-1 Hi, Did I do it wrong? On Wed, Aug 1, 2012 at 1:43 PM, Honeylyn O. Fukuoka wrote: > Yes, I changed the pre-revprop-change hook of the destination of the > mirrored repo then saved it as pre-revprop-change.bat > > > On Wed, Aug 1, 2012 at 1:39 PM, vishwajeet singh wrote: > >> On Wed, Aug 1, 2012 at 11:07 AM, Honeylyn O. Fukuoka >> wrote: >> > svnsync: E165006: Repository has not been eabled to accept revision >> prop >> > changes; ask the administrator to create a pre-revprop-change hook. >> >> I hope you are changing pre-revprop-change hook of destination repo >> not the source. >> >> > >> > >> > On Wed, Aug 1, 2012 at 1:34 PM, vishwajeet singh >> > wrote: >> >> >> >> On Wed, Aug 1, 2012 at 11:02 AM, Honeylyn O. Fukuoka < >> honeylyn@menue.com> >> >> wrote: >> >> > I still received the same error message >> >> >> >> What error ? >> >> >> >> > >> >> > >> >> > On Wed, Aug 1, 2012 at 1:28 PM, Honeylyn O. Fukuoka < >> honeylyn@menue.com> >> >> > wrote: >> >> >> >> >> >> Hi, >> >> >> >> >> >> I created a .bat file with the following scripts but still didn't >> work: >> >> >> >> >> >> 1. REPOS="$1" >> >> >> REV="$2" >> >> >> USER="$3" >> >> >> PROPNAME="$4" >> >> >> ACTION="$5" >> >> >> >> >> >> if [ "$USER" = "svnsync" ]; then exit 0; fi >> >> >> echo "Only the svnsync user can change revprops" >&2 >> >> >> exit 1 >> >> >> exit 0 >> >> >> >> >> >> 2. REPOS="$1" >> >> >> REV="$2" >> >> >> USER="$3" >> >> >> PROPNAME="$4" >> >> >> ACTION="$5" >> >> >> >> >> >> if [ "$USER" = "svnsync" ]; then exit 0; fi >> >> >> echo "Only the svnsync user can change revprops" >&2 >> >> >> exit0 >> >> >> >> >> >> 3. exit 0 >> >> >> Did I do something wrong? >> >> >> >> >> >> >> >> >> Thanks, >> >> >> >> >> >> >> >> >> Honey >> >> >> On Wed, Aug 1, 2012 at 12:41 PM, vishwajeet singh >> >> >> >> >> >> wrote: >> >> >>> >> >> >>> On Wed, Aug 1, 2012 at 10:09 AM, Honeylyn O. Fukuoka >> >> >>> >> >> >>> wrote: >> >> >>> > Okay, I will try this.. >> >> >>> > Correct me if I'm wrog, from this: >> >> >>> > >> >> >>> > echo "Changing revision properties other than svn:log is >> prohibited" >> >> >>> > >&2 >> >> >>> > exit 1 >> >> >>> > To this: >> >> >>> > echo "Changing revision properties other than svn:log is >> prohibited" >> >> >>> > >&2 >> >> >>> > exit 0 >> >> >>> >> >> >>> Just keep >> >> >>> exit 0 >> >> >>> remove everything else. >> >> >>> >> >> >>> > >> >> >>> > >> >> >>> > >> >> >>> > Thanks, >> >> >>> > >> >> >>> > Honey >> >> >>> > >> >> >>> > On Wed, Aug 1, 2012 at 12:36 PM, vishwajeet singh >> >> >>> > >> >> >>> > wrote: >> >> >>> >> >> >> >>> >> On Wed, Aug 1, 2012 at 10:00 AM, Honeylyn O. Fukuoka >> >> >>> >> >> >> >>> >> wrote: >> >> >>> >> > Here's what I did. >> >> >>> >> > I don't really know how to do it so what I did I searched then >> >> >>> >> > found >> >> >>> >> > this >> >> >>> >> > one. >> >> >>> >> > >> >> >>> >> > Basically copy the code below into a text file and name it >> >> >>> >> > pre-revprop-change.bat and save it in the \hooks subdirectory >> for >> >> >>> >> > your >> >> >>> >> > repository. >> >> >>> >> > >> >> >>> >> > @ECHO OFF >> >> >>> >> > :: Set all parameters. Even though most are not used, in case >> you >> >> >>> >> > want >> >> >>> >> > to >> >> >>> >> > add >> >> >>> >> > :: changes that allow, for example, editing of the author or >> >> >>> >> > addition of >> >> >>> >> > log >> >> >>> >> > messages. >> >> >>> >> > set repository=%1 >> >> >>> >> > set revision=%2 >> >> >>> >> > set userName=%3 >> >> >>> >> > set propertyName=%4 >> >> >>> >> > set action=%5 >> >> >>> >> > >> >> >>> >> > :: Only allow the log message to be changed, but not author, >> etc. >> >> >>> >> > if /I not "%propertyName%" == "svn:log" goto ERROR_PROPNAME >> >> >>> >> > >> >> >>> >> > :: Only allow modification of a log message, not addition or >> >> >>> >> > deletion. >> >> >>> >> > if /I not "%action%" == "M" goto ERROR_ACTION >> >> >>> >> > >> >> >>> >> > :: Make sure that the new svn:log message is not empty. >> >> >>> >> > set bIsEmpty=true >> >> >>> >> > for /f "tokens=*" %%g in ('find /V ""') do ( >> >> >>> >> > set bIsEmpty=false >> >> >>> >> > ) >> >> >>> >> > if "%bIsEmpty%" == "true" goto ERROR_EMPTY >> >> >>> >> > >> >> >>> >> > goto :eof >> >> >>> >> > >> >> >>> >> > :ERROR_EMPTY >> >> >>> >> > echo Empty svn:log messages are not allowed. >&2 >> >> >>> >> > goto ERROR_EXIT >> >> >>> >> > >> >> >>> >> > :ERROR_PROPNAME >> >> >>> >> > echo Only changes to svn:log messages are allowed. >&2 >> >> >>> >> > goto ERROR_EXIT >> >> >>> >> > >> >> >>> >> > :ERROR_ACTION >> >> >>> >> > echo Only modifications to svn:log revision properties are >> >> >>> >> > allowed. >> >> >>> >> > >&2 >> >> >>> >> > goto ERROR_EXIT >> >> >>> >> > >> >> >>> >> > :ERROR_EXIT >> >> >>> >> > exit /b 1 >> >> >>> >> > >> >> >>> >> > Thanks for the link, I will try to follow the instructions >> there. >> >> >>> >> > Do I have to just copy this: >> >> >>> >> > >> >> >>> >> > #!/bin/sh >> >> >>> >> > USER="$3" >> >> >>> >> > >> >> >>> >> > if [ "$USER" = "svnsync" ]; then exit 0; fi >> >> >>> >> > >> >> >>> >> > echo "Only the svnsync user can change revprops" >&2 >> >> >>> >> > exit 1 >> >> >>> >> >> >> >>> >> Just add one line 'exit 0' to your pre-rev-prop hook and try >> >> >>> >> >> >> >>> >> if that works than you can make further changes only if >> required, >> >> >>> >> above may not work in your environment as I am not sure if you >> have >> >> >>> >> svnsync user in your environment >> >> >>> >> >> >> >>> >> > Thanks a lot, >> >> >>> >> > >> >> >>> >> > >> >> >>> >> > Honey >> >> >>> >> > On Wed, Aug 1, 2012 at 12:19 PM, vishwajeet singh >> >> >>> >> > >> >> >>> >> > wrote: >> >> >>> >> >> >> >> >>> >> >> On Wed, Aug 1, 2012 at 9:48 AM, vishwajeet singh >> >> >>> >> >> >> >> >>> >> >> wrote: >> >> >>> >> >> > On Wed, Aug 1, 2012 at 9:43 AM, Honeylyn O. Fukuoka >> >> >>> >> >> > >> >> >>> >> >> > wrote: >> >> >>> >> >> >> Hi, >> >> >>> >> >> >> >> >> >>> >> >> >> >> >> >>> >> >> >> Thanks for the past response. >> >> >>> >> >> >> Can you tell me what changes do I have to make in the >> >> >>> >> >> >> prerevprop-change >> >> >>> >> >> >> hook? >> >> >>> >> >> >> I tried some but nothing happened. >> >> >>> >> >> > >> >> >>> >> >> > What did you try ? >> >> >>> >> >> > >> >> >>> >> >> > It just need to be there and should be executable nothing >> else >> >> >>> >> >> > >> >> >>> >> >> > $ echo "#!/bin/sh" > hooks/pre-revprop-change >> >> >>> >> >> > $ chmod 755 hooks/pre-revprop-change >> >> >>> >> >> > >> >> >>> >> >> You can find more details here >> >> >>> >> >> >> >> >>> >> >> >> http://svn.apache.org/repos/asf/subversion/trunk/notes/svnsync.txt >> >> >>> >> >> >> >> >> >>> >> >> >> >> >> >>> >> >> >> >> >> >>> >> >> >> Thanks, >> >> >>> >> >> >> >> >> >>> >> >> >> Honey >> >> >>> >> >> >> >> >> >>> >> >> >> On Wed, Aug 1, 2012 at 12:05 PM, vishwajeet singh >> >> >>> >> >> >> >> >> >>> >> >> >> wrote: >> >> >>> >> >> >>> >> >> >>> >> >> >>> On Wed, Aug 1, 2012 at 9:28 AM, Honeylyn O. Fukuoka >> >> >>> >> >> >>> >> >> >>> >> >> >>> wrote: >> >> >>> >> >> >>> > Hi, >> >> >>> >> >> >>> > >> >> >>> >> >> >>> > >> >> >>> >> >> >>> > >> >> >>> >> >> >>> > I have to sync our repository to another server, so to >> >> >>> >> >> >>> > test >> >> >>> >> >> >>> > it, I >> >> >>> >> >> >>> > created a >> >> >>> >> >> >>> > test repository in my local and tried to do svnsync >> >> >>> >> >> >>> > command >> >> >>> >> >> >>> > to >> >> >>> >> >> >>> > sync/mirror >> >> >>> >> >> >>> > it. >> >> >>> >> >> >>> > >> >> >>> >> >> >>> > Here's what I did: >> >> >>> >> >> >>> > >> >> >>> >> >> >>> > >> >> >>> >> >> >>> > >> >> >>> >> >> >>> > 1. Go to the folder where the repositories are located >> >> >>> >> >> >>> > >> >> >>> >> >> >>> > 2. in the cmd typed: svnsync initialize (URL of the >> >> >>> >> >> >>> > Repository to >> >> >>> >> >> >>> > Mirror) >> >> >>> >> >> >>> > (URL of the Destination of the Mirrored Repo) >> >> >>> >> >> >>> > >> >> >>> >> >> >>> > sample: svnsync initialize >> >> >>> >> >> >>> > svn://loocalhost/Repo >> >> >>> >> >> >>> > Name >> >> >>> >> >> >>> > svn://localhost/Destination Repo Name >> >> >>> >> >> >>> > >> >> >>> >> >> >>> > >> >> >>> >> >> >>> > >> >> >>> >> >> >>> > ERROR: >> >> >>> >> >> >>> > >> >> >>> >> >> >>> > svnsync: E16506: Repository has not been eabled to >> accept >> >> >>> >> >> >>> > revision >> >> >>> >> >> >>> > propchanges; ask the administrator to create a >> >> >>> >> >> >>> > pre-revprop-change >> >> >>> >> >> >>> > hook. >> >> >>> >> >> >>> >> >> >>> >> >> >>> As error says you need to enable 'pre-revprop-change >> hook' >> >> >>> >> >> >>> in >> >> >>> >> >> >>> destination repository. >> >> >>> >> >> >>> >> >> >>> >> >> >>> > >> >> >>> >> >> >>> > >> >> >>> >> >> >>> > >> >> >>> >> >> >>> > I am using Subvrsion Sever 1.7.5 >> >> >>> >> >> >>> > >> >> >>> >> >> >>> > >> >> >>> >> >> >>> > >> >> >>> >> >> >>> > Question: >> >> >>> >> >> >>> > >> >> >>> >> >> >>> > 1. Am I on the right path in creating the Mirror >> >> >>> >> >> >>> > Repository? >> >> >>> >> >> >>> > >> >> >>> >> >> >>> > 2. How do I create a pre-revprop-change hook? I tried >> some >> >> >>> >> >> >>> > hooks >> >> >>> >> >> >>> > that I >> >> >>> >> >> >>> > saw >> >> >>> >> >> >>> > in the search engine but didn't work. >> >> >>> >> >> >>> > >> >> >>> >> >> >>> > >> >> >>> >> >> >>> > >> >> >>> >> >> >>> > >> >> >>> >> >> >>> > >> >> >>> >> >> >>> > Please help me on this. >> >> >>> >> >> >>> > >> >> >>> >> >> >>> > >> >> >>> >> >> >>> > >> >> >>> >> >> >>> > >> >> >>> >> >> >>> > >> >> >>> >> >> >>> > >> >> >>> >> >> >>> > >> >> >>> >> >> >>> > Thanks so much, >> >> >>> >> >> >>> > >> >> >>> >> >> >>> > -- >> >> >>> >> >> >>> > HONEYLYN O. FUKUOKA >> >> >>> >> >> >>> > >> >> >>> >> >> >>> > System Administrator >> >> >>> >> >> >>> > Menue Philippines, Inc. >> >> >>> >> >> >>> > >> >> >>> >> >> >>> > >> >> >>> >> >> >>> >> >> >>> >> >> >>> >> >> >>> >> >> >>> >> >> >>> >> >> >>> -- >> >> >>> >> >> >>> Vishwajeet Singh >> >> >>> >> >> >>> +91-9657702154 | dextrous85@gmail.com | >> >> >>> >> >> >>> http://bootstraptoday.com >> >> >>> >> >> >>> Twitter: http://twitter.com/vishwajeets | LinkedIn: >> >> >>> >> >> >>> http://www.linkedin.com/in/singhvishwajeet >> >> >>> >> >> >> >> >> >>> >> >> >> >> >> >>> >> >> >> >> >> >>> >> >> >> >> >> >>> >> >> >> -- >> >> >>> >> >> >> HONEYLYN O. FUKUOKA >> >> >>> >> >> >> System Administrator >> >> >>> >> >> >> Menue Philippines, Inc. >> >> >>> >> >> >> >> >> >>> >> >> >> >> >> >>> >> >> > >> >> >>> >> >> > >> >> >>> >> >> > >> >> >>> >> >> > -- >> >> >>> >> >> > Vishwajeet Singh >> >> >>> >> >> > +91-9657702154 | dextrous85@gmail.com | >> >> >>> >> >> > http://bootstraptoday.com >> >> >>> >> >> > Twitter: http://twitter.com/vishwajeets | LinkedIn: >> >> >>> >> >> > http://www.linkedin.com/in/singhvishwajeet >> >> >>> >> >> >> >> >>> >> >> >> >> >>> >> >> >> >> >>> >> >> -- >> >> >>> >> >> Vishwajeet Singh >> >> >>> >> >> +91-9657702154 | dextrous85@gmail.com | >> >> >>> >> >> http://bootstraptoday.com >> >> >>> >> >> Twitter: http://twitter.com/vishwajeets | LinkedIn: >> >> >>> >> >> http://www.linkedin.com/in/singhvishwajeet >> >> >>> >> > >> >> >>> >> > >> >> >>> >> > >> >> >>> >> > >> >> >>> >> > -- >> >> >>> >> > HONEYLYN O. FUKUOKA >> >> >>> >> > System Administrator >> >> >>> >> > Menue Philippines, Inc. >> >> >>> >> > >> >> >>> >> > >> >> >>> >> >> >> >>> >> >> >> >>> >> >> >> >>> >> -- >> >> >>> >> Vishwajeet Singh >> >> >>> >> +91-9657702154 | dextrous85@gmail.com | >> http://bootstraptoday.com >> >> >>> >> Twitter: http://twitter.com/vishwajeets | LinkedIn: >> >> >>> >> http://www.linkedin.com/in/singhvishwajeet >> >> >>> > >> >> >>> > >> >> >>> > >> >> >>> > >> >> >>> > -- >> >> >>> > HONEYLYN O. FUKUOKA >> >> >>> > System Administrator >> >> >>> > Menue Philippines, Inc. >> >> >>> > >> >> >>> > >> >> >>> >> >> >>> >> >> >>> >> >> >>> -- >> >> >>> Vishwajeet Singh >> >> >>> +91-9657702154 | dextrous85@gmail.com | http://bootstraptoday.com >> >> >>> Twitter: http://twitter.com/vishwajeets | LinkedIn: >> >> >>> http://www.linkedin.com/in/singhvishwajeet >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> -- >> >> >> HONEYLYN O. FUKUOKA >> >> >> System Administrator >> >> >> Menue Philippines, Inc. >> >> >> >> >> >> >> >> > >> >> > >> >> > >> >> > -- >> >> > HONEYLYN O. FUKUOKA >> >> > System Administrator >> >> > Menue Philippines, Inc. >> >> > >> >> > >> >> >> >> >> >> >> >> -- >> >> Vishwajeet Singh >> >> +91-9657702154 | dextrous85@gmail.com | http://bootstraptoday.com >> >> Twitter: http://twitter.com/vishwajeets | LinkedIn: >> >> http://www.linkedin.com/in/singhvishwajeet >> > >> > >> > >> > >> > -- >> > HONEYLYN O. FUKUOKA >> > System Administrator >> > Menue Philippines, Inc. >> > >> > >> >> >> >> -- >> Vishwajeet Singh >> +91-9657702154 | dextrous85@gmail.com | http://bootstraptoday.com >> Twitter: http://twitter.com/vishwajeets | LinkedIn: >> http://www.linkedin.com/in/singhvishwajeet >> > > > > -- > *HONEYLYN O. FUKUOKA* > System Administrator > Menue Philippines, Inc. > * > * > > -- *HONEYLYN O. FUKUOKA* System Administrator Menue Philippines, Inc. * * --e89a8f23548535d56204c62e1faa Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi,
=A0
Did I do it wrong?

On Wed, Aug 1, 2012 at 1:43 PM, Honeylyn O. Fukuoka <hon= eylyn@menue.com> wrote:
Yes, I changed the pre-revprop-change hook of the destinat= ion of the mirrored repo then saved it as pre-revprop-change.bat


On Wed, Aug 1, 2012 at= 1:39 PM, vishwajeet singh <dextrous85@gmail.com> wrote:<= br>
On Wed, Aug 1, 2012 at 11:07 AM, Honeylyn O. Fukuoka = <honeylyn@menue.= com> wrote:
> =A0svnsync: E165006: Repository has not been eabled to accept revision= prop
> changes; ask the administrator to create a pre-revprop-change hook.
I hope you are changing pre-revprop-change hook of destination repo not the source.

>
>
> On Wed, Aug 1, 2012 at 1:34 PM, vishwajeet singh <dextrous85@gmail.com>
> wrote:
>>
>> On Wed, Aug 1, 2012 at 11:02 AM, Honeylyn O. Fukuoka <honeylyn@menue.com>=
>> wrote:
>> > I still received the same error message
>>
>> What error ?
>>
>> >
>> >
>> > On Wed, Aug 1, 2012 at 1:28 PM, Honeylyn O. Fukuoka <honeylyn@menue.com&g= t;
>> > wrote:
>> >>
>> >> Hi,
>> >>
>> >> I created a .bat file with the following scripts but stil= l didn't work:
>> >>
>> >> 1. REPOS=3D"$1"
>> >> REV=3D"$2"
>> >> USER=3D"$3"
>> >> PROPNAME=3D"$4"
>> >> ACTION=3D"$5"
>> >>
>> >> if [ "$USER" =3D "svnsync" ]; then ex= it 0; fi
>> >> echo "Only the svnsync user can change revprops"= ; >&2
>> >> exit 1
>> >> exit 0
>> >>
>> >> 2. REPOS=3D"$1"
>> >> REV=3D"$2"
>> >> USER=3D"$3"
>> >> PROPNAME=3D"$4"
>> >> ACTION=3D"$5"
>> >>
>> >> if [ "$USER" =3D "svnsync" ]; then ex= it 0; fi
>> >> echo "Only the svnsync user can change revprops"= ; >&2
>> >> exit0
>> >>
>> >> 3. exit 0
>> >> Did I do something wrong?
>> >>
>> >>
>> >> Thanks,
>> >>
>> >>
>> >> Honey
>> >> On Wed, Aug 1, 2012 at 12:41 PM, vishwajeet singh
>> >> <dextrous85@gmail.com>
>> >> wrote:
>> >>>
>> >>> On Wed, Aug 1, 2012 at 10:09 AM, Honeylyn O. Fukuoka<= br> >> >>> <honeylyn@menue.com>
>> >>> wrote:
>> >>> > Okay, I will try this..
>> >>> > Correct me if I'm wrog, from this:
>> >>> >
>> >>> > echo "Changing revision properties other th= an svn:log is prohibited"
>> >>> > >&2
>> >>> > exit 1
>> >>> > To this:
>> >>> > echo "Changing revision properties other th= an svn:log is prohibited"
>> >>> > >&2
>> >>> > exit 0
>> >>>
>> >>> Just keep
>> >>> exit 0
>> >>> remove everything else.
>> >>>
>> >>> >
>> >>> >
>> >>> >
>> >>> > Thanks,
>> >>> >
>> >>> > Honey
>> >>> >
>> >>> > On Wed, Aug 1, 2012 at 12:36 PM, vishwajeet sing= h
>> >>> > <dextrous85@gmail.com>
>> >>> > wrote:
>> >>> >>
>> >>> >> On Wed, Aug 1, 2012 at 10:00 AM, Honeylyn O.= Fukuoka
>> >>> >> <honeylyn@menue.com>
>> >>> >> wrote:
>> >>> >> > Here's what I did.
>> >>> >> > I don't really know how to do it so= what I did I searched then
>> >>> >> > found
>> >>> >> > this
>> >>> >> > one.
>> >>> >> >
>> >>> >> > Basically copy the code below into a te= xt file and name it
>> >>> >> > pre-revprop-change.bat and save it in t= he \hooks subdirectory for
>> >>> >> > your
>> >>> >> > repository.
>> >>> >> >
>> >>> >> > @ECHO OFF
>> >>> >> > :: Set all parameters. Even though most= are not used, in case you
>> >>> >> > want
>> >>> >> > to
>> >>> >> > add
>> >>> >> > :: changes that allow, for example, edi= ting of the author or
>> >>> >> > addition of
>> >>> >> > log
>> >>> >> > messages.
>> >>> >> > set repository=3D%1
>> >>> >> > set revision=3D%2
>> >>> >> > set userName=3D%3
>> >>> >> > set propertyName=3D%4
>> >>> >> > set action=3D%5
>> >>> >> >
>> >>> >> > :: Only allow the log message to be cha= nged, but not author, etc.
>> >>> >> > if /I not "%propertyName%" = =3D=3D "svn:log" goto ERROR_PROPNAME
>> >>> >> >
>> >>> >> > :: Only allow modification of a log mes= sage, not addition or
>> >>> >> > deletion.
>> >>> >> > if /I not "%action%" =3D=3D &= quot;M" goto ERROR_ACTION
>> >>> >> >
>> >>> >> > :: Make sure that the new svn:log messa= ge is not empty.
>> >>> >> > set bIsEmpty=3Dtrue
>> >>> >> > for /f "tokens=3D*" %%g in (&= #39;find /V ""') do (
>> >>> >> > set bIsEmpty=3Dfalse
>> >>> >> > )
>> >>> >> > if "%bIsEmpty%" =3D=3D "= true" goto ERROR_EMPTY
>> >>> >> >
>> >>> >> > goto :eof
>> >>> >> >
>> >>> >> > :ERROR_EMPTY
>> >>> >> > echo Empty svn:log messages are not all= owed. >&2
>> >>> >> > goto ERROR_EXIT
>> >>> >> >
>> >>> >> > :ERROR_PROPNAME
>> >>> >> > echo Only changes to svn:log messages a= re allowed. >&2
>> >>> >> > goto ERROR_EXIT
>> >>> >> >
>> >>> >> > :ERROR_ACTION
>> >>> >> > echo Only modifications to svn:log revi= sion properties are
>> >>> >> > allowed.
>> >>> >> > >&2
>> >>> >> > goto ERROR_EXIT
>> >>> >> >
>> >>> >> > :ERROR_EXIT
>> >>> >> > exit /b 1
>> >>> >> >
>> >>> >> > Thanks for the link, I will try to foll= ow the instructions there.
>> >>> >> > Do I have to just copy this:
>> >>> >> >
>> >>> >> > #!/bin/sh
>> >>> >> > USER=3D"$3"
>> >>> >> >
>> >>> >> > if [ "$USER" =3D "svnsyn= c" ]; then exit 0; fi
>> >>> >> >
>> >>> >> > echo "Only the svnsync user can ch= ange revprops" >&2
>> >>> >> > exit 1
>> >>> >>
>> >>> >> Just add one line 'exit 0' to your p= re-rev-prop hook and try
>> >>> >>
>> >>> >> if that works than you can make further chan= ges only if required,
>> >>> >> above may not work in your environment as I = am not sure if you have
>> >>> >> svnsync user in your environment
>> >>> >>
>> >>> >> > Thanks a lot,
>> >>> >> >
>> >>> >> >
>> >>> >> > Honey
>> >>> >> > On Wed, Aug 1, 2012 at 12:19 PM, vishwa= jeet singh
>> >>> >> > <dextrous85@gmail.com>
>> >>> >> > wrote:
>> >>> >> >>
>> >>> >> >> On Wed, Aug 1, 2012 at 9:48 AM, vis= hwajeet singh
>> >>> >> >> <dextrous85@gmail.com>
>> >>> >> >> wrote:
>> >>> >> >> > On Wed, Aug 1, 2012 at 9:43 AM= , Honeylyn O. Fukuoka
>> >>> >> >> > <honeylyn@menue.com>
>> >>> >> >> > wrote:
>> >>> >> >> >> Hi,
>> >>> >> >> >>
>> >>> >> >> >>
>> >>> >> >> >> Thanks for the past respon= se.
>> >>> >> >> >> Can you tell me what chang= es do I have to make in the
>> >>> >> >> >> prerevprop-change
>> >>> >> >> >> hook?
>> >>> >> >> >> I tried some but nothing h= appened.
>> >>> >> >> >
>> >>> >> >> > What did you try ?
>> >>> >> >> >
>> >>> >> >> > It just need to be there and s= hould be executable nothing else
>> >>> >> >> >
>> >>> >> >> > $ echo "#!/bin/sh" &= gt; hooks/pre-revprop-change
>> >>> >> >> > $ chmod 755 hooks/pre-revprop-= change
>> >>> >> >> >
>> >>> >> >> You can find more details here
>> >>> >> >>
>> >>> >> >> http://svn.ap= ache.org/repos/asf/subversion/trunk/notes/svnsync.txt
>> >>> >> >> >>
>> >>> >> >> >>
>> >>> >> >> >>
>> >>> >> >> >> Thanks,
>> >>> >> >> >>
>> >>> >> >> >> Honey
>> >>> >> >> >>
>> >>> >> >> >> On Wed, Aug 1, 2012 at 12:= 05 PM, vishwajeet singh
>> >>> >> >> >> <dextrous85@gmail.com>
>> >>> >> >> >> wrote:
>> >>> >> >> >>>
>> >>> >> >> >>> On Wed, Aug 1, 2012 at= 9:28 AM, Honeylyn O. Fukuoka
>> >>> >> >> >>> <honeylyn@menue.com>
>> >>> >> >> >>> wrote:
>> >>> >> >> >>> > Hi,
>> >>> >> >> >>> >
>> >>> >> >> >>> >
>> >>> >> >> >>> >
>> >>> >> >> >>> > I have to sync ou= r repository to another server, so to
>> >>> >> >> >>> > test
>> >>> >> >> >>> > it, I
>> >>> >> >> >>> > created a
>> >>> >> >> >>> > test repository i= n my local and tried to do svnsync
>> >>> >> >> >>> > command
>> >>> >> >> >>> > to
>> >>> >> >> >>> > sync/mirror
>> >>> >> >> >>> > it.
>> >>> >> >> >>> >
>> >>> >> >> >>> > Here's what I= did:
>> >>> >> >> >>> >
>> >>> >> >> >>> >
>> >>> >> >> >>> >
>> >>> >> >> >>> > 1. Go to the fold= er where the repositories are located
>> >>> >> >> >>> >
>> >>> >> >> >>> > 2. in the cmd typ= ed: svnsync initialize (URL of the
>> >>> >> >> >>> > Repository to
>> >>> >> >> >>> > Mirror)
>> >>> >> >> >>> > (URL of the Desti= nation of the Mirrored Repo)
>> >>> >> >> >>> >
>> >>> >> >> >>> > =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 sample: =A0svnsync initialize
>> >>> >> >> >>> > svn://loocalhost/= Repo
>> >>> >> >> >>> > Name
>> >>> >> >> >>> > svn://localhost/D= estination Repo Name
>> >>> >> >> >>> >
>> >>> >> >> >>> >
>> >>> >> >> >>> >
>> >>> >> >> >>> > ERROR:
>> >>> >> >> >>> >
>> >>> >> >> >>> > svnsync: E16506: = Repository has not been eabled to accept
>> >>> >> >> >>> > revision
>> >>> >> >> >>> > propchanges; ask = the administrator to create a
>> >>> >> >> >>> > pre-revprop-chang= e
>> >>> >> >> >>> > hook.
>> >>> >> >> >>>
>> >>> >> >> >>> As error says you need= to enable =A0'pre-revprop-change hook'
>> >>> >> >> >>> in
>> >>> >> >> >>> destination repository= .
>> >>> >> >> >>>
>> >>> >> >> >>> >
>> >>> >> >> >>> >
>> >>> >> >> >>> >
>> >>> >> >> >>> > I am using Subvrs= ion Sever 1.7.5
>> >>> >> >> >>> >
>> >>> >> >> >>> >
>> >>> >> >> >>> >
>> >>> >> >> >>> > Question:
>> >>> >> >> >>> >
>> >>> >> >> >>> > 1. Am I on the ri= ght path in creating the Mirror
>> >>> >> >> >>> > Repository?
>> >>> >> >> >>> >
>> >>> >> >> >>> > 2. How do I creat= e a pre-revprop-change hook? I tried some
>> >>> >> >> >>> > hooks
>> >>> >> >> >>> > that I
>> >>> >> >> >>> > saw
>> >>> >> >> >>> > in the search eng= ine but didn't work.
>> >>> >> >> >>> >
>> >>> >> >> >>> >
>> >>> >> >> >>> >
>> >>> >> >> >>> >
>> >>> >> >> >>> >
>> >>> >> >> >>> > Please help me on= this.
>> >>> >> >> >>> >
>> >>> >> >> >>> >
>> >>> >> >> >>> >
>> >>> >> >> >>> >
>> >>> >> >> >>> >
>> >>> >> >> >>> >
>> >>> >> >> >>> >
>> >>> >> >> >>> > Thanks so much, >> >>> >> >> >>> >
>> >>> >> >> >>> > --
>> >>> >> >> >>> > HONEYLYN O. FUKUO= KA
>> >>> >> >> >>> >
>> >>> >> >> >>> > System Administra= tor
>> >>> >> >> >>> > Menue Philippines= , Inc.
>> >>> >> >> >>> >
>> >>> >> >> >>> >
>> >>> >> >> >>>
>> >>> >> >> >>>
>> >>> >> >> >>>
>> >>> >> >> >>> --
>> >>> >> >> >>> Vishwajeet Singh
>> >>> >> >> >>> +91-9657702154 | <= a href=3D"mailto:dextrous85@gmail.com" target=3D"_blank">dextrous85@gmail.c= om |
>> >>> >> >> >>> http://bootstraptoday.com
>> >>> >> >> >>> Twitter: http://twitter.com/vishwaje= ets | LinkedIn:
>> >>> >> >> >>> http://www.linkedin.com/= in/singhvishwajeet
>> >>> >> >> >>
>> >>> >> >> >>
>> >>> >> >> >>
>> >>> >> >> >>
>> >>> >> >> >> --
>> >>> >> >> >> HONEYLYN O. FUKUOKA
>> >>> >> >> >> System Administrator
>> >>> >> >> >> Menue Philippines, Inc. >> >>> >> >> >>
>> >>> >> >> >>
>> >>> >> >> >
>> >>> >> >> >
>> >>> >> >> >
>> >>> >> >> > --
>> >>> >> >> > Vishwajeet Singh
>> >>> >> >> > +91-9657702154 | dextrous85@gmail.com= |
>> >>> >> >> > http://bootstraptoday.com
>> >>> >> >> > Twitter: http://twitter.com/vishwajeets = | LinkedIn:
>> >>> >> >> > http://www.linkedin.com/in/singh= vishwajeet
>> >>> >> >>
>> >>> >> >>
>> >>> >> >>
>> >>> >> >> --
>> >>> >> >> Vishwajeet Singh
>> >>> >> >> +91-9657702154 | dextrous85@gmail.com |
>> >>> >> >> http://bootstraptoday.com
>> >>> >> >> Twitter: http://twitter.com/vishwajeets | Lin= kedIn:
>> >>> >> >> http://www.linkedin.com/in/singhvishw= ajeet
>> >>> >> >
>> >>> >> >
>> >>> >> >
>> >>> >> >
>> >>> >> > --
>> >>> >> > HONEYLYN O. FUKUOKA
>> >>> >> > System Administrator
>> >>> >> > Menue Philippines, Inc.
>> >>> >> >
>> >>> >> >
>> >>> >>
>> >>> >>
>> >>> >>
>> >>> >> --
>> >>> >> Vishwajeet Singh
>> >>> >> +91-9657702154 | dextrous85@gmail.com | http://bootstraptoday.com >> >>> >> Twitter: http://twitter.com/vishwajeets | LinkedIn: >> >>> >> http://www.linkedin.com/in/singhvishwajeet=
>> >>> >
>> >>> >
>> >>> >
>> >>> >
>> >>> > --
>> >>> > HONEYLYN O. FUKUOKA
>> >>> > System Administrator
>> >>> > Menue Philippines, Inc.
>> >>> >
>> >>> >
>> >>>
>> >>>
>> >>>
>> >>> --
>> >>> Vishwajeet Singh
>> >>> +91-9657702154 | dextrous85@gmail.com | http://bootstraptoday.com
>> >>> Twitter: http://twitter.com/vishwajeets | LinkedIn:
>> >>> http://www.linkedin.com/in/singhvishwajeet
>> >>
>> >>
>> >>
>> >>
>> >> --
>> >> HONEYLYN O. FUKUOKA
>> >> System Administrator
>> >> Menue Philippines, Inc.
>> >>
>> >>
>> >
>> >
>> >
>> > --
>> > HONEYLYN O. FUKUOKA
>> > System Administrator
>> > Menue Philippines, Inc.
>> >
>> >
>>
>>
>>
>> --
>> Vishwajeet Singh
>> +91-9657702154 | dextrous85@gmail.com | http://bootstraptoday.com
>> Twitter: http://twitter.com/vishwajeets | LinkedIn:
>> http://www.linkedin.com/in/singhvishwajeet
>
>
>
>
> --
> HONEYLYN O. FUKUOKA
> System Administrator
> Menue Philippines, Inc.
>
>



--
Vishwajeet Singh
= +91-9657702154=A0| dextrous85@gmail.com | http://bootstraptoday.com
Twitter: http:= //twitter.com/vishwajeets | LinkedIn:
ht= tp://www.linkedin.com/in/singhvishwajeet



--
HONEYLYN O. FUKUOKA
System Administrator
Menue Phi= lippines, Inc.





--
HONEYLYN O. FUKUOKA
System Administrator
Menue Phi= lippines, Inc.


--e89a8f23548535d56204c62e1faa--