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

Re: reverse-merge fails to undo replacements

From: Julian Foad <julianfoad_at_btopenworld.com>
Date: Thu, 5 Jun 2014 22:25:45 +0100 (BST)

Stefan Sperling wrote:
> Paths which were replaced are not reverse-merged.
> Is this intended behaviour or a bug?

The first key fact here is those replacements involve no change of content:

  $ svn log -r42758
  r42758 | [...]
  Changed paths:
     R /trunk/docs/core/howto/listings/logger (from /branches/log-booyah-6750-4/docs/core/howto/listings/logger:42757)
    [...]

  $ svn diff -c 42758 ^/trunk/docs
  [no output]

The second key fact is that the replacement is related to the replaced node. That is, I suppose, the reason that even the "notice ancestry" mode of diff shows no replacement:

  $ svn diff -c 42758 --notice-ancestry ^/trunk/docs
  [no output]

I'm not sure exactly what the relationship is, in terms of which was copied from what at what revision -- I haven't checked -- but there's some copied-from relationship there.

The changes that "merge" applies are generally meant to be the same
changes that "diff --notice-ancestry" shows. In that respect, "merge" is
working consistently with "diff".

As the merge is behaving like diff, I can't see a bug here unless there is some further inconsistency to be found.

I haven't tried the corresponding forward merge, but I presume it would also do nothing, just like the reverse merge.

I admit it's odd that "log -v" shows a replacement but "diff --notice-ancestry" doesn't; but that's a rather different issue.

- Julian

> svn co svn://svn.twistedmatrix.com/svn/Twisted/trunk_at_42758 wc
> cd wc
>
> $ svn merge -c -42758 .
> --- Reverse-merging r42758 into '.':
> D    twisted/topfiles/6750.feature
> $ svn log -r42758
> ------------------------------------------------------------------------
> r42758 | wsanchez | 2014-06-03 07:25:58 +0200 (Tue, 03 Jun 2014) | 8 lines
> Changed paths:
>    R /trunk/docs/core/howto/listings/logger (from
> /branches/log-booyah-6750-4/docs/core/howto/listings/logger:42757)
[...]
Received on 2014-06-05 23:29:13 CEST

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.