[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Problems selecting trunk revisions to merge to branch.

From: Jurko Gospodnetić <jurko.gospodnetic_at_docte.hr>
Date: Tue, 03 Mar 2009 18:01:00 +0100

Hi all.

   I have two repositories affected by the following problem.

Repositories have with a trunk and a branch split off of the trunk (they
actually have more tags and branches than that in them but these are the
relevant parts to this problem description). In both cases there are no
branches split off the aforementioned branch and no merges have ever
been done from the trunk onto the branch.

   Now, when I attempt to merge all trunk revisions into the branch,
Subversion seems to include all the revisions prior to BRANCH-POINT as
well as those after BRANCH-POINT in the merge, obviously causing lots of
conflicts in the process.

   In one case I can reproduce the problem by doing the following:
     * Check out the source folder from the trunk as Trunk.
     * Check out the source folder from the branch as Branch.
     * Move into the Branch folder.
     * Run the following command:

> C:\_\Branch>svn merge --dry-run ..\Trunk
> --- Merging r3404 through r7675 into '.':
> [snipped lots of lines including lots of conflicts]

   The source folder in question has been created in revision 3403, the
branch has been split off in revision 7613, commits on the branch have
been 7613 & 7619, and the trunk revisions affecting the source folder
after the branch are 7622, 7625, ... all the way up to the 7658. The
trunk itself has more commits not affecting the source folder in
question and HEAD == 7675.

   This is on Windows XP Professional, SP3.

   'svn --version' version information:

> svn, version 1.5.5 (r34862)
> compiled Dec 23 2008, 10:46:29
>
> Copyright (C) 2000-2008 CollabNet.
> Subversion is open source software, see http://subversion.tigris.org/
> This product includes software developed by CollabNet (http://www.Collab.Net/).
>
> The following repository access (RA) modules are available:
>
> * ra_neon : Module for accessing a repository via WebDAV protocol using Neon.
> - handles 'http' scheme
> - handles 'https' scheme
> * ra_svn : Module for accessing a repository using the svn network protocol.
> - with Cyrus SASL authentication
> - handles 'svn' scheme
> * ra_local : Module for accessing a repository on local disk.
> - handles 'file' scheme
> * ra_serf : Module for accessing a repository via WebDAV protocol using serf.
> - handles 'http' scheme
> - handles 'https' scheme

   Viewing the revision graph in the latest (1.5.9) TortoiseSVN displays
the branch correctly and log for the branching revision correctly lists
that the branch folder has indeed been added as a copy of its original
source folder on the trunk.

   Doing the same merge operation through TortoiseSVN has the same
effect as when using the command-line client.

   Attempting to do --record-only merge on revisions 0:BRANCH-POINT does
nothing, i.e. makes no modifications to the working folder such as
updating the mergeinfo property and there are no changes to commit after
such a merge:

> C:\_\Branch>svn merge --record-only -r 0:7612 ..\Trunk
>
> C:\_\Branch>svn status
>
> C:\_\Branch>

   Explicitly specifying that I want to merge only revisions after
BRANCH-POINT works as expected.

   Equivalent problem occurs in a separate repository where the whole
trunk folder has branched and not just one of its subfolders. There we get:

> C:\_\Branch2>svn merge --dry-run ..\Trunk2
> --- Merging r2 through r13100 into '.':

   even though the branch has been created in revision 13045. (Here the
HEAD revision is 13100.)

   Is this a bug? Possibly a known one? Or am I doing or interpreting
something wrong here? Could there be something messed up with my
repositories? Any suggestions on how to test this further?

   Many thanks.

   Best regards,
     Jurko Gospodnetić

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=1262109
Received on 2009-03-04 11:20:26 CET

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.