You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by "Jones, Gretchen" <Gr...@kc.frb.org> on 2014/01/30 17:52:39 UTC

tag rename fails to delete on svnsync mirror

Can anyone explain why a tag "renamed" on the master repository is not replicated identically on a mirror? A new tag is created on the mirror but the old tag is not removed on the mirror. SVN 1.7.4


Gretchen Jones


RE: tag rename fails to delete on svnsync mirror

Posted by "Jones, Gretchen" <Gr...@kc.frb.org>.
The rename is being done via the "rename" command (tortoisesvn) in the master.  The commit on the mirror is missing the delete for the old tag.  

Only new tag exists on the master.
Both old tag and new tag now exist on the mirror.  

Gretchen Jones 

-----Original Message-----
From: Philip Martin [mailto:philip.martin@wandisco.com]
Sent: Thursday, January 30, 2014 1:39 PM
To: Jones, Gretchen
Cc: Ben Reser; users@subversion.apache.org
Subject: Re: tag rename fails to delete on svnsync mirror

"Jones, Gretchen" <Gr...@kc.frb.org> writes:

> Yes, everything is syncing perfectly (AFAIK), No errors are encountered.  
>
> But in this case:
> I create a tag on the master, it syncs to the mirror I rename that tag 
> on the master, it syncs to the mirror
> 	The new tag is present on the mirror but the old tag is not removed.

Is the rename on the master a single commit that does copy and delete, or two commits, one for copy and one for delete?  It's still not clear exactly what problem you are seeing. Is the problem that the commit is present on the mirror and does not include the delete, or is the commit missing on the mirror?

What protocol does svnsync use to access the master?

Do you have path based authz rules on the master?

Can you show us 'svn log -v -q -rN' of the commit on the master?  If there is a corresponding commit on the mirror what does that show?

--
Philip Martin | Subversion Committer
WANdisco // *Non-Stop Data*


Re: tag rename fails to delete on svnsync mirror

Posted by Philip Martin <ph...@wandisco.com>.
"Jones, Gretchen" <Gr...@kc.frb.org> writes:

> Yes, everything is syncing perfectly (AFAIK), No errors are encountered.  
>
> But in this case:
> I create a tag on the master, it syncs to the mirror
> I rename that tag on the master, it syncs to the mirror
> 	The new tag is present on the mirror but the old tag is not removed.

Is the rename on the master a single commit that does copy and delete,
or two commits, one for copy and one for delete?  It's still not clear
exactly what problem you are seeing. Is the problem that the commit is
present on the mirror and does not include the delete, or is the commit
missing on the mirror?

What protocol does svnsync use to access the master?

Do you have path based authz rules on the master?

Can you show us 'svn log -v -q -rN' of the commit on the master?  If there
is a corresponding commit on the mirror what does that show?

-- 
Philip Martin | Subversion Committer
WANdisco // *Non-Stop Data*

RE: tag rename fails to delete on svnsync mirror

Posted by "Jones, Gretchen" <Gr...@kc.frb.org>.
Yes, everything is syncing perfectly (AFAIK), No errors are encountered.  

But in this case:
I create a tag on the master, it syncs to the mirror
I rename that tag on the master, it syncs to the mirror
	The new tag is present on the mirror but the old tag is not removed.

My gut says it must have something to do with delete permissions, but after an hour of searching the listserve messages I gave up on that.

(we are not using  the post commit hook to sync, but instead a scheduled task script because the developers thought it (post-commit-hook) was causing too much delay on commits).  Again no errors, the revision numbers are perfectly in sync.  

The only reason this is a problem is that we use these tags to build remotely and it causes confusion with our non-technical build users when they see duplicate tags with a single character different. (We use a date in the build tag and someone keeps using 2013 instead of 2014)

I would expect that the same "complete" transaction that occurred on the master would occur on the mirror.

Gretchen Jones 

-----Original Message-----
From: Ben Reser [mailto:ben@reser.org]
Sent: Thursday, January 30, 2014 11:04 AM
To: Jones, Gretchen; users@subversion.apache.org
Subject: Re: tag rename fails to delete on svnsync mirror

On 1/30/14, 8:52 AM, Jones, Gretchen wrote:
> Can anyone explain why a tag "renamed" on the master repository is not 
> replicated identically on a mirror? A new tag is created on the mirror 
> but the old tag is not removed on the mirror. SVN 1.7.4

There isn't really sufficient information to give a definitive answer.  I'd guess since you're talking about a master and mirror that you're using a master/slave setup.  In order for changes to get from the master to the slave there needs to be an svnsync run.  Usually that's done via a commit hook.  Are you sure your hooks are working?



Re: tag rename fails to delete on svnsync mirror

Posted by Ben Reser <be...@reser.org>.
On 1/30/14, 8:52 AM, Jones, Gretchen wrote:
> Can anyone explain why a tag “renamed” on the master repository is not
> replicated identically on a mirror? A new tag is created on the mirror but the
> old tag is not removed on the mirror. SVN 1.7.4

There isn't really sufficient information to give a definitive answer.  I'd
guess since you're talking about a master and mirror that you're using a
master/slave setup.  In order for changes to get from the master to the slave
there needs to be an svnsync run.  Usually that's done via a commit hook.  Are
you sure your hooks are working?