You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Kiren Pillay <ki...@gmail.com> on 2012/07/26 11:18:27 UTC

"local add, incoming add upon merge" incorrect message

Hi

I picked up a strange one with "local add, incoming add upon merge". I
thought that this message means I've added a copy of this file locally and
my trunk version also added this file to it's tree. (svn 1.6). According to
the svn info, the trunk version doesn't have the file. Is this correct
behaviour/message?

----
kiren@Pillay2:~/tmp/delete/aaronsChanges/v1-4-3-AM-CR3159-BatchActivations$
svn info
business_services/main_servlet/src/main/resources/testconfigs/pams.properties
Path:
business_services/main_servlet/src/main/resources/testconfigs/pams.properties
Name: pams.properties
URL: svn://bcx-svn/
vodacom.za/pams/server/branches/v1-4-3-AM-CR3159-BatchActivations/business_services/main_servlet/src/main/resources/testconfigs/pams.properties
Repository Root: svn://bcx-svn/vodacom.za
Repository UUID: 5545304e-a938-48f1-8c5a-7cf7c6df13d1
Revision: 9841
Node Kind: file
Schedule: normal
Last Changed Author: kiren
Last Changed Rev: 9673
Last Changed Date: 2012-06-26 10:47:45 +0200 (Tue, 26 Jun 2012)
Text Last Updated: 2012-07-25 17:42:47 +0200 (Wed, 25 Jul 2012)
Checksum: 0c70c81698528185a3a80d704f423c3f
Tree conflict: local add, incoming add upon merge
  Source  left: (file) svn://bcx-svn/
vodacom.za/pams/server/branches/V1-1-1-preprod/business_services/main_servlet/src/main/resources/testconfigs/pams.properties@6896
  Source right: (file) svn://bcx-svn/
vodacom.za/pams/server/trunk/business_services/main_servlet/src/main/resources/testconfigs/pams.properties@9841

---------
kiren@Pillay2:~/tmp/delete/aaronsChanges/v1-4-3-AM-CR3159-BatchActivations$
svn diff svn://bcx-svn/
vodacom.za/pams/server/branches/V1-1-1-preprod/business_services/main_servlet/src/main/resources/testconfigs/pams.properties@6896svn://bcx-svn/
vodacom.za/pams/server/trunk/business_services/main_servlet/src/main/resources/testconfigs/pams.properties@9841
svn: 'svn://bcx-svn/
vodacom.za/pams/server/branches/V1-1-1-preprod/business_services/main_servlet/src/main/resources/testconfigs/pams.properties'
*was not found in the repository at revision 6896*

Re: "local add, incoming add upon merge" incorrect message

Posted by Kiren Pillay <ki...@gmail.com>.
Thanks Stefan, will try out the test repo.

Your help is really appreciated :)

Best Regards
Kiren



On Thu, Jul 26, 2012 at 10:16 PM, Stefan Sperling <st...@elego.de> wrote:

> On Thu, Jul 26, 2012 at 08:58:24PM +0200, Kiren Pillay wrote:
> > Thanks Stefan,
> >
> > Is there no way out of this. I'm thinking that maybe I should take the
> > current code out of trunk and create a brand new repository. I don't want
> > our past mistakes to haunt us for the rest of the project :/
> >
> > Is there an alternative way to fix this?
>
> Well, if what you've committed now is your desired merge result,
> then that's fine. This won't haunt you forever if you start using
> the proper merge commands in the future.
>
> It sounds like you mainly want the sync and reintegrate merges
> as explained in http://subversion.apache.org/docs/svn-merge.txt
>
> Just remember which direction you're merging in. If merging from
> trunk to a branch, use the "sync" type merge. If merging a branch
> back into trunk (or into whichever other branch it was branched
> off from) use the "reintegrate" type of merge.
> If you stick to that there should be no spurious conflicts.
>
> > I'm doing an update merge, which is trunk into feature branch
> > svn://bcx-svn/
> > vodacom.za/pams/server/branches/v1-4-3-AM-CR3159-BatchActivations<
> http://vodacom.za/pams/server/branches/v1-4-3-AM-CR3159-BatchActivations/business_services/main_servlet/src/main/resources/testconfigs/pams.properties
> >/
> >
>
> > > The kind of cross-branch copying in the above commit is usually not
> > > recommended.
> >
> > Okay, this is most likely the source of our problem. Is there any way to
> > make svn forget/ignore this?
>
> No. The history has been recorded as it happened. But going forward
> you can start to avoid this problem.
>
> > > To avoid problems caused by mixed-revision working copies, always
> perform
> > > server-side copies, i.e. pass only URL arguments to 'svn copy'.
> > >
> >
> > Okay, what I've been doing when I have tree conflicts is to copy missing
> > files into my working copy from the merge source. Are you saying this is
> > incorrect? I've written a blog where it shows how I resolved tree
> > conflicts. Are the steps there correct? (
> >
> http://www.kirenpillay.blogspot.com/2012/07/svn-merge-tree-conflict-resolution.html
>
> The most important thing is that you could always commit the
> desired merge result. So the state of the code on the branch
> is in good shape. That's what matters most.
>
> You didn't describe why the conflicts you ran into occurred.
> If you dig into the histories of both branches you should be able
> to find a set of conflicting changes that clearly indicate a conflict.
> This is really the first thing you need to figure out in a tree conflict
> scenario: What did people do to make this happen? Where is the conflict
> of intentions in the changes that were made?
>
> If you cannot find a reason for the conflict then it is likely a
> spurious one. Spurious conflicts can happen because you're not using
> the correct merge command invocation, especially if you forget to
> pass --reintegrate when you merge a branch back into its parent branch.
>
> Or it could be a false positive tree conflict. These can happen because
> of insufficiencies in Subversion that make it hard to tell apart some
> conflict scenarios from some non-conflict scenarios. E.g. a rename will
> currently always look like a deletion during tree conflict detection so
> Subversion so it might flag a conflict even if both sides intended to
> delete the object (rather than one side deciding to rename the object
> while the other side wants to delete it). We're trying to fix these
> issues -- they are clearly a problem in the software rather than
> a usage problem.
>
> The 'local missing vs. incoming edit' conflicts you describe can
> happen if:
>
>  - You delete a file which existed in the common ancestor of both
>    branches, and the file is later modified on trunk and you merge
>    this modification. in this case you probably want to keep the file
>    deleted (or you might decide to resurrect it, in which case the
>    best approach would be to first revert the entire working copy,
>    undo the file's deletion on the local branch and commit (see
>
> http://svnbook.red-bean.com/en/1.7/svn.branchmerge.basicmerging.html#svn.branchmerge.basicmerging.undo),
> and then repeat the first merge (which
>    should now not conflict anymore).
>
>  - After your branch is created, a new file is created on trunk in
>    revision A and later modified in revision B. You only merge revision
>    B which means the file is not created on your branch before the
>    merge tries to apply the modification. In this case you should
>    probably also merge revision A. A normal sync merge of the
>    'svn merge ^/trunk' variety will always do this.
>
> It might help if you create a small test repository to learn more
> about how Subversion behaves when it encounters tree conflicts.
> You can create a local test repository like this:
>   svnadmin create /tmp/repos
> and access it via a file:// URL:
>   svn checkout file:///tmp/repos wc
> Now you can create a trunk and then a branch, intentionally
> produce some tree conflicts and observe what happens. It might
> be easier to understand Subversion's behaviour when observed
> in a small and controlled fashion, rather than in a busy production
> repository.
>

Re: "local add, incoming add upon merge" incorrect message

Posted by Stefan Sperling <st...@elego.de>.
On Thu, Jul 26, 2012 at 08:58:24PM +0200, Kiren Pillay wrote:
> Thanks Stefan,
> 
> Is there no way out of this. I'm thinking that maybe I should take the
> current code out of trunk and create a brand new repository. I don't want
> our past mistakes to haunt us for the rest of the project :/
> 
> Is there an alternative way to fix this?

Well, if what you've committed now is your desired merge result,
then that's fine. This won't haunt you forever if you start using
the proper merge commands in the future.

It sounds like you mainly want the sync and reintegrate merges
as explained in http://subversion.apache.org/docs/svn-merge.txt

Just remember which direction you're merging in. If merging from
trunk to a branch, use the "sync" type merge. If merging a branch
back into trunk (or into whichever other branch it was branched
off from) use the "reintegrate" type of merge.
If you stick to that there should be no spurious conflicts.

> I'm doing an update merge, which is trunk into feature branch
> svn://bcx-svn/
> vodacom.za/pams/server/branches/v1-4-3-AM-CR3159-BatchActivations<http://vodacom.za/pams/server/branches/v1-4-3-AM-CR3159-BatchActivations/business_services/main_servlet/src/main/resources/testconfigs/pams.properties>/
> 

> > The kind of cross-branch copying in the above commit is usually not
> > recommended.
> 
> Okay, this is most likely the source of our problem. Is there any way to
> make svn forget/ignore this?

No. The history has been recorded as it happened. But going forward
you can start to avoid this problem.

> > To avoid problems caused by mixed-revision working copies, always perform
> > server-side copies, i.e. pass only URL arguments to 'svn copy'.
> >
> 
> Okay, what I've been doing when I have tree conflicts is to copy missing
> files into my working copy from the merge source. Are you saying this is
> incorrect? I've written a blog where it shows how I resolved tree
> conflicts. Are the steps there correct? (
> http://www.kirenpillay.blogspot.com/2012/07/svn-merge-tree-conflict-resolution.html

The most important thing is that you could always commit the
desired merge result. So the state of the code on the branch
is in good shape. That's what matters most.

You didn't describe why the conflicts you ran into occurred.
If you dig into the histories of both branches you should be able
to find a set of conflicting changes that clearly indicate a conflict.
This is really the first thing you need to figure out in a tree conflict
scenario: What did people do to make this happen? Where is the conflict
of intentions in the changes that were made?

If you cannot find a reason for the conflict then it is likely a
spurious one. Spurious conflicts can happen because you're not using
the correct merge command invocation, especially if you forget to
pass --reintegrate when you merge a branch back into its parent branch.

Or it could be a false positive tree conflict. These can happen because
of insufficiencies in Subversion that make it hard to tell apart some
conflict scenarios from some non-conflict scenarios. E.g. a rename will
currently always look like a deletion during tree conflict detection so
Subversion so it might flag a conflict even if both sides intended to
delete the object (rather than one side deciding to rename the object
while the other side wants to delete it). We're trying to fix these
issues -- they are clearly a problem in the software rather than
a usage problem.

The 'local missing vs. incoming edit' conflicts you describe can
happen if:

 - You delete a file which existed in the common ancestor of both
   branches, and the file is later modified on trunk and you merge
   this modification. in this case you probably want to keep the file
   deleted (or you might decide to resurrect it, in which case the
   best approach would be to first revert the entire working copy,
   undo the file's deletion on the local branch and commit (see
   http://svnbook.red-bean.com/en/1.7/svn.branchmerge.basicmerging.html#svn.branchmerge.basicmerging.undo), and then repeat the first merge (which
   should now not conflict anymore).

 - After your branch is created, a new file is created on trunk in
   revision A and later modified in revision B. You only merge revision
   B which means the file is not created on your branch before the
   merge tries to apply the modification. In this case you should
   probably also merge revision A. A normal sync merge of the
   'svn merge ^/trunk' variety will always do this.

It might help if you create a small test repository to learn more
about how Subversion behaves when it encounters tree conflicts.
You can create a local test repository like this:
  svnadmin create /tmp/repos
and access it via a file:// URL:
  svn checkout file:///tmp/repos wc
Now you can create a trunk and then a branch, intentionally
produce some tree conflicts and observe what happens. It might
be easier to understand Subversion's behaviour when observed
in a small and controlled fashion, rather than in a busy production
repository.

Re: "local add, incoming add upon merge" incorrect message

Posted by Kiren Pillay <ki...@gmail.com>.
Thanks Stefan,

Is there no way out of this. I'm thinking that maybe I should take the
current code out of trunk and create a brand new repository. I don't want
our past mistakes to haunt us for the rest of the project :/

Is there an alternative way to fix this?

On Thu, Jul 26, 2012 at 7:25 PM, Stefan Sperling <st...@elego.de> wrote:

> On Thu, Jul 26, 2012 at 06:51:36PM +0200, Kiren Pillay wrote:
> > Aslo,  I am interested in why this V1-1-1-preprod branch causes the
> > conflict. Could you maybe have a look at this snippet of the SVN log
> where
> > I suspect things went wrong? I think the copy from v1-1-0 to trunk is the
> > issue?
>
> The log itself provides only part of the picture of what's going on
> during the merge. It shows the history of the branch, but tells us
> nothing about the actual merge operation that runs into a conflict.
>
> What exactly are you doing to merge this branch with which other branch?
>

I'm doing an update merge, which is trunk into feature branch
svn://bcx-svn/
vodacom.za/pams/server/branches/v1-4-3-AM-CR3159-BatchActivations<http://vodacom.za/pams/server/branches/v1-4-3-AM-CR3159-BatchActivations/business_services/main_servlet/src/main/resources/testconfigs/pams.properties>/


>
> That said, the following looks suspicious:
>
> > update to 1.2.0 final
> > ------------------------------------------------------------------------
> > r6933 | richard | 2011-06-13 14:49:04 +0200 (Mon, 13 Jun 2011) | 1 line
> > Changed paths:
> >    A /pams/server/trunk (from /pams/server/branches/V1-1-1-preprod:6896)
> >    R /pams/server/trunk/business_services/main_servlet (from
> > /pams/server/branches/V1-1-1-preprod/business_services/main_servlet:6927)
> >    D
> >
> /pams/server/trunk/core/ppfe-connectors/src/main/resources/META-INF/spring/poolmanager.properties
> >    D
> >
> /pams/server/trunk/core/ppfe-connectors/src/test/resources/poolmanager.properties
> >
> > Copy from 1.1.1 PREPROD deployed 2011/06/10
>
> It seems the developer created a 'trunk' directory within /pams/server/
> by copying the root of the V1-1-1-preprop branch there. This is not
> usual practice. A branch would usually be reintegrated back into
> its parent branch, which would then in turn be reintegrated back, etc.
> until the desired changes flow back into trunk -- the directory from which
> all other branches (or "copies" in Subversion's own terms) originate.
>
> The kind of cross-branch copying in the above commit is usually not
> recommended. There are cases where such a strategy is needed and useful.
> But such a strategy should only be considered if best-practice
> recommendations cannot be made to work because of workflow or process
> restrictions specific to your organisation.
>
> The source of the copy was probably a mixed-revision working copy
> (see here for what this means:
>
> http://svnbook.red-bean.com/en/1.7/svn.basic.in-action.html#svn.basic.in-action.mixedrevs
> )
> This would explain the replacement of the 'main_servlet' subdirectory
> of the newly added 'trunk' dir within the same commit.
> When this commit was processed, Subversion first performed a server-side
> recursive copy of 'business_services@6896', followed by the deletion of
> the
> 'main_servlet@6896' child, and an addition of the 'main_servlet@6927'
> child,
> in order to accurately represent the mixed-revision working copy state
> that was committed to the repository (which, in contrast to the working
> copy, has no concept of mixed-revisionness, so it has to reflect the
> mixed-revision state via replacements).
> This is not unusual but rarely desired. It is a side-effect of the
> approach the developer took to move changes between branches.
> If this revision is merged elsewhere it will cause a replacement
> in the merge target, which can cause a tree conflict.
>

Okay, this is most likely the source of our problem. Is there any way to
make svn forget/ignore this?

>
> To avoid problems caused by mixed-revision working copies, always perform
> server-side copies, i.e. pass only URL arguments to 'svn copy'.
>

Okay, what I've been doing when I have tree conflicts is to copy missing
files into my working copy from the merge source. Are you saying this is
incorrect? I've written a blog where it shows how I resolved tree
conflicts. Are the steps there correct? (
http://www.kirenpillay.blogspot.com/2012/07/svn-merge-tree-conflict-resolution.html
)

Regards
Kiren

Re: "local add, incoming add upon merge" incorrect message

Posted by Stefan Sperling <st...@elego.de>.
On Thu, Jul 26, 2012 at 06:51:36PM +0200, Kiren Pillay wrote:
> Aslo,  I am interested in why this V1-1-1-preprod branch causes the
> conflict. Could you maybe have a look at this snippet of the SVN log where
> I suspect things went wrong? I think the copy from v1-1-0 to trunk is the
> issue?

The log itself provides only part of the picture of what's going on
during the merge. It shows the history of the branch, but tells us
nothing about the actual merge operation that runs into a conflict.

What exactly are you doing to merge this branch with which other branch?

That said, the following looks suspicious:

> update to 1.2.0 final
> ------------------------------------------------------------------------
> r6933 | richard | 2011-06-13 14:49:04 +0200 (Mon, 13 Jun 2011) | 1 line
> Changed paths:
>    A /pams/server/trunk (from /pams/server/branches/V1-1-1-preprod:6896)
>    R /pams/server/trunk/business_services/main_servlet (from
> /pams/server/branches/V1-1-1-preprod/business_services/main_servlet:6927)
>    D
> /pams/server/trunk/core/ppfe-connectors/src/main/resources/META-INF/spring/poolmanager.properties
>    D
> /pams/server/trunk/core/ppfe-connectors/src/test/resources/poolmanager.properties
> 
> Copy from 1.1.1 PREPROD deployed 2011/06/10

It seems the developer created a 'trunk' directory within /pams/server/
by copying the root of the V1-1-1-preprop branch there. This is not
usual practice. A branch would usually be reintegrated back into
its parent branch, which would then in turn be reintegrated back, etc.
until the desired changes flow back into trunk -- the directory from which
all other branches (or "copies" in Subversion's own terms) originate.

The kind of cross-branch copying in the above commit is usually not
recommended. There are cases where such a strategy is needed and useful.
But such a strategy should only be considered if best-practice
recommendations cannot be made to work because of workflow or process
restrictions specific to your organisation.

The source of the copy was probably a mixed-revision working copy
(see here for what this means:
http://svnbook.red-bean.com/en/1.7/svn.basic.in-action.html#svn.basic.in-action.mixedrevs)
This would explain the replacement of the 'main_servlet' subdirectory
of the newly added 'trunk' dir within the same commit.
When this commit was processed, Subversion first performed a server-side
recursive copy of 'business_services@6896', followed by the deletion of the
'main_servlet@6896' child, and an addition of the 'main_servlet@6927' child,
in order to accurately represent the mixed-revision working copy state
that was committed to the repository (which, in contrast to the working
copy, has no concept of mixed-revisionness, so it has to reflect the
mixed-revision state via replacements).
This is not unusual but rarely desired. It is a side-effect of the
approach the developer took to move changes between branches.
If this revision is merged elsewhere it will cause a replacement
in the merge target, which can cause a tree conflict.

To avoid problems caused by mixed-revision working copies, always perform
server-side copies, i.e. pass only URL arguments to 'svn copy'.

Re: "local add, incoming add upon merge" incorrect message

Posted by Kiren Pillay <ki...@gmail.com>.
Hi Stefan,

Thanks for your explanation, it is starting to make sense now. We
experience lots of merging issues in our environment but I think its due to
lack of understanding on our part!

Aslo,  I am interested in why this V1-1-1-preprod branch causes the
conflict. Could you maybe have a look at this snippet of the SVN log where
I suspect things went wrong? I think the copy from v1-1-0 to trunk is the
issue?

update to 1.2.0 final
------------------------------------------------------------------------
r6933 | richard | 2011-06-13 14:49:04 +0200 (Mon, 13 Jun 2011) | 1 line
Changed paths:
   A /pams/server/trunk (from /pams/server/branches/V1-1-1-preprod:6896)
   R /pams/server/trunk/business_services/main_servlet (from
/pams/server/branches/V1-1-1-preprod/business_services/main_servlet:6927)
   D
/pams/server/trunk/core/ppfe-connectors/src/main/resources/META-INF/spring/poolmanager.properties
   D
/pams/server/trunk/core/ppfe-connectors/src/test/resources/poolmanager.properties

Copy from 1.1.1 PREPROD deployed 2011/06/10
------------------------------------------------------------------------
r6889 | richard | 2011-06-09 09:24:59 +0200 (Thu, 09 Jun 2011) | 1 line
Changed paths:
   M
/pams/server/branches/V1-1-1-preprod/business_services/bs_airtimeTransfer/pom.xml
   M
/pams/server/branches/V1-1-1-preprod/business_services/bs_archtype/pom.xml
   M
/pams/server/branches/V1-1-1-preprod/business_services/bs_archtype/src/main/resources/archetype-resources/pom.xml
   M
/pams/server/branches/V1-1-1-preprod/business_services/bs_blackberry/pom.xml
   M
/pams/server/branches/V1-1-1-preprod/business_services/bs_common/pom.xml
   M
/pams/server/branches/V1-1-1-preprod/business_services/main_servlet/pom.xml
   M
/pams/server/branches/V1-1-1-preprod/business_services/pams-bs-bonusVoucher/pom.xml
   M
/pams/server/branches/V1-1-1-preprod/business_services/pams-bs-in/pom.xml
   M
/pams/server/branches/V1-1-1-preprod/business_services/pams-bs-irDataQuery/pom.xml
   M
/pams/server/branches/V1-1-1-preprod/business_services/pams-bs-mini-recharge/pom.xml
   M
/pams/server/branches/V1-1-1-preprod/business_services/pams-bs-mmsLogService/pom.xml
   M
/pams/server/branches/V1-1-1-preprod/business_services/pams-bs-queryVoucherNumber/pom.xml
   M
/pams/server/branches/V1-1-1-preprod/business_services/pams-bs-subscriber-account/pom.xml
   M
/pams/server/branches/V1-1-1-preprod/business_services/pams-bs-subscriber-bundles/pom.xml
   M
/pams/server/branches/V1-1-1-preprod/business_services/pams-bs-subscriberProfileQuery/pom.xml
   M
/pams/server/branches/V1-1-1-preprod/business_services/pams-bs-youthProposition/pom.xml
   M /pams/server/branches/V1-1-1-preprod/business_services/pom.xml
   M
/pams/server/branches/V1-1-1-preprod/business_services/rms_facade/pom.xml
   M
/pams/server/branches/V1-1-1-preprod/business_services/subscriberProfileInQuery/pom.xml
   M /pams/server/branches/V1-1-1-preprod/core/advantage/pom.xml
   M /pams/server/branches/V1-1-1-preprod/core/audit/pom.xml
   M /pams/server/branches/V1-1-1-preprod/core/common/pom.xml
   M /pams/server/branches/V1-1-1-preprod/core/pams-pams-dao/pom.xml
   M /pams/server/branches/V1-1-1-preprod/core/pams-rms-dao/pom.xml
   M
/pams/server/branches/V1-1-1-preprod/core/pams-schema/pams-core-xsd/bin/pom.xml
   M
/pams/server/branches/V1-1-1-preprod/core/pams-schema/pams-core-xsd/pom.xml
   M
/pams/server/branches/V1-1-1-preprod/core/pams-schema/pams-core-xsd-client/bin/pom.xml
   M
/pams/server/branches/V1-1-1-preprod/core/pams-schema/pams-core-xsd-client/pom.xml
   M
/pams/server/branches/V1-1-1-preprod/core/pams-schema/pams-core-xsd-server/pom.xml
   M /pams/server/branches/V1-1-1-preprod/core/pams-schema/pom.xml
   M /pams/server/branches/V1-1-1-preprod/core/pom.xml
   M /pams/server/branches/V1-1-1-preprod/core/ppfe-connectors/pom.xml
   M /pams/server/branches/V1-1-1-preprod/core/ppfe_dao/pom.xml
   M /pams/server/branches/V1-1-1-preprod/pom.xml

Bump up to version 1.1.0 preprod
------------------------------------------------------------------------
r6888 | richard | 2011-06-09 09:18:35 +0200 (Thu, 09 Jun 2011) | 3 lines
Changed paths:
   A /pams/server/branches/V1-1-1-preprod (from
/pams/server/branches/V1-1-0-preprod:6866)

Create 1.1.1 pre prod from r 6866, before multiple ip mode


------------------------------------------------------------------------
r6866 | richard | 2011-06-08 12:01:48 +0200 (Wed, 08 Jun 2011) | 1 line
Changed paths:
   M
/pams/server/branches/V1-1-0-preprod/business_services/main_servlet/pom.xml

fix scm location for preprod
------------------------------------------------------------------------
r6861 | richard | 2011-06-08 08:47:12 +0200 (Wed, 08 Jun 2011) | 1 line
Changed paths:
   M
/pams/server/branches/V1-1-0-preprod/business_services/bs_airtimeTransfer/pom.xml
   M
/pams/server/branches/V1-1-0-preprod/business_services/bs_archtype/pom.xml
   M
/pams/server/branches/V1-1-0-preprod/business_services/bs_archtype/src/main/resources/archetype-resources/pom.xml
   M
/pams/server/branches/V1-1-0-preprod/business_services/bs_blackberry/pom.xml
   M
/pams/server/branches/V1-1-0-preprod/business_services/bs_common/pom.xml
   M
/pams/server/branches/V1-1-0-preprod/business_services/main_servlet/pom.xml
   M
/pams/server/branches/V1-1-0-preprod/business_services/pams-bs-bonusVoucher/pom.xml
   M
/pams/server/branches/V1-1-0-preprod/business_services/pams-bs-in/pom.xml
   M
/pams/server/branches/V1-1-0-preprod/business_services/pams-bs-irDataQuery/pom.xml
   M
/pams/server/branches/V1-1-0-preprod/business_services/pams-bs-mini-recharge/pom.xml
   M
/pams/server/branches/V1-1-0-preprod/business_services/pams-bs-mmsLogService/pom.xml
   M
/pams/server/branches/V1-1-0-preprod/business_services/pams-bs-queryVoucherNumber/pom.xml
   M
/pams/server/branches/V1-1-0-preprod/business_services/pams-bs-subscriber-account/pom.xml
   M
/pams/server/branches/V1-1-0-preprod/business_services/pams-bs-subscriber-bundles/pom.xml
   M
/pams/server/branches/V1-1-0-preprod/business_services/pams-bs-subscriberProfileQuery/pom.xml
   M
/pams/server/branches/V1-1-0-preprod/business_services/pams-bs-youthProposition/pom.xml
   M /pams/server/branches/V1-1-0-preprod/business_services/pom.xml
   M
/pams/server/branches/V1-1-0-preprod/business_services/rms_facade/pom.xml
   M
/pams/server/branches/V1-1-0-preprod/business_services/subscriberProfileInQuery/pom.xml
   M /pams/server/branches/V1-1-0-preprod/core/advantage/pom.xml
   M /pams/server/branches/V1-1-0-preprod/core/audit/pom.xml
   M /pams/server/branches/V1-1-0-preprod/core/common/pom.xml
   M /pams/server/branches/V1-1-0-preprod/core/pams-pams-dao/pom.xml
   M /pams/server/branches/V1-1-0-preprod/core/pams-rms-dao/pom.xml
   M
/pams/server/branches/V1-1-0-preprod/core/pams-schema/pams-core-xsd/bin/pom.xml
   M
/pams/server/branches/V1-1-0-preprod/core/pams-schema/pams-core-xsd/pom.xml
   M
/pams/server/branches/V1-1-0-preprod/core/pams-schema/pams-core-xsd-client/bin/pom.xml
   M
/pams/server/branches/V1-1-0-preprod/core/pams-schema/pams-core-xsd-client/pom.xml
   M
/pams/server/branches/V1-1-0-preprod/core/pams-schema/pams-core-xsd-server/pom.xml
   M /pams/server/branches/V1-1-0-preprod/core/pams-schema/pom.xml
   M /pams/server/branches/V1-1-0-preprod/core/pom.xml
   M /pams/server/branches/V1-1-0-preprod/core/ppfe-connectors/pom.xml
   M /pams/server/branches/V1-1-0-preprod/core/ppfe_dao/pom.xml
   M /pams/server/branches/V1-1-0-preprod/pom.xml

Move version to 1.1.0 PREPROD, and FCAPS to 1.0.0 PREPROD
------------------------------------------------------------------------
r6860 | richard | 2011-06-08 08:39:48 +0200 (Wed, 08 Jun 2011) | 3 lines
Changed paths:
   A /pams/server/branches/V1-1-0-preprod (from
/pams/server/branches/V1-1-0-QA:6859)




On Thu, Jul 26, 2012 at 3:55 PM, Stefan Sperling <st...@elego.de> wrote:

> On Thu, Jul 26, 2012 at 11:53:16AM +0200, Kiren Pillay wrote:
> > Hi
> >
> > I have an additional question:
> >
> > It looks like the latest version of both branches have exactly the same.
> It
> > looks like the conflict occured in a revision that has been merged a
> while
> > back in its history ( svn://bcx-svn/
> >
> vodacom.za/pams/server/branches/V1-1-1-preprod/business_services/main_servlet/src/main/resources/testconfigs/pams.properties@6896
> )
> > . Is there any reason for this?
> >
>
> Hard to say without direct access to the 'svn log' output.
> Try running 'svn log -v' on the merge commits. If a file was newly
> added rather than modified, it shows up as:
>   A myfile
> rather than:
>   M myfile
> Or you might see:
>   R myfile
> which means replaced (deleted and added in the same revision).
>
> Since an addition or deletion is an explicit operation in Subversion
> it will also be merged as such. This can get ugly in case somebody
> accidentally replaces a file. E.g. suppose rather than using 'svn revert'
> to undo edits, somebody naively runs 'svn delete' on the modified file
> followed by 'svn add' to re-add the pristine version of the file,
> and commits this change.
> If you then keep merging to and fro between two branches and never fold
> the 'add' (or 'replace') operation into a normal 'modification' operation,
> the merges will keep flagging 'add vs. add' tree conflicts. Each merge
> will try to add the object again since the addition is part of the
> changeset being merge. An addition is supposed to create a new object,
> either on top of a non-conflicted deleted object or at a path where no
> object exists.  Anything else is flagged as a conflict.
>
> To fold an 'add' into a 'modify', revert the affected path after the
> merge and then merge file content from the other branch either manually
> or via a --ignore-ancestry merge. E.g. if merging from trunk to a
> branch try something like:
>
>   svn merge ^/trunk
>     C myfile
>     >  add vs. add conflict
>   svn revert myfile  # undo add vs. add conflict
>   svn merge --ignore-ancestry ^/trunk/myfile myfile
>
> More information about what --ignore-ancestry can be found at
>
> http://svnbook.red-bean.com/en/1.7/svn.branchmerge.advanced.html#svn.branchmerge.advanced.ancestry
>
> > I suspect its because we haven't been doing reintegrate merges until
> > recently?
>
> That is quite possible. A non-reintegrate merge can produce a delta
> with different semantics and might produce an addition or replace
> where a reintegrate merge would just produce a modified file.
> Users often don't understand this or feel they shouldn't have to,
> and a missing --reintegrate option can sometimes cause merge problems
> even for later merges.
>
> BTW, steps are being taken to make the --reintegrate option unnecessary
> in Subversion 1.8, so this user interface problem will hopefully be
> fixed by then.
>
> > Is there a way to stop this from happening in future?
>
> Yes. Follow the best practices described in this chapter of the svnbook:
> http://svnbook.red-bean.com/en/1.7/svn.branchmerge.html
> A short summary that every user performing merges should know is
> provided in the output of 'svn help merge' in Subversion 1.7, also
> available at: http://subversion.apache.org/docs/svn-merge.txt
>

Re: "local add, incoming add upon merge" incorrect message

Posted by Stefan Sperling <st...@elego.de>.
On Thu, Jul 26, 2012 at 11:53:16AM +0200, Kiren Pillay wrote:
> Hi
> 
> I have an additional question:
> 
> It looks like the latest version of both branches have exactly the same. It
> looks like the conflict occured in a revision that has been merged a while
> back in its history ( svn://bcx-svn/
> vodacom.za/pams/server/branches/V1-1-1-preprod/business_services/main_servlet/src/main/resources/testconfigs/pams.properties@6896)
> . Is there any reason for this?
> 

Hard to say without direct access to the 'svn log' output.
Try running 'svn log -v' on the merge commits. If a file was newly
added rather than modified, it shows up as:
  A myfile
rather than:
  M myfile
Or you might see:
  R myfile
which means replaced (deleted and added in the same revision).

Since an addition or deletion is an explicit operation in Subversion
it will also be merged as such. This can get ugly in case somebody
accidentally replaces a file. E.g. suppose rather than using 'svn revert'
to undo edits, somebody naively runs 'svn delete' on the modified file
followed by 'svn add' to re-add the pristine version of the file,
and commits this change.
If you then keep merging to and fro between two branches and never fold
the 'add' (or 'replace') operation into a normal 'modification' operation,
the merges will keep flagging 'add vs. add' tree conflicts. Each merge
will try to add the object again since the addition is part of the
changeset being merge. An addition is supposed to create a new object,
either on top of a non-conflicted deleted object or at a path where no
object exists.  Anything else is flagged as a conflict.

To fold an 'add' into a 'modify', revert the affected path after the
merge and then merge file content from the other branch either manually
or via a --ignore-ancestry merge. E.g. if merging from trunk to a
branch try something like:

  svn merge ^/trunk
    C myfile
    >  add vs. add conflict
  svn revert myfile  # undo add vs. add conflict
  svn merge --ignore-ancestry ^/trunk/myfile myfile

More information about what --ignore-ancestry can be found at
http://svnbook.red-bean.com/en/1.7/svn.branchmerge.advanced.html#svn.branchmerge.advanced.ancestry

> I suspect its because we haven't been doing reintegrate merges until
> recently?

That is quite possible. A non-reintegrate merge can produce a delta
with different semantics and might produce an addition or replace
where a reintegrate merge would just produce a modified file.
Users often don't understand this or feel they shouldn't have to,
and a missing --reintegrate option can sometimes cause merge problems
even for later merges.

BTW, steps are being taken to make the --reintegrate option unnecessary
in Subversion 1.8, so this user interface problem will hopefully be
fixed by then.

> Is there a way to stop this from happening in future?

Yes. Follow the best practices described in this chapter of the svnbook:
http://svnbook.red-bean.com/en/1.7/svn.branchmerge.html
A short summary that every user performing merges should know is
provided in the output of 'svn help merge' in Subversion 1.7, also
available at: http://subversion.apache.org/docs/svn-merge.txt

Re: "local add, incoming add upon merge" incorrect message

Posted by Kiren Pillay <ki...@gmail.com>.
Hi

I have an additional question:

It looks like the latest version of both branches have exactly the same. It
looks like the conflict occured in a revision that has been merged a while
back in its history ( svn://bcx-svn/
vodacom.za/pams/server/branches/V1-1-1-preprod/business_services/main_servlet/src/main/resources/testconfigs/pams.properties@6896)
. Is there any reason for this?

I suspect its because we haven't been doing reintegrate merges until
recently? Is there a way to stop this from happening in future?



On Thu, Jul 26, 2012 at 11:18 AM, Kiren Pillay <ki...@gmail.com>wrote:

> Hi
>
> I picked up a strange one with "local add, incoming add upon merge". I
> thought that this message means I've added a copy of this file locally and
> my trunk version also added this file to it's tree. (svn 1.6). According to
> the svn info, the trunk version doesn't have the file. Is this correct
> behaviour/message?
>
> ----
> kiren@Pillay2:~/tmp/delete/aaronsChanges/v1-4-3-AM-CR3159-BatchActivations$
> svn info
> business_services/main_servlet/src/main/resources/testconfigs/pams.properties
> Path:
> business_services/main_servlet/src/main/resources/testconfigs/pams.properties
> Name: pams.properties
> URL: svn://bcx-svn/
> vodacom.za/pams/server/branches/v1-4-3-AM-CR3159-BatchActivations/business_services/main_servlet/src/main/resources/testconfigs/pams.properties
> Repository Root: svn://bcx-svn/vodacom.za
> Repository UUID: 5545304e-a938-48f1-8c5a-7cf7c6df13d1
> Revision: 9841
> Node Kind: file
> Schedule: normal
> Last Changed Author: kiren
> Last Changed Rev: 9673
> Last Changed Date: 2012-06-26 10:47:45 +0200 (Tue, 26 Jun 2012)
> Text Last Updated: 2012-07-25 17:42:47 +0200 (Wed, 25 Jul 2012)
> Checksum: 0c70c81698528185a3a80d704f423c3f
> Tree conflict: local add, incoming add upon merge
>   Source  left: (file) svn://bcx-svn/
> vodacom.za/pams/server/branches/V1-1-1-preprod/business_services/main_servlet/src/main/resources/testconfigs/pams.properties@6896
>   Source right: (file) svn://bcx-svn/
> vodacom.za/pams/server/trunk/business_services/main_servlet/src/main/resources/testconfigs/pams.properties@9841
>
> ---------
> kiren@Pillay2:~/tmp/delete/aaronsChanges/v1-4-3-AM-CR3159-BatchActivations$
> svn diff svn://bcx-svn/
> vodacom.za/pams/server/branches/V1-1-1-preprod/business_services/main_servlet/src/main/resources/testconfigs/pams.properties@6896svn://bcx-svn/
> vodacom.za/pams/server/trunk/business_services/main_servlet/src/main/resources/testconfigs/pams.properties@9841
> svn: 'svn://bcx-svn/
> vodacom.za/pams/server/branches/V1-1-1-preprod/business_services/main_servlet/src/main/resources/testconfigs/pams.properties'
> *was not found in the repository at revision 6896*
>