You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by "Honeylyn O. Fukuoka" <ho...@menue.com> on 2012/08/01 05:58:13 UTC
SVNSYNC Error
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.
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.
*
*
Re: SVNSYNC Error
Posted by "Honeylyn O. Fukuoka" <ho...@menue.com>.
Okay, Thanks for the help. Will try this.
Thanks,
Honey
On Wed, Aug 1, 2012 at 12:40 PM, vishwajeet singh <de...@gmail.com>wrote:
> On Wed, Aug 1, 2012 at 10:07 AM, Honeylyn O. Fukuoka <ho...@menue.com>
> wrote:
> > When you created a pre-revprop-change, did you save it in .bak file and
> put
>
> It should be .bat on windows and should be placed in hooks directory
>
> > it in the hooks directory of the dest repository? Am I getting you right?
> > My goal is to sync our repository to another server outside our country.
> > Will this work?
>
> It should work , I don't see a reason why it won't work but you need
> to get your setup right.
> >
> >
> > Thanks,
> >
> >
> > Honey
> >
> > On Wed, Aug 1, 2012 at 12:29 PM, David Chapman <dc...@acm.org>
> wrote:
> >>
> >> On 7/31/2012 9:13 PM, 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.
> >>>
> >>
> >> I created a pre-revprop-change script with the single line "exit 0" in
> it
> >> and put it into the hooks directory of the destination repository (not
> the
> >> original repository). Worked fine on Windows. Most of the issues that
> arise
> >> from allowing revision property changes are security-oriented; if you
> want
> >> to prevent some (or most) users from changing revision properties then
> your
> >> script must guard against it. But if you are just creating a repository
> >> backup that no one else will use unless the original crashes
> irretrievably,
> >> you don't need anything more.
> >>
> >> --
> >> David Chapman dcchapman@acm.org
> >> Chapman Consulting -- San Jose, CA
> >> Software Development Done Right.
> >> www.chapman-consulting-sj.com
> >>
> >
> >
> >
> > --
> > 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.
*
*
Re: SVNSYNC Error
Posted by vishwajeet singh <de...@gmail.com>.
On Wed, Aug 1, 2012 at 10:07 AM, Honeylyn O. Fukuoka <ho...@menue.com> wrote:
> When you created a pre-revprop-change, did you save it in .bak file and put
It should be .bat on windows and should be placed in hooks directory
> it in the hooks directory of the dest repository? Am I getting you right?
> My goal is to sync our repository to another server outside our country.
> Will this work?
It should work , I don't see a reason why it won't work but you need
to get your setup right.
>
>
> Thanks,
>
>
> Honey
>
> On Wed, Aug 1, 2012 at 12:29 PM, David Chapman <dc...@acm.org> wrote:
>>
>> On 7/31/2012 9:13 PM, 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.
>>>
>>
>> I created a pre-revprop-change script with the single line "exit 0" in it
>> and put it into the hooks directory of the destination repository (not the
>> original repository). Worked fine on Windows. Most of the issues that arise
>> from allowing revision property changes are security-oriented; if you want
>> to prevent some (or most) users from changing revision properties then your
>> script must guard against it. But if you are just creating a repository
>> backup that no one else will use unless the original crashes irretrievably,
>> you don't need anything more.
>>
>> --
>> David Chapman dcchapman@acm.org
>> Chapman Consulting -- San Jose, CA
>> Software Development Done Right.
>> www.chapman-consulting-sj.com
>>
>
>
>
> --
> 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
Re: SVNSYNC Error
Posted by "Honeylyn O. Fukuoka" <ho...@menue.com>.
When you created a pre-revprop-change, did you save it in .bak file and put
it in the hooks directory of the dest repository? Am I getting you right?
My goal is to sync our repository to another server outside our country.
Will this work?
Thanks,
Honey
On Wed, Aug 1, 2012 at 12:29 PM, David Chapman <dc...@acm.org> wrote:
> On 7/31/2012 9:13 PM, 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.
>>
>>
> I created a pre-revprop-change script with the single line "exit 0" in it
> and put it into the hooks directory of the destination repository (not the
> original repository). Worked fine on Windows. Most of the issues that
> arise from allowing revision property changes are security-oriented; if you
> want to prevent some (or most) users from changing revision properties then
> your script must guard against it. But if you are just creating a
> repository backup that no one else will use unless the original crashes
> irretrievably, you don't need anything more.
>
> --
> David Chapman dcchapman@acm.org
> Chapman Consulting -- San Jose, CA
> Software Development Done Right.
> www.chapman-consulting-sj.com
>
>
--
*HONEYLYN O. FUKUOKA*
System Administrator
Menue Philippines, Inc.
*
*
Re: SVNSYNC Error
Posted by David Chapman <dc...@acm.org>.
On 7/31/2012 9:13 PM, 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.
>
I created a pre-revprop-change script with the single line "exit 0" in
it and put it into the hooks directory of the destination repository
(not the original repository). Worked fine on Windows. Most of the
issues that arise from allowing revision property changes are
security-oriented; if you want to prevent some (or most) users from
changing revision properties then your script must guard against it.
But if you are just creating a repository backup that no one else will
use unless the original crashes irretrievably, you don't need anything more.
--
David Chapman dcchapman@acm.org
Chapman Consulting -- San Jose, CA
Software Development Done Right.
www.chapman-consulting-sj.com
RE: SVNSYNC Error
Posted by "Cooke, Mark" <ma...@siemens.com>.
> On Wed, Aug 1, 2012 at 5:14 PM, Stefan Sperling <st...@elego.de> wrote:
>
>
> On Wed, Aug 01, 2012 at 04:57:57PM +0800, Honeylyn O.
> Fukuoka wrote:
> > Hi,
> >
> > Thanks for this.
> > We are using snserve not Apache...
> > Will this link still work with us?
>
>
> Sure. svnsync is just about repository replication, and
> has nothing
> to do with what server is being used to allow access to
> the repository
> via the network.
>
> You didn't mention why you want to use svnsync. If your
> goal is to back
> up a repository to another machine then all you need is svnsync.
> If the goal is to set up a write-through proxy using
> the mirrored repostory
> then you need svnsync and Apache HTTPD because svnserve
> doesn't support
> write-through proxying.
>
> -----Original Message-----
> From: Honeylyn O. Fukuoka [mailto:honeylyn@menue.com]
> Sent: 01 August 2012 13:15
> To: Honeylyn O. Fukuoka; David Chapman; vishwajeet singh;
> users@subversion.apache.org
> Subject: Re: SVNSYNC Error
>
> Hi,
>
> The reason why I am doing the svnsync is to backup our
> repository to our new server in our main branch.
If all you are doing is a one-off move, then you should also investigate using dump/load. Depending on the size of your repo this can take a while, but can be done without svnsync and can have advantages in having your shiny new in the latest format.
I suggest that you read the manual, especially this bit about "Migrating Repository Data Elsewhere":-
http://svnbook.red-bean.com/en/1.7/svn.reposadmin.maint.html#svn.reposadmin.maint.migrate
~ mark c
P.S. It is often good to explain what you are trying to do before asking for specific help. This helps us to discuss other, better ways to do stuff than you know about...
Re: SVNSYNC Error
Posted by "Honeylyn O. Fukuoka" <ho...@menue.com>.
Hi,
The reason why I am doing the svnsync is to backup our repository to our
new server in our main branch.
Thanks,
Honey
On Wed, Aug 1, 2012 at 5:14 PM, Stefan Sperling <st...@elego.de> wrote:
> On Wed, Aug 01, 2012 at 04:57:57PM +0800, Honeylyn O. Fukuoka wrote:
> > Hi,
> >
> > Thanks for this.
> > We are using snserve not Apache...
> > Will this link still work with us?
>
> Sure. svnsync is just about repository replication, and has nothing
> to do with what server is being used to allow access to the repository
> via the network.
>
> You didn't mention why you want to use svnsync. If your goal is to back
> up a repository to another machine then all you need is svnsync.
> If the goal is to set up a write-through proxy using the mirrored repostory
> then you need svnsync and Apache HTTPD because svnserve doesn't support
> write-through proxying.
>
--
*HONEYLYN O. FUKUOKA*
System Administrator
Menue Philippines, Inc.
*
*
Re: SVNSYNC Error
Posted by Stefan Sperling <st...@elego.de>.
On Wed, Aug 01, 2012 at 04:57:57PM +0800, Honeylyn O. Fukuoka wrote:
> Hi,
>
> Thanks for this.
> We are using snserve not Apache...
> Will this link still work with us?
Sure. svnsync is just about repository replication, and has nothing
to do with what server is being used to allow access to the repository
via the network.
You didn't mention why you want to use svnsync. If your goal is to back
up a repository to another machine then all you need is svnsync.
If the goal is to set up a write-through proxy using the mirrored repostory
then you need svnsync and Apache HTTPD because svnserve doesn't support
write-through proxying.
RE: SVNSYNC Error
Posted by "Cooke, Mark" <ma...@siemens.com>.
> From: Honeylyn O. Fukuoka [mailto:honeylyn@menue.com]
> Sent: 01 August 2012 09:58
> To: Honeylyn O. Fukuoka; David Chapman; vishwajeet singh;
> users@subversion.apache.org
> Subject: Re: SVNSYNC Error
>
> Hi,
>
> Thanks for this.
> We are using snserve not Apache...
> Will this link still work with us?
I don't want to be rude but perhaps you could have checked the links before posting this question?
~ mark c
> On Wed, Aug 1, 2012 at 4:51 PM, Stefan Sperling <st...@elego.de> wrote:
>
>
> On Wed, Aug 01, 2012 at 03:00:25PM +0800, Honeylyn O.
> Fukuoka wrote:
> > Thanks so much for this info, Will try this and will
> let you know it it is
> > successful...
>
>
> There are quite a lot of posts in this thread already,
> and I'm surprised
> that nobody seems to have pointed Honeylyn to the
> relevant section of the
> svnbook:
> http://svnbook.red-bean.com/en/1.7/svn.reposadmin.maint.html#s
> vn.reposadmin.maint.replication.svnsync
>
> Please read this page first, and if you have any
> further questions,
> *then* ask on this list.
>
> If you're also going to set up a write-through proxy see
>
> http://svnbook.red-bean.com/en/1.7/svn.serverconfig.httpd.html
> #svn.serverconfig.httpd.extra.writethruproxy
>
> Good luck!
>
>
>
>
>
> --
> HONEYLYN O. FUKUOKA
> System Administrator
> Menue Philippines, Inc.
>
>
>
>
>
Re: SVNSYNC Error
Posted by Thorsten Schöning <ts...@am-soft.de>.
Guten Tag Honeylyn O. Fukuoka,
am Mittwoch, 1. August 2012 um 14:25 schrieben Sie:
> I also changed the pre-revprop-change hook script based on the example
> given there and so as the start-commit hook.
pre-revprop-change is enough, start with the easiest setup possible.
> But when I performed the 'svnsync initialize' command, I got this error:
> svnsync: E170001: Authorization Failed
This has nothing to do with hooks, I suspect you provided wrong user
credentials to the source repo. Check that the provided user on the
command line is the same as stated in passwd file of the source repo.
> Here are the scripts I put in the pre-revprop-change hook
> #!/bin/sh
I'm rude now, but please concentrate on your problem! I only had a
fast look over the messages in this thread and found more than one
message telling you that hooks starting with #!/bin/sh are for Linux,
not for Windows. They won't work, don't do that, ignore each and every
hook starting with that line. It's wasted time, confuses you and even
the people who try to help you. You want to sync either to Windows or
Linux, I read Windows and therefore you won't need to do anything
starting with #!/bin/sh.
Please delete those files you created and simply forget about them.
:-)
> Those are exactly the same scripts that was on the book.
But the book has a paragraph noticing that one has to adopt the
procedure on Windows on it's own.
> I also did what David told me to do, to create another pre-revprop-change
> hook script with 'exit 0' and save it in .bat but also received the same
> error.
Because you don't even get where the hook could be used. But the
creation of this and only this one hook is fine and what you need.
Only this hook with the line "exit 0" as pre-revprop-change.bat.
> Can anyone tell me what should I do to succesfuly erform the initialize
> command?
Check the login credentials for the source and maybe even the
destination repo, depedning on how you access the destination. Provide
us the exact command line you ran for initialize, just without
passwords of course.
Mit freundlichen Grüßen,
Thorsten Schöning
--
Thorsten Schöning E-Mail:Thorsten.Schoening@AM-SoFT.de
AM-SoFT IT-Systeme http://www.AM-SoFT.de/
Telefon.............030-2 1001-310
Fax...............05151- 9468- 88
Mobil..............0178-8 9468- 04
AM-SoFT GmbH IT-Systeme, Brandenburger Str. 7c, 31789 Hameln
AG Hanover HRB 207 694 - Geschäftsführer: Andreas Muchow
Re: SVNSYNC Error
Posted by "Honeylyn O. Fukuoka" <ho...@menue.com>.
Hi,
I tried the one in your link under repository replication and followed what
was instructed there.
I also changed the pre-revprop-change hook script based on the example
given there and so as the start-commit hook.
But when I performed the 'svnsync initialize' command, I got this error:
svnsync: E170001: Authorization Failed
Here are the scripts I put in the pre-revprop-change hook
#!/bin/sh
USER="$3"
if [ "$USER" = "syncuser" ]; then exit 0; fi
echo "Only the syncuser user may change revision properties" >&2
exit 1
And for the start-commit hook:
#!/bin/sh
USER="$2"
if [ "$USER" = "syncuser" ]; then exit 0; fi
echo "Only the syncuser user may commit new revisions" >&2
exit 1
Those are exactly the same scripts that was on the book.
I also did what David told me to do, to create another pre-revprop-change
hook script with 'exit 0' and save it in .bat but also received the same
error.
Can anyone tell me what should I do to succesfuly erform the initialize
command?
Thanks so much,
Honey
On Wed, Aug 1, 2012 at 5:59 PM, Andy Levy <an...@gmail.com> wrote:
> On Wed, Aug 1, 2012 at 4:57 AM, Honeylyn O. Fukuoka <ho...@menue.com>
> wrote:
> > Hi,
> >
> > Thanks for this.
> > We are using snserve not Apache...
> > Will this link still work with us?
>
> Yes (please read the links to the documentation you've been provided).
> But not with an HTTP URL for your source repository. If you're using
> svnserve, your URL should be svn://
>
> >
> > On Wed, Aug 1, 2012 at 4:51 PM, Stefan Sperling <st...@elego.de> wrote:
> >>
> >> On Wed, Aug 01, 2012 at 03:00:25PM +0800, Honeylyn O. Fukuoka wrote:
> >> > Thanks so much for this info, Will try this and will let you know it
> it
> >> > is
> >> > successful...
> >>
> >> There are quite a lot of posts in this thread already, and I'm surprised
> >> that nobody seems to have pointed Honeylyn to the relevant section of
> the
> >> svnbook:
> >>
> http://svnbook.red-bean.com/en/1.7/svn.reposadmin.maint.html#svn.reposadmin.maint.replication.svnsync
> >>
> >> Please read this page first, and if you have any further questions,
> >> *then* ask on this list.
> >>
> >> If you're also going to set up a write-through proxy see
> >>
> >>
> http://svnbook.red-bean.com/en/1.7/svn.serverconfig.httpd.html#svn.serverconfig.httpd.extra.writethruproxy
> >>
> >> Good luck!
> >
> >
> >
> >
> > --
> > HONEYLYN O. FUKUOKA
> > System Administrator
> > Menue Philippines, Inc.
> >
> >
>
--
*HONEYLYN O. FUKUOKA*
System Administrator
Menue Philippines, Inc.
*
*
Re: SVNSYNC Error
Posted by Andy Levy <an...@gmail.com>.
On Wed, Aug 1, 2012 at 4:57 AM, Honeylyn O. Fukuoka <ho...@menue.com> wrote:
> Hi,
>
> Thanks for this.
> We are using snserve not Apache...
> Will this link still work with us?
Yes (please read the links to the documentation you've been provided).
But not with an HTTP URL for your source repository. If you're using
svnserve, your URL should be svn://
>
> On Wed, Aug 1, 2012 at 4:51 PM, Stefan Sperling <st...@elego.de> wrote:
>>
>> On Wed, Aug 01, 2012 at 03:00:25PM +0800, Honeylyn O. Fukuoka wrote:
>> > Thanks so much for this info, Will try this and will let you know it it
>> > is
>> > successful...
>>
>> There are quite a lot of posts in this thread already, and I'm surprised
>> that nobody seems to have pointed Honeylyn to the relevant section of the
>> svnbook:
>> http://svnbook.red-bean.com/en/1.7/svn.reposadmin.maint.html#svn.reposadmin.maint.replication.svnsync
>>
>> Please read this page first, and if you have any further questions,
>> *then* ask on this list.
>>
>> If you're also going to set up a write-through proxy see
>>
>> http://svnbook.red-bean.com/en/1.7/svn.serverconfig.httpd.html#svn.serverconfig.httpd.extra.writethruproxy
>>
>> Good luck!
>
>
>
>
> --
> HONEYLYN O. FUKUOKA
> System Administrator
> Menue Philippines, Inc.
>
>
Re: SVNSYNC Error
Posted by "Honeylyn O. Fukuoka" <ho...@menue.com>.
Hi,
Thanks for this.
We are using snserve not Apache...
Will this link still work with us?
Thanks,
Honey
On Wed, Aug 1, 2012 at 4:51 PM, Stefan Sperling <st...@elego.de> wrote:
> On Wed, Aug 01, 2012 at 03:00:25PM +0800, Honeylyn O. Fukuoka wrote:
> > Thanks so much for this info, Will try this and will let you know it it
> is
> > successful...
>
> There are quite a lot of posts in this thread already, and I'm surprised
> that nobody seems to have pointed Honeylyn to the relevant section of the
> svnbook:
> http://svnbook.red-bean.com/en/1.7/svn.reposadmin.maint.html#svn.reposadmin.maint.replication.svnsync
>
> Please read this page first, and if you have any further questions,
> *then* ask on this list.
>
> If you're also going to set up a write-through proxy see
>
> http://svnbook.red-bean.com/en/1.7/svn.serverconfig.httpd.html#svn.serverconfig.httpd.extra.writethruproxy
>
> Good luck!
>
--
*HONEYLYN O. FUKUOKA*
System Administrator
Menue Philippines, Inc.
*
*
Re: SVNSYNC Error
Posted by Stefan Sperling <st...@elego.de>.
On Wed, Aug 01, 2012 at 03:00:25PM +0800, Honeylyn O. Fukuoka wrote:
> Thanks so much for this info, Will try this and will let you know it it is
> successful...
There are quite a lot of posts in this thread already, and I'm surprised
that nobody seems to have pointed Honeylyn to the relevant section of the
svnbook: http://svnbook.red-bean.com/en/1.7/svn.reposadmin.maint.html#svn.reposadmin.maint.replication.svnsync
Please read this page first, and if you have any further questions,
*then* ask on this list.
If you're also going to set up a write-through proxy see
http://svnbook.red-bean.com/en/1.7/svn.serverconfig.httpd.html#svn.serverconfig.httpd.extra.writethruproxy
Good luck!
Re: SVNSYNC Error
Posted by "Honeylyn O. Fukuoka" <ho...@menue.com>.
Thanks so much for this info, Will try this and will let you know it it is
successful...
Thanks,
Honey
On Wed, Aug 1, 2012 at 2:36 PM, David Chapman <dc...@acm.org> wrote:
> On 7/31/2012 11:16 PM, Honeylyn O. Fukuoka wrote:
>
>> Hi,
>>
>> The repositories and the destination repositories are all running on
>> windows.
>> Im not really an expert on batch files/shell script development...That's
>> why Im asking for your help :(
>> I just followed what I was told to do here but I don't want to mess
>> things up.
>>
>>
> Here are the commands I ran on a Windows machine to synchronize from a
> remote repository:
>
> svnadmin create c:\user\work\repos
> cd c:\user\work\repos\hooks
> echo exit 0 > pre-revprop-change.bat
> svnsync initialize file:///user/work/repos http://repos.sourcedomain.com/*
> *repos <http://repos.sourcedomain.com/repos>
> svnsync sync file:///user/work/repos
>
> This ran just fine with SVN 1.6. Can you run something similar on your
> Windows machine and let us know what results you get? Run the steps in a
> new directory, not in the repository you just created. Note that the source
> repository in my example is served by Apache, so it uses a "http:" prefix.
> You would want to use a "svn:" prefix if you are using svnserve access, as
> was implied by your original message.
>
> Note that the destination repository is being accessed using the "file:"
> protocol. The repository I created was not meant to be accessed by other
> users; it is intended only to serve as a backup. If you are trying to set
> up a write-through proxy then you will need something like svnserve or
> Apache HTTP on the destination repository.
>
> Also, depending on your repository directory names, you may need to use
> quote marks around arguments. I recommend avoiding space characters in
> your directory names for this test.
>
>
> --
> David Chapman dcchapman@acm.org
> Chapman Consulting -- San Jose, CA
> Software Development Done Right.
> www.chapman-consulting-sj.com
>
>
--
*HONEYLYN O. FUKUOKA*
System Administrator
Menue Philippines, Inc.
*
*
Re: SVNSYNC Error
Posted by David Chapman <dc...@acm.org>.
On 7/31/2012 11:16 PM, Honeylyn O. Fukuoka wrote:
> Hi,
> The repositories and the destination repositories are all running on
> windows.
> Im not really an expert on batch files/shell script
> development...That's why Im asking for your help :(
> I just followed what I was told to do here but I don't want to mess
> things up.
>
Here are the commands I ran on a Windows machine to synchronize from a
remote repository:
svnadmin create c:\user\work\repos
cd c:\user\work\repos\hooks
echo exit 0 > pre-revprop-change.bat
svnsync initialize file:///user/work/repos
http://repos.sourcedomain.com/repos
svnsync sync file:///user/work/repos
This ran just fine with SVN 1.6. Can you run something similar on your
Windows machine and let us know what results you get? Run the steps in
a new directory, not in the repository you just created. Note that the
source repository in my example is served by Apache, so it uses a
"http:" prefix. You would want to use a "svn:" prefix if you are using
svnserve access, as was implied by your original message.
Note that the destination repository is being accessed using the "file:"
protocol. The repository I created was not meant to be accessed by
other users; it is intended only to serve as a backup. If you are trying
to set up a write-through proxy then you will need something like
svnserve or Apache HTTP on the destination repository.
Also, depending on your repository directory names, you may need to use
quote marks around arguments. I recommend avoiding space characters in
your directory names for this test.
--
David Chapman dcchapman@acm.org
Chapman Consulting -- San Jose, CA
Software Development Done Right.
www.chapman-consulting-sj.com
Re: SVNSYNC Error
Posted by "Honeylyn O. Fukuoka" <ho...@menue.com>.
Hi,
The repositories and the destination repositories are all running on
windows.
Im not really an expert on batch files/shell script development...That's
why Im asking for your help :(
I just followed what I was told to do here but I don't want to mess things
up.
Thanks,
Honey
On Wed, Aug 1, 2012 at 2:08 PM, David Chapman <dc...@acm.org> wrote:
> On 7/31/2012 10:28 PM, Honeylyn O. Fukuoka 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
>>
>>
> The first two scripts are for Unix/Linux; they are /bin/sh or /bin/bash
> scripts. They will not work on a Windows machine.
>
> The third should have worked on any type of machine, though if the
> destination repository is on Unix/Linux you will need to make the file
> executable and should change its ownership to match that of the other
> sample scripts in the hooks directory. For example, on my Linux-hosted
> repository, all scripts are owned by user apache, group apache.
>
> What platform is the destination repository (i.e. the backup) on? Is it
> Windows or Unix/Linux? You haven't told us anything about the machines you
> are running on; you mentioned ".bat files" but then tried scripts meant for
> Unix/Linux.
>
> Do NOT run any experiments with complicated scripts until you get a simple
> script running; if you can't get a single line "exit 0" script to work then
> none of the complicated scripts will work. In particular, if you are not
> an expert batch file/shell script developer, you shouldn't try anything
> fancy. You can really mess things up.
>
>
> --
> David Chapman dcchapman@acm.org
> Chapman Consulting -- San Jose, CA
> Software Development Done Right.
> www.chapman-consulting-sj.com
>
>
--
*HONEYLYN O. FUKUOKA*
System Administrator
Menue Philippines, Inc.
*
*
Re: SVNSYNC Error
Posted by David Chapman <dc...@acm.org>.
On 7/31/2012 10:28 PM, Honeylyn O. Fukuoka 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
>
The first two scripts are for Unix/Linux; they are /bin/sh or /bin/bash
scripts. They will not work on a Windows machine.
The third should have worked on any type of machine, though if the
destination repository is on Unix/Linux you will need to make the file
executable and should change its ownership to match that of the other
sample scripts in the hooks directory. For example, on my Linux-hosted
repository, all scripts are owned by user apache, group apache.
What platform is the destination repository (i.e. the backup) on? Is it
Windows or Unix/Linux? You haven't told us anything about the machines
you are running on; you mentioned ".bat files" but then tried scripts
meant for Unix/Linux.
Do NOT run any experiments with complicated scripts until you get a
simple script running; if you can't get a single line "exit 0" script to
work then none of the complicated scripts will work. In particular, if
you are not an expert batch file/shell script developer, you shouldn't
try anything fancy. You can really mess things up.
--
David Chapman dcchapman@acm.org
Chapman Consulting -- San Jose, CA
Software Development Done Right.
www.chapman-consulting-sj.com
Re: SVNSYNC Error
Posted by "Honeylyn O. Fukuoka" <ho...@menue.com>.
Hi,
Did I do it wrong?
On Wed, Aug 1, 2012 at 1:43 PM, Honeylyn O. Fukuoka <ho...@menue.com>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 <de...@gmail.com>wrote:
>
>> On Wed, Aug 1, 2012 at 11:07 AM, Honeylyn O. Fukuoka <ho...@menue.com>
>> 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 <de...@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>
>> >> > 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
>> >> >> <de...@gmail.com>
>> >> >> wrote:
>> >> >>>
>> >> >>> On Wed, Aug 1, 2012 at 10:09 AM, Honeylyn O. Fukuoka
>> >> >>> <ho...@menue.com>
>> >> >>> 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
>> >> >>> > <de...@gmail.com>
>> >> >>> > wrote:
>> >> >>> >>
>> >> >>> >> On Wed, Aug 1, 2012 at 10:00 AM, Honeylyn O. Fukuoka
>> >> >>> >> <ho...@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 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
>> >> >>> >> > <de...@gmail.com>
>> >> >>> >> > wrote:
>> >> >>> >> >>
>> >> >>> >> >> On Wed, Aug 1, 2012 at 9:48 AM, vishwajeet singh
>> >> >>> >> >> <de...@gmail.com>
>> >> >>> >> >> wrote:
>> >> >>> >> >> > On Wed, Aug 1, 2012 at 9:43 AM, Honeylyn O. Fukuoka
>> >> >>> >> >> > <ho...@menue.com>
>> >> >>> >> >> > 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
>> >> >>> >> >> >> <de...@gmail.com>
>> >> >>> >> >> >> wrote:
>> >> >>> >> >> >>>
>> >> >>> >> >> >>> On Wed, Aug 1, 2012 at 9:28 AM, Honeylyn O. Fukuoka
>> >> >>> >> >> >>> <ho...@menue.com>
>> >> >>> >> >> >>> 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.
*
*
Re: SVNSYNC Error
Posted by "Honeylyn O. Fukuoka" <ho...@menue.com>.
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 <de...@gmail.com>wrote:
> On Wed, Aug 1, 2012 at 11:07 AM, Honeylyn O. Fukuoka <ho...@menue.com>
> 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 <de...@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>
> >> > 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
> >> >> <de...@gmail.com>
> >> >> wrote:
> >> >>>
> >> >>> On Wed, Aug 1, 2012 at 10:09 AM, Honeylyn O. Fukuoka
> >> >>> <ho...@menue.com>
> >> >>> 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
> >> >>> > <de...@gmail.com>
> >> >>> > wrote:
> >> >>> >>
> >> >>> >> On Wed, Aug 1, 2012 at 10:00 AM, Honeylyn O. Fukuoka
> >> >>> >> <ho...@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 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
> >> >>> >> > <de...@gmail.com>
> >> >>> >> > wrote:
> >> >>> >> >>
> >> >>> >> >> On Wed, Aug 1, 2012 at 9:48 AM, vishwajeet singh
> >> >>> >> >> <de...@gmail.com>
> >> >>> >> >> wrote:
> >> >>> >> >> > On Wed, Aug 1, 2012 at 9:43 AM, Honeylyn O. Fukuoka
> >> >>> >> >> > <ho...@menue.com>
> >> >>> >> >> > 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
> >> >>> >> >> >> <de...@gmail.com>
> >> >>> >> >> >> wrote:
> >> >>> >> >> >>>
> >> >>> >> >> >>> On Wed, Aug 1, 2012 at 9:28 AM, Honeylyn O. Fukuoka
> >> >>> >> >> >>> <ho...@menue.com>
> >> >>> >> >> >>> 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.
*
*
Re: SVNSYNC Error
Posted by vishwajeet singh <de...@gmail.com>.
On Wed, Aug 1, 2012 at 11:07 AM, Honeylyn O. Fukuoka <ho...@menue.com> 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 <de...@gmail.com>
> wrote:
>>
>> On Wed, Aug 1, 2012 at 11:02 AM, Honeylyn O. Fukuoka <ho...@menue.com>
>> wrote:
>> > I still received the same error message
>>
>> What error ?
>>
>> >
>> >
>> > On Wed, Aug 1, 2012 at 1:28 PM, Honeylyn O. Fukuoka <ho...@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
>> >> <de...@gmail.com>
>> >> wrote:
>> >>>
>> >>> On Wed, Aug 1, 2012 at 10:09 AM, Honeylyn O. Fukuoka
>> >>> <ho...@menue.com>
>> >>> 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
>> >>> > <de...@gmail.com>
>> >>> > wrote:
>> >>> >>
>> >>> >> On Wed, Aug 1, 2012 at 10:00 AM, Honeylyn O. Fukuoka
>> >>> >> <ho...@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 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
>> >>> >> > <de...@gmail.com>
>> >>> >> > wrote:
>> >>> >> >>
>> >>> >> >> On Wed, Aug 1, 2012 at 9:48 AM, vishwajeet singh
>> >>> >> >> <de...@gmail.com>
>> >>> >> >> wrote:
>> >>> >> >> > On Wed, Aug 1, 2012 at 9:43 AM, Honeylyn O. Fukuoka
>> >>> >> >> > <ho...@menue.com>
>> >>> >> >> > 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
>> >>> >> >> >> <de...@gmail.com>
>> >>> >> >> >> wrote:
>> >>> >> >> >>>
>> >>> >> >> >>> On Wed, Aug 1, 2012 at 9:28 AM, Honeylyn O. Fukuoka
>> >>> >> >> >>> <ho...@menue.com>
>> >>> >> >> >>> 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
Re: SVNSYNC Error
Posted by "Honeylyn O. Fukuoka" <ho...@menue.com>.
svnsync: E165006: Repository has not been eabled to accept revision prop
changes; ask the administrator to create a pre-revprop-change hook.
On Wed, Aug 1, 2012 at 1:34 PM, vishwajeet singh <de...@gmail.com>wrote:
> On Wed, Aug 1, 2012 at 11:02 AM, Honeylyn O. Fukuoka <ho...@menue.com>
> wrote:
> > I still received the same error message
>
> What error ?
>
> >
> >
> > On Wed, Aug 1, 2012 at 1:28 PM, Honeylyn O. Fukuoka <ho...@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 <dextrous85@gmail.com
> >
> >> wrote:
> >>>
> >>> On Wed, Aug 1, 2012 at 10:09 AM, Honeylyn O. Fukuoka <
> honeylyn@menue.com>
> >>> 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
> >>> > <de...@gmail.com>
> >>> > wrote:
> >>> >>
> >>> >> On Wed, Aug 1, 2012 at 10:00 AM, Honeylyn O. Fukuoka
> >>> >> <ho...@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 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
> >>> >> > <de...@gmail.com>
> >>> >> > wrote:
> >>> >> >>
> >>> >> >> On Wed, Aug 1, 2012 at 9:48 AM, vishwajeet singh
> >>> >> >> <de...@gmail.com>
> >>> >> >> wrote:
> >>> >> >> > On Wed, Aug 1, 2012 at 9:43 AM, Honeylyn O. Fukuoka
> >>> >> >> > <ho...@menue.com>
> >>> >> >> > 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
> >>> >> >> >> <de...@gmail.com>
> >>> >> >> >> wrote:
> >>> >> >> >>>
> >>> >> >> >>> On Wed, Aug 1, 2012 at 9:28 AM, Honeylyn O. Fukuoka
> >>> >> >> >>> <ho...@menue.com>
> >>> >> >> >>> 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.
*
*
Re: SVNSYNC Error
Posted by vishwajeet singh <de...@gmail.com>.
On Wed, Aug 1, 2012 at 11:02 AM, Honeylyn O. Fukuoka <ho...@menue.com> wrote:
> I still received the same error message
What error ?
>
>
> On Wed, Aug 1, 2012 at 1:28 PM, Honeylyn O. Fukuoka <ho...@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 <de...@gmail.com>
>> wrote:
>>>
>>> On Wed, Aug 1, 2012 at 10:09 AM, Honeylyn O. Fukuoka <ho...@menue.com>
>>> 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
>>> > <de...@gmail.com>
>>> > wrote:
>>> >>
>>> >> On Wed, Aug 1, 2012 at 10:00 AM, Honeylyn O. Fukuoka
>>> >> <ho...@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 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
>>> >> > <de...@gmail.com>
>>> >> > wrote:
>>> >> >>
>>> >> >> On Wed, Aug 1, 2012 at 9:48 AM, vishwajeet singh
>>> >> >> <de...@gmail.com>
>>> >> >> wrote:
>>> >> >> > On Wed, Aug 1, 2012 at 9:43 AM, Honeylyn O. Fukuoka
>>> >> >> > <ho...@menue.com>
>>> >> >> > 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
>>> >> >> >> <de...@gmail.com>
>>> >> >> >> wrote:
>>> >> >> >>>
>>> >> >> >>> On Wed, Aug 1, 2012 at 9:28 AM, Honeylyn O. Fukuoka
>>> >> >> >>> <ho...@menue.com>
>>> >> >> >>> 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
Re: SVNSYNC Error
Posted by "Honeylyn O. Fukuoka" <ho...@menue.com>.
I still received the same error message
On Wed, Aug 1, 2012 at 1:28 PM, Honeylyn O. Fukuoka <ho...@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 <de...@gmail.com>wrote:
>
>> On Wed, Aug 1, 2012 at 10:09 AM, Honeylyn O. Fukuoka <ho...@menue.com>
>> 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 <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 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 <
>> dextrous85@gmail.com>
>> >> > wrote:
>> >> >>
>> >> >> On Wed, Aug 1, 2012 at 9:48 AM, vishwajeet singh <
>> dextrous85@gmail.com>
>> >> >> wrote:
>> >> >> > On Wed, Aug 1, 2012 at 9:43 AM, Honeylyn O. Fukuoka
>> >> >> > <ho...@menue.com>
>> >> >> > 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
>> >> >> >> <de...@gmail.com>
>> >> >> >> wrote:
>> >> >> >>>
>> >> >> >>> On Wed, Aug 1, 2012 at 9:28 AM, Honeylyn O. Fukuoka
>> >> >> >>> <ho...@menue.com>
>> >> >> >>> 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.
*
*
Re: SVNSYNC Error
Posted by "Honeylyn O. Fukuoka" <ho...@menue.com>.
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 <de...@gmail.com>wrote:
> On Wed, Aug 1, 2012 at 10:09 AM, Honeylyn O. Fukuoka <ho...@menue.com>
> 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 <de...@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 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 <
> dextrous85@gmail.com>
> >> > wrote:
> >> >>
> >> >> On Wed, Aug 1, 2012 at 9:48 AM, vishwajeet singh <
> dextrous85@gmail.com>
> >> >> wrote:
> >> >> > On Wed, Aug 1, 2012 at 9:43 AM, Honeylyn O. Fukuoka
> >> >> > <ho...@menue.com>
> >> >> > 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
> >> >> >> <de...@gmail.com>
> >> >> >> wrote:
> >> >> >>>
> >> >> >>> On Wed, Aug 1, 2012 at 9:28 AM, Honeylyn O. Fukuoka
> >> >> >>> <ho...@menue.com>
> >> >> >>> 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.
*
*
Re: SVNSYNC Error
Posted by vishwajeet singh <de...@gmail.com>.
On Wed, Aug 1, 2012 at 10:09 AM, Honeylyn O. Fukuoka <ho...@menue.com> 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 <de...@gmail.com>
> wrote:
>>
>> On Wed, Aug 1, 2012 at 10:00 AM, Honeylyn O. Fukuoka <ho...@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 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 <de...@gmail.com>
>> > wrote:
>> >>
>> >> On Wed, Aug 1, 2012 at 9:48 AM, vishwajeet singh <de...@gmail.com>
>> >> wrote:
>> >> > On Wed, Aug 1, 2012 at 9:43 AM, Honeylyn O. Fukuoka
>> >> > <ho...@menue.com>
>> >> > 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
>> >> >> <de...@gmail.com>
>> >> >> wrote:
>> >> >>>
>> >> >>> On Wed, Aug 1, 2012 at 9:28 AM, Honeylyn O. Fukuoka
>> >> >>> <ho...@menue.com>
>> >> >>> 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
Re: SVNSYNC Error
Posted by "Honeylyn O. Fukuoka" <ho...@menue.com>.
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
Thanks,
Honey
On Wed, Aug 1, 2012 at 12:36 PM, vishwajeet singh <de...@gmail.com>wrote:
> On Wed, Aug 1, 2012 at 10:00 AM, Honeylyn O. Fukuoka <ho...@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 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 <de...@gmail.com>
> > wrote:
> >>
> >> On Wed, Aug 1, 2012 at 9:48 AM, vishwajeet singh <de...@gmail.com>
> >> wrote:
> >> > On Wed, Aug 1, 2012 at 9:43 AM, Honeylyn O. Fukuoka <
> honeylyn@menue.com>
> >> > 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
> >> >> <de...@gmail.com>
> >> >> wrote:
> >> >>>
> >> >>> On Wed, Aug 1, 2012 at 9:28 AM, Honeylyn O. Fukuoka
> >> >>> <ho...@menue.com>
> >> >>> 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.
*
*
Re: SVNSYNC Error
Posted by vishwajeet singh <de...@gmail.com>.
On Wed, Aug 1, 2012 at 10:00 AM, Honeylyn O. Fukuoka <ho...@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 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 <de...@gmail.com>
> wrote:
>>
>> On Wed, Aug 1, 2012 at 9:48 AM, vishwajeet singh <de...@gmail.com>
>> wrote:
>> > On Wed, Aug 1, 2012 at 9:43 AM, Honeylyn O. Fukuoka <ho...@menue.com>
>> > 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
>> >> <de...@gmail.com>
>> >> wrote:
>> >>>
>> >>> On Wed, Aug 1, 2012 at 9:28 AM, Honeylyn O. Fukuoka
>> >>> <ho...@menue.com>
>> >>> 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
Re: SVNSYNC Error
Posted by "Honeylyn O. Fukuoka" <ho...@menue.com>.
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
Thanks a lot,
Honey
On Wed, Aug 1, 2012 at 12:19 PM, vishwajeet singh <de...@gmail.com>wrote:
> On Wed, Aug 1, 2012 at 9:48 AM, vishwajeet singh <de...@gmail.com>
> wrote:
> > On Wed, Aug 1, 2012 at 9:43 AM, Honeylyn O. Fukuoka <ho...@menue.com>
> 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 <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 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.
*
*
Re: SVNSYNC Error
Posted by vishwajeet singh <de...@gmail.com>.
On Wed, Aug 1, 2012 at 9:48 AM, vishwajeet singh <de...@gmail.com> wrote:
> On Wed, Aug 1, 2012 at 9:43 AM, Honeylyn O. Fukuoka <ho...@menue.com> 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 <de...@gmail.com>
>> wrote:
>>>
>>> On Wed, Aug 1, 2012 at 9:28 AM, Honeylyn O. Fukuoka <ho...@menue.com>
>>> 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
Re: SVNSYNC Error
Posted by vishwajeet singh <de...@gmail.com>.
On Wed, Aug 1, 2012 at 9:43 AM, Honeylyn O. Fukuoka <ho...@menue.com> 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
>
>
>
> Thanks,
>
> Honey
>
> On Wed, Aug 1, 2012 at 12:05 PM, vishwajeet singh <de...@gmail.com>
> wrote:
>>
>> On Wed, Aug 1, 2012 at 9:28 AM, Honeylyn O. Fukuoka <ho...@menue.com>
>> 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
Re: SVNSYNC Error
Posted by "Honeylyn O. Fukuoka" <ho...@menue.com>.
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.
Thanks,
Honey
On Wed, Aug 1, 2012 at 12:05 PM, vishwajeet singh <de...@gmail.com>wrote:
> On Wed, Aug 1, 2012 at 9:28 AM, Honeylyn O. Fukuoka <ho...@menue.com>
> 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.
*
*
Re: SVNSYNC Error
Posted by vishwajeet singh <de...@gmail.com>.
On Wed, Aug 1, 2012 at 9:28 AM, Honeylyn O. Fukuoka <ho...@menue.com> 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