You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Philip Martin <ph...@wandisco.com> on 2011/06/09 12:29:39 UTC

tree-conlficts after 1.6-to-1.7 upgrade

philip@apache.org writes:

> Author: philip
> Date: Thu Jun  9 10:19:42 2011
> New Revision: 1133771
>
> URL: http://svn.apache.org/viewvc?rev=1133771&view=rev
> Log:
> For issue 3916, move tree conflicts from parent to conflicted node
> on upgrade.  This makes the regression tests XPASS but I'm marking
> them WIMP for now because I don't know if the conflicts are correct.

In the 1.6 entries file the parent looked like this:

((conflict X dir update added added (version file:///home/pm/sw/subversion/obj/repo 1 1 A/X none) (version file:///home/pm/sw/subversion/obj/repo 1 3 A/X dir)) (conflict Y dir update added added (version file:///home/pm/sw/subversion/obj/repo 1 1 A/Y none) (version file:///home/pm/sw/subversion/obj/repo 1 3 A/Y dir)))


After upgrade from 1.6 to 1.7 the ACTUAL_NODE rows look like:

1|A/X|A||||||||(conflict X dir update added added (version file:///home/pm/sw/subversion/obj/repo 1 1 A/X none) (version file:///home/pm/sw/subversion/obj/repo 1 3 A/X dir))||||
1|A/Y|A||||||||(conflict Y dir update added added (version file:///home/pm/sw/subversion/obj/repo 1 1 A/Y none) (version file:///home/pm/sw/subversion/obj/repo 1 3 A/Y dir))||||


But if I create the conflicts using 1.7 the ACTUAL_NODE rows look like:

1|A/X|A||||||||(conflict X dir update added added (version 0  2 -1 0  0 ) (version file:///home/pm/sw/subversion/obj/repo 1 3 A/X dir))||||
1|A/Y|A||||||||(conflict Y dir update added added (version 0  2 -1 0  0 ) (version file:///home/pm/sw/subversion/obj/repo 1 3 A/Y dir))||||


I haven't been following the details of tree conflict storage, are
differences like that going to be a problem?

-- 
Philip

Re: tree-conlficts after 1.6-to-1.7 upgrade

Posted by Philip Martin <ph...@wandisco.com>.
"Bert Huijben" <be...@qqmail.nl> writes:

>> -----Original Message-----
>> From: Philip Martin [mailto:philip.martin@wandisco.com]
>> Sent: donderdag 9 juni 2011 12:30
>> To: dev@subversion.apache.org
>> Subject: tree-conlficts after 1.6-to-1.7 upgrade
>> 
>> After upgrade from 1.6 to 1.7 the ACTUAL_NODE rows look like:
>> 
>> 1|A/X|A||||||||(conflict X dir update added added (version
>> file:///home/pm/sw/subversion/obj/repo 1 1 A/X none) (version
>> file:///home/pm/sw/subversion/obj/repo 1 3 A/X dir))||||
>> 1|A/Y|A||||||||(conflict Y dir update added added (version
>> file:///home/pm/sw/subversion/obj/repo 1 1 A/Y none) (version
>> file:///home/pm/sw/subversion/obj/repo 1 3 A/Y dir))||||
>> 
>> 
>> But if I create the conflicts using 1.7 the ACTUAL_NODE rows look like:
>> 
>> 1|A/X|A||||||||(conflict X dir update added added (version 0  2 -1 0  0 )
>> (version file:///home/pm/sw/subversion/obj/repo 1 3 A/X dir))||||
>> 1|A/Y|A||||||||(conflict Y dir update added added (version 0  2 -1 0  0 )
>> (version file:///home/pm/sw/subversion/obj/repo 1 3 A/Y dir))||||
>> 
>> 
>> I haven't been following the details of tree conflict storage, are
>> differences like that going to be a problem?
>
> I think this specific change is caused by a difference in tree conflict
> processing between 1.6 and current (early in 1.7 development).
>
> Local additions and copies don't have a url and there is no common ancestor
> that has a url. (In that case it would be a replacement; not an addition)
>
> I think 1.6 guessed the url that the path would have after committing (by
> just using what is inside svn_wc_entry_t), while 1.7 says that the node
> doesn't have a url because it is an addition.

I'm thinking of adding something like:

+          if (conflict->reason == svn_wc_conflict_reason_added)
+            conflict->src_left_version = NULL;

This makes the upgraded conflict look like the one created by 1.7.  If
"repairs" like this are what we want should it be done in the upgrade
code, or in svn_wc__deserialize_conflict/svn_wc__serialize_conflict?

-- 
Philip

RE: tree-conlficts after 1.6-to-1.7 upgrade

Posted by Bert Huijben <be...@qqmail.nl>.

> -----Original Message-----
> From: Philip Martin [mailto:philip.martin@wandisco.com]
> Sent: donderdag 9 juni 2011 12:30
> To: dev@subversion.apache.org
> Subject: tree-conlficts after 1.6-to-1.7 upgrade
> 
> philip@apache.org writes:
> 
> > Author: philip
> > Date: Thu Jun  9 10:19:42 2011
> > New Revision: 1133771
> >
> > URL: http://svn.apache.org/viewvc?rev=1133771&view=rev
> > Log:
> > For issue 3916, move tree conflicts from parent to conflicted node
> > on upgrade.  This makes the regression tests XPASS but I'm marking
> > them WIMP for now because I don't know if the conflicts are correct.
> 
> In the 1.6 entries file the parent looked like this:
> 
> ((conflict X dir update added added (version
> file:///home/pm/sw/subversion/obj/repo 1 1 A/X none) (version
> file:///home/pm/sw/subversion/obj/repo 1 3 A/X dir)) (conflict Y dir
update
> added added (version file:///home/pm/sw/subversion/obj/repo 1 1 A/Y
> none) (version file:///home/pm/sw/subversion/obj/repo 1 3 A/Y dir)))
> 
> 
> After upgrade from 1.6 to 1.7 the ACTUAL_NODE rows look like:
> 
> 1|A/X|A||||||||(conflict X dir update added added (version
> file:///home/pm/sw/subversion/obj/repo 1 1 A/X none) (version
> file:///home/pm/sw/subversion/obj/repo 1 3 A/X dir))||||
> 1|A/Y|A||||||||(conflict Y dir update added added (version
> file:///home/pm/sw/subversion/obj/repo 1 1 A/Y none) (version
> file:///home/pm/sw/subversion/obj/repo 1 3 A/Y dir))||||
> 
> 
> But if I create the conflicts using 1.7 the ACTUAL_NODE rows look like:
> 
> 1|A/X|A||||||||(conflict X dir update added added (version 0  2 -1 0  0 )
> (version file:///home/pm/sw/subversion/obj/repo 1 3 A/X dir))||||
> 1|A/Y|A||||||||(conflict Y dir update added added (version 0  2 -1 0  0 )
> (version file:///home/pm/sw/subversion/obj/repo 1 3 A/Y dir))||||
> 
> 
> I haven't been following the details of tree conflict storage, are
> differences like that going to be a problem?

I think this specific change is caused by a difference in tree conflict
processing between 1.6 and current (early in 1.7 development).

Local additions and copies don't have a url and there is no common ancestor
that has a url. (In that case it would be a replacement; not an addition)

I think 1.6 guessed the url that the path would have after committing (by
just using what is inside svn_wc_entry_t), while 1.7 says that the node
doesn't have a url because it is an addition.

	Bert